Make test sketches only set IO if not set in board
If a specific board is picked, some IO will be preconfigured and should not be overridden by a sketch.
This commit is contained in:
+6
@@ -18,6 +18,8 @@
|
||||
*
|
||||
*******************************
|
||||
*/
|
||||
#include <stdint.h>
|
||||
#include <pins_arduino.h>
|
||||
#define MY_DEBUG
|
||||
#define MY_DEBUG_VERBOSE_SIGNING
|
||||
#define MY_RADIO_NRF24
|
||||
@@ -25,8 +27,12 @@
|
||||
#define MY_SIGNING_ATSHA204
|
||||
//#define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}}}
|
||||
#define MY_SIGNING_REQUEST_SIGNATURES
|
||||
#ifndef MY_SIGNING_SOFT_RANDOMSEED_PIN
|
||||
#define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
|
||||
#endif
|
||||
#ifndef MY_SIGNING_ATSHA204_PIN
|
||||
#define MY_SIGNING_ATSHA204_PIN 17
|
||||
#endif
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensor.h>
|
||||
|
||||
+6
@@ -18,6 +18,8 @@
|
||||
*
|
||||
*******************************
|
||||
*/
|
||||
#include <stdint.h>
|
||||
#include <pins_arduino.h>
|
||||
#define MY_DEBUG
|
||||
#define MY_DEBUG_VERBOSE_SIGNING
|
||||
#define MY_RADIO_NRF24
|
||||
@@ -25,8 +27,12 @@
|
||||
#define MY_SIGNING_ATSHA204
|
||||
#define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}}}
|
||||
#define MY_SIGNING_REQUEST_SIGNATURES
|
||||
#ifndef MY_SIGNING_SOFT_RANDOMSEED_PIN
|
||||
#define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
|
||||
#endif
|
||||
#ifndef MY_SIGNING_ATSHA204_PIN
|
||||
#define MY_SIGNING_ATSHA204_PIN 17
|
||||
#endif
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensor.h>
|
||||
|
||||
+6
@@ -18,6 +18,8 @@
|
||||
*
|
||||
*******************************
|
||||
*/
|
||||
#include <stdint.h>
|
||||
#include <pins_arduino.h>
|
||||
#define MY_DEBUG
|
||||
#define MY_DEBUG_VERBOSE_SIGNING
|
||||
#define MY_RADIO_NRF24
|
||||
@@ -25,8 +27,12 @@
|
||||
#define MY_SIGNING_ATSHA204
|
||||
#define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}}}
|
||||
#define MY_SIGNING_REQUEST_SIGNATURES
|
||||
#ifndef MY_SIGNING_SOFT_RANDOMSEED_PIN
|
||||
#define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
|
||||
#endif
|
||||
#ifndef MY_SIGNING_ATSHA204_PIN
|
||||
#define MY_SIGNING_ATSHA204_PIN 17
|
||||
#endif
|
||||
#define MY_NODE_LOCK_FEATURE
|
||||
|
||||
#include <SPI.h>
|
||||
|
||||
+6
@@ -18,6 +18,8 @@
|
||||
*
|
||||
*******************************
|
||||
*/
|
||||
#include <stdint.h>
|
||||
#include <pins_arduino.h>
|
||||
#define MY_DEBUG
|
||||
#define MY_DEBUG_VERBOSE_SIGNING
|
||||
#define MY_RADIO_NRF24
|
||||
@@ -25,8 +27,12 @@
|
||||
#define MY_SIGNING_ATSHA204
|
||||
#define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}}}
|
||||
#define MY_SIGNING_REQUEST_SIGNATURES
|
||||
#ifndef MY_SIGNING_SOFT_RANDOMSEED_PIN
|
||||
#define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
|
||||
#endif
|
||||
#ifndef MY_SIGNING_ATSHA204_PIN
|
||||
#define MY_SIGNING_ATSHA204_PIN 17
|
||||
#endif
|
||||
#define MY_RF24_ENABLE_ENCRYPTION
|
||||
|
||||
#include <SPI.h>
|
||||
|
||||
+6
@@ -18,6 +18,8 @@
|
||||
*
|
||||
*******************************
|
||||
*/
|
||||
#include <stdint.h>
|
||||
#include <pins_arduino.h>
|
||||
#define MY_DEBUG
|
||||
#define MY_DEBUG_VERBOSE_SIGNING
|
||||
#define MY_RADIO_RFM69
|
||||
@@ -25,8 +27,12 @@
|
||||
#define MY_SIGNING_ATSHA204
|
||||
#define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}}}
|
||||
#define MY_SIGNING_REQUEST_SIGNATURES
|
||||
#ifndef MY_SIGNING_SOFT_RANDOMSEED_PIN
|
||||
#define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
|
||||
#endif
|
||||
#ifndef MY_SIGNING_ATSHA204_PIN
|
||||
#define MY_SIGNING_ATSHA204_PIN 17
|
||||
#endif
|
||||
#define MY_RFM69_ENABLE_ENCRYPTION
|
||||
|
||||
#include <SPI.h>
|
||||
|
||||
+6
@@ -18,6 +18,8 @@
|
||||
*
|
||||
*******************************
|
||||
*/
|
||||
#include <stdint.h>
|
||||
#include <pins_arduino.h>
|
||||
#define MY_DEBUG
|
||||
#define MY_DEBUG_VERBOSE_SIGNING
|
||||
#define MY_RADIO_NRF24
|
||||
@@ -25,8 +27,12 @@
|
||||
//#define MY_SIGNING_ATSHA204
|
||||
//#define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}}}
|
||||
#define MY_SIGNING_REQUEST_SIGNATURES
|
||||
#ifndef MY_SIGNING_SOFT_RANDOMSEED_PIN
|
||||
#define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
|
||||
#endif
|
||||
#ifndef MY_SIGNING_ATSHA204_PIN
|
||||
#define MY_SIGNING_ATSHA204_PIN 17
|
||||
#endif
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensor.h>
|
||||
|
||||
+6
@@ -18,6 +18,8 @@
|
||||
*
|
||||
*******************************
|
||||
*/
|
||||
#include <stdint.h>
|
||||
#include <pins_arduino.h>
|
||||
#define MY_DEBUG
|
||||
#define MY_DEBUG_VERBOSE_SIGNING
|
||||
#define MY_RADIO_NRF24
|
||||
@@ -25,8 +27,12 @@
|
||||
//#define MY_SIGNING_ATSHA204
|
||||
#define MY_SIGNING_NODE_WHITELISTING {{.nodeId = GATEWAY_ADDRESS,.serial = {0x09,0x08,0x07,0x06,0x05,0x04,0x03,0x02,0x01}}}
|
||||
#define MY_SIGNING_REQUEST_SIGNATURES
|
||||
#ifndef MY_SIGNING_SOFT_RANDOMSEED_PIN
|
||||
#define MY_SIGNING_SOFT_RANDOMSEED_PIN 7
|
||||
#endif
|
||||
#ifndef MY_SIGNING_ATSHA204_PIN
|
||||
#define MY_SIGNING_ATSHA204_PIN 17
|
||||
#endif
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensor.h>
|
||||
|
||||
Reference in New Issue
Block a user