Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
JoeBakalor committed May 25, 2021
1 parent 705dd99 commit 11dae97
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 4 deletions.
4 changes: 2 additions & 2 deletions libs/servo/targetoverrides.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
namespace servos {
//% block="servo A1" fixedInstance
export const A1 = new servos.PinServo(pins.A3);
export const A1 = new servos.PinServo(pins.SERVO_LEFT);
//% block="servo A2" fixedInstance
export const A2 = new servos.PinServo(pins.A4);
export const A2 = new servos.PinServo(pins.SERVO_RIGHT);
}
12 changes: 10 additions & 2 deletions libs/teknikio-bluebird/device.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,17 @@ declare namespace pins {
//% fixedInstance shim=pxt::getPin(PIN_A2)
const A2: AnalogInPin;
//% fixedInstance shim=pxt::getPin(PIN_A3)
const A3: PwmOnlyPin;
const A3: PwmPin;
//% fixedInstance shim=pxt::getPin(PIN_A4)
const A4: PwmOnlyPin;
const A4: PwmPin;
//% fixedInstance shim=pxt::getPin(PIN_A5)
const A5: PwmPin;
//% fixedInstance shim=pxt::getPin(PIN_A6)
const A6: PwmPin;
//% fixedInstance shim=pxt::getPin(PIN_D16)
const SERVO_LEFT: PwmOnlyPin;
//% fixedInstance shim=pxt::getPin(PIN_D17)
const SERVO_RIGHT: PwmOnlyPin;

//% fixedInstance shim=pxt::getPin(PIN_D7)
const D7: DigitalInOutPin;
Expand Down Expand Up @@ -44,3 +48,7 @@ declare namespace rgb {
declare namespace sensors {

}

declare namespace servos {

}

0 comments on commit 11dae97

Please sign in to comment.