From 47c9137094857ce6180aa886f125212247ecbdb3 Mon Sep 17 00:00:00 2001 From: microbuilder Date: Wed, 22 Feb 2017 19:11:31 +0100 Subject: [PATCH] Added warning on NFC to GPIO sketch --- .../Hardware/nfc_to_gpio/nfc_to_gpio.ino | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/libraries/AdafruitFeather52Examples/Hardware/nfc_to_gpio/nfc_to_gpio.ino b/libraries/AdafruitFeather52Examples/Hardware/nfc_to_gpio/nfc_to_gpio.ino index 1928d394..2f7de2e2 100644 --- a/libraries/AdafruitFeather52Examples/Hardware/nfc_to_gpio/nfc_to_gpio.ino +++ b/libraries/AdafruitFeather52Examples/Hardware/nfc_to_gpio/nfc_to_gpio.ino @@ -3,6 +3,18 @@ // reset is required before this change takes effect since the CONFIG // memory is only read on power up. +// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +// !!!!! IMPORTANT NOTE ... READ BEFORE RUNNING THIS SKETCH !!!!! +// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! +// !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + +// UICR customer registers are meant to be stored with values +// that are supposed to stay there during the life time of the softdevice. +// You cannot erase them without erasing everything on chip, so setting the +// NFC pins to GPIO mode is a ONE WAY OPERATION and you will need a debugger +// like a Segger J-Link to set them back to NFC mode! + void setup() { Serial.begin(115200); Serial.println("Bluefruit52 NFC to GPIO Pin Config"); @@ -18,7 +30,7 @@ void setup() { delay(500); NVIC_SystemReset(); } - + } void loop() { // put your main code here, to run repeatedly: