refactored servostate (#341)

* refactored servostate

* Bump pxt-core to 0.10.1
This commit is contained in:
Peli de Halleux
2017-01-12 23:09:53 -08:00
committed by GitHub
parent 85fe96b3fd
commit 357436f14d
3 changed files with 10 additions and 11 deletions

View File

@ -76,8 +76,7 @@ namespace pxsim.pins {
if (!pin) return;
analogSetPeriod(pinId, 20000);
const state = board().servosState.servoState(pinId);
state.setAngle(value);
pin.servoAngle = value;
}
export function servoSetPulse(pinId: number, micros: number) {