forked from microbit-apps/display-shield
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathcontrolleroverrides.ts
More file actions
16 lines (16 loc) · 881 Bytes
/
controlleroverrides.ts
File metadata and controls
16 lines (16 loc) · 881 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
namespace controller {
//% fixedInstance whenUsed block="{id:controller}A"
export const A = new Button(ControllerButton.A, DAL.CFG_PIN_BTN_A);
//% fixedInstance whenUsed block="{id:controller}B"
export const B = new Button(ControllerButton.B, DAL.CFG_PIN_BTN_B);
//% fixedInstance whenUsed block="left"
export const left = new Button(ControllerButton.Left, DAL.CFG_PIN_BTN_LEFT);
//% fixedInstance whenUsed block="up"
export const up = new Button(ControllerButton.Up, DAL.CFG_PIN_BTN_UP);
//% fixedInstance whenUsed block="right"
export const right = new Button(ControllerButton.Right, DAL.CFG_PIN_BTN_RIGHT);
//% fixedInstance whenUsed block="down"
export const down = new Button(ControllerButton.Down, DAL.CFG_PIN_BTN_DOWN);
//% fixedInstance whenUsed block="menu"
export const menu = new Button(7, DAL.CFG_PIN_BTN_MENU);
}