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:
Amerlander
2020-02-15 22:16:34 +01:00
committed by GitHub
parent c200b042c6
commit e4008a3a73
9 changed files with 96 additions and 50 deletions

View File

@@ -81,6 +81,13 @@ namespace pxsim.pins {
pin.servoAngle = value;
}
export function servoSetContinuous(pinId: number, value: boolean) {
let pin = getPin(pinId);
if (!pin) return;
pin.servoSetContinuous(value);
}
export function servoSetPulse(pinId: number, micros: number) {
let pin = getPin(pinId);
if (!pin) return;