Skip to content

Commit

Permalink
Merge branch 'master' into kiki-lee-very-eom
Browse files Browse the repository at this point in the history
  • Loading branch information
kiki-lee authored Jun 3, 2024
2 parents af8acee + dc5d7c3 commit dd9e238
Show file tree
Hide file tree
Showing 10 changed files with 14 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docs/beginner-maps.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"imageUrl": "/static/skillmap/backgrounds/story-map.png",
"url": "https://arcade.makecode.com/--skillmap#story",
"label": "New? Try This!",
"labelClass": "purple ribbon large",
"labelClass": "orange ribbon large",
"directOpen": true
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/skillmaps.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
"imageUrl": "/static/skillmap/backgrounds/beginner.png",
"url": "https://arcade.makecode.com/--skillmap#beginner",
"label": "New? Try This!",
"labelClass": "purple ribbon large",
"labelClass": "orange ribbon large",
"directOpen": true
},
{
Expand Down
2 changes: 1 addition & 1 deletion docs/tutorials.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"imageUrl": "/static/tutorials/interface/info.png",
"largeImageUrl": "/static/tutorials/interface/info.png",
"label": "New? Try This!",
"labelClass": "purple ribbon large"
"labelClass": "orange ribbon large"
},{
"name": "Chase the Pizza",
"description": "Get started creating a simple game to chase a pizza around the screen and collect as many points as possible before time runs out!",
Expand Down
1 change: 1 addition & 0 deletions libs/core---nrf52/dal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ declare const enum DAL {
CFG_PIN_WIFI_AT_TX = 91,
CFG_PIN_WIFI_AT_RX = 92,
CFG_PIN_USB_POWER = 93,
CFG_DISPLAY_DELAY = 94,
ACCELEROMETER_TYPE_LIS3DH = 50,
ACCELEROMETER_TYPE_LIS3DH_ALT = 48,
ACCELEROMETER_TYPE_MMA8453 = 56,
Expand Down
1 change: 1 addition & 0 deletions libs/core---rp2040/dal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -762,6 +762,7 @@ declare const enum DAL {
CFG_PIN_WIFI_AT_TX = 91,
CFG_PIN_WIFI_AT_RX = 92,
CFG_PIN_USB_POWER = 93,
CFG_DISPLAY_DELAY = 94,
ACCELEROMETER_TYPE_LIS3DH = 50,
ACCELEROMETER_TYPE_LIS3DH_ALT = 48,
ACCELEROMETER_TYPE_MMA8453 = 56,
Expand Down
1 change: 1 addition & 0 deletions libs/core---samd/dal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ declare const enum DAL {
CFG_PIN_WIFI_AT_TX = 91,
CFG_PIN_WIFI_AT_RX = 92,
CFG_PIN_USB_POWER = 93,
CFG_DISPLAY_DELAY = 94,
ACCELEROMETER_TYPE_LIS3DH = 50,
ACCELEROMETER_TYPE_LIS3DH_ALT = 48,
ACCELEROMETER_TYPE_MMA8453 = 56,
Expand Down
1 change: 1 addition & 0 deletions libs/core---stm32/dal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -680,6 +680,7 @@ declare const enum DAL {
CFG_PIN_WIFI_AT_TX = 91,
CFG_PIN_WIFI_AT_RX = 92,
CFG_PIN_USB_POWER = 93,
CFG_DISPLAY_DELAY = 94,
ACCELEROMETER_TYPE_LIS3DH = 50,
ACCELEROMETER_TYPE_LIS3DH_ALT = 48,
ACCELEROMETER_TYPE_MMA8453 = 56,
Expand Down
1 change: 1 addition & 0 deletions libs/core/dal.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -678,6 +678,7 @@ declare const enum DAL {
CFG_PIN_WIFI_AT_TX = 91,
CFG_PIN_WIFI_AT_RX = 92,
CFG_PIN_USB_POWER = 93,
CFG_DISPLAY_DELAY = 94,
ACCELEROMETER_TYPE_LIS3DH = 50,
ACCELEROMETER_TYPE_LIS3DH_ALT = 48,
ACCELEROMETER_TYPE_MMA8453 = 56,
Expand Down
1 change: 1 addition & 0 deletions libs/hw---n3/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ namespace config {

export const DISPLAY_WIDTH = 160
export const DISPLAY_HEIGHT = 128
export const DISPLAY_DELAY = 300

export const DISPLAY_TYPE = 4242 // smart display

Expand Down
5 changes: 5 additions & 0 deletions libs/screen---st7735/targetoverrides.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,11 @@
//% groups=["0.","1#","2T","3t","4N","5n","6G","7g","8","9","aAR","bBP","cCp","dDO","eEY","fFW"]
function img(lits: any, ...args: any[]): Image { return null }

// this wait needed in case of an ESD event for arcade shield
const delay = control.getConfigValue(DAL.CFG_DISPLAY_DELAY, 0)
if (delay > 0)
control.waitMicros(delay * 1000)

// set palette before creating screen, so the JS version has the right BPP
image.setPalette(hex`__palette`)
//% whenUsed
Expand Down

0 comments on commit dd9e238

Please sign in to comment.