Puck.js: Allow D21(RST) to be used as normal IO pin

This commit is contained in:
Gordon Williams 2020-03-28 15:07:43 +00:00
parent f7577777a1
commit 2fcce3f2ef
2 changed files with 3 additions and 1 deletions

View File

@ -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)

View File

@ -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