mirror of
https://github.com/espruino/Espruino.git
synced 2025-12-08 19:06:15 +00:00
Puck.js: Allow D21(RST) to be used as normal IO pin
This commit is contained in:
parent
f7577777a1
commit
2fcce3f2ef
@ -130,6 +130,7 @@
|
||||
Puck.js: Self test now sets Puck.js BLE name if there's an error
|
||||
Fix bitwise rshift by 0 to be unsigned (fix #1784)
|
||||
Bangle.js: Don't load .boot0/1/2/3 if BTN1 is pressed
|
||||
Puck.js: Allow D21(RST) to be used as normal IO pin
|
||||
|
||||
2v04 : Allow \1..\9 escape codes in RegExp
|
||||
ESP8266: reading storage is not working for boot from user2 (fix #1507)
|
||||
|
||||
@ -40,7 +40,7 @@ info = {
|
||||
],
|
||||
'makefile' : [
|
||||
'DEFINES+=-DHAL_NFC_ENGINEERING_BC_FTPAN_WORKAROUND=1', # Looks like proper production nRF52s had this issue
|
||||
'DEFINES+=-DCONFIG_GPIO_AS_PINRESET', # Allow the reset pin to work
|
||||
# 'DEFINES+=-DCONFIG_GPIO_AS_PINRESET', # reset isn't being used, so let's just have an extra IO (needed for Puck.js V2)
|
||||
'DEFINES+=-DBLUETOOTH_NAME_PREFIX=\'"Puck.js"\'',
|
||||
'DEFINES+=-DCUSTOM_GETBATTERY=jswrap_puck_getBattery',
|
||||
'DEFINES+=-DNFC_DEFAULT_URL=\'"https://puck-js.com/go"\'',
|
||||
@ -93,6 +93,7 @@ devices = {
|
||||
'pin_int':'D17',
|
||||
'pin_sda':'D20',
|
||||
'pin_scl':'D19',
|
||||
'pin_drdy':'D21',
|
||||
},
|
||||
'ACCEL': { 'device': 'LSM6DS3TR', 'addr' : 106, # v2.0
|
||||
# 'pin_pwr':'D16', # can't actually power this from an IO pin due to undocumented, massive power draw on startup
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user