Fixes display and fonts (#85)
* change simulator svg * change radio image * Remove google fonts cdn * change color of 'advanced' button * font fix * font fix 2 * display fix * change fullsceen simulator bg * Continuous servo * handle continuous state * adding shims * update rendering for continuous servos * fixing sim * fix sig * typo * fix sim * bump pxt * bump pxt * rerun travis
This commit is contained in:
@@ -48,6 +48,9 @@ interface PwmOnlyPin extends DigitalInOutPin, AnalogOutPin {
|
||||
|
||||
//% parts=microservo trackArgs=0
|
||||
servoSetPulse(duration: number): void;
|
||||
|
||||
//% parts=microservo tracArgs=0
|
||||
servoSetContinuous(value: boolean): void;
|
||||
}
|
||||
|
||||
//% noRefCounting fixedInstances
|
||||
@@ -109,6 +112,10 @@ class MicrobitPin implements AnalogInPin, AnalogOutPin, AnalogInOutPin, PwmOnlyP
|
||||
pins.servoWritePin(this.analogId(), value);
|
||||
}
|
||||
|
||||
servoSetContinuous(value: boolean): void {
|
||||
pins.servoSetContinuous(this.analogId(), value);
|
||||
}
|
||||
|
||||
servoSetPulse(duration: number): void {
|
||||
pins.servoSetPulse(this.analogId(), duration);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user