fixing dal board

This commit is contained in:
Peli de Halleux
2017-01-12 23:05:29 -08:00
parent 167ba57d2b
commit 975b995f09
2 changed files with 9 additions and 10 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 = Math.max(0, Math.min(180, value));
}
export function servoSetPulse(pinId: number, micros: number) {