From 2fcce3f2ef93c9ecc12ce8a2d71ff9cc0482583c Mon Sep 17 00:00:00 2001 From: Gordon Williams Date: Sat, 28 Mar 2020 15:07:43 +0000 Subject: [PATCH] Puck.js: Allow D21(RST) to be used as normal IO pin --- ChangeLog | 1 + boards/PUCKJS.py | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/ChangeLog b/ChangeLog index a9d5d43fc..a8df6e2e0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -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) diff --git a/boards/PUCKJS.py b/boards/PUCKJS.py index 556ecc4c4..890d261ea 100644 --- a/boards/PUCKJS.py +++ b/boards/PUCKJS.py @@ -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