pxt-calliope/libs/servo/targetoverrides.ts
Peli de Halleux 9002edbb22
Servo library support ()
* ateempt at bringin servos

* basic plumbing

* avoid math map duplicate

* missing parts annontation

* pretify parts

* extend appcompat layer

* updated strings

* more compat layer

* annotations

* don't rely on webmidi

* updated pxt ref

* bump pxt

* adding whenUsed

* updated v1 readme

* more pins

* more pins

* compress the parts definition

* update common packages
2018-10-05 11:09:08 -07:00

8 lines
320 B
TypeScript

namespace servos {
//% block="servo P0" fixedInstance whenUsed
export const P0 = new servos.PinServo(pins.P0);
//% block="servo P1" fixedInstance whenUsed
export const P1 = new servos.PinServo(pins.P1);
//% block="servo P2" fixedInstance whenUsed
export const P2 = new servos.PinServo(pins.P2);
}