Skip to content

Commit

Permalink
button configuration
Browse files Browse the repository at this point in the history
  • Loading branch information
tballmsft committed Feb 5, 2024
1 parent ea9d944 commit 20d3817
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 24 deletions.
1 change: 1 addition & 0 deletions libs/arcadeshield/_locales/arcadeshield-strings.json
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@
"simage.create|block": "create image width %width height %height",
"simage.screenImage|block": "screen",
"simage|block": "simage",
"{id:category}Config": "Config",
"{id:category}Control": "Control",
"{id:category}Helpers": "Helpers",
"{id:category}Images": "Images",
Expand Down
24 changes: 0 additions & 24 deletions libs/arcadeshield/config.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
// there's no UF2 bootloader for 52833 yet, so we specify example configuration here
namespace config {
export const PIN_BTNMX_LATCH = DAL.P0_9
export const PIN_BTNMX_CLOCK = DAL.P1_0
export const PIN_BTNMX_DATA = DAL.P0_1

// pybadge-like layout
export const PIN_BTN_LEFT = 1050
Expand All @@ -12,25 +9,4 @@ namespace config {
export const PIN_BTN_A = 1054
export const PIN_BTN_B = 1055
export const PIN_BTN_MENU = 1056

export const PIN_JACK_SND = DAL.P0_0

export const PIN_DISPLAY_SCK = DAL.P0_17
export const PIN_DISPLAY_MOSI = DAL.P0_13
export const PIN_DISPLAY_MISO = DAL.P0_1
export const PIN_DISPLAY_BL = DAL.P0_26
export const PIN_DISPLAY_DC = DAL.P0_10
export const PIN_DISPLAY_RST = DAL.P1_2

// Jacdac, when jacdaptor is connected, is on the accessibility pin (P12)
export const PIN_JACK_TX = DAL.P0_12

export const DISPLAY_WIDTH = 160
export const DISPLAY_HEIGHT = 128

export const DISPLAY_TYPE = 4242 // smart display

export const DISPLAY_CFG0 = 0x00000080
export const DISPLAY_CFG1 = 0x00000603
export const DISPLAY_CFG2 = 8
}
1 change: 1 addition & 0 deletions libs/arcadeshield/pxt.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"core": "file:../core"
},
"files": [
"config.ts",
"config_nrf.h",
"screen.cpp",
"image.cpp",
Expand Down

0 comments on commit 20d3817

Please sign in to comment.