KServo

class KServo(name: String) : KDevice<Servo>

Standard Servo wrapper

Parameters

name

hardware config name

Constructors

Link copied to clipboard
fun KServo(name: String)

Properties

Link copied to clipboard
var position: Double

Servo's position

Inherited properties

Link copied to clipboard
val deviceName: String

Functions

Link copied to clipboard
fun reverse(): KServo

Builder function to reverse the servo TODO: might remove this since you can just .apply {} instead?

Link copied to clipboard
fun startAt(startPos: Double): KServo

Builder function to set the initialize position of the servo TODO: might remove this since you can just .apply {} instead?

Inherited functions

Link copied to clipboard
open override fun toString(): String