Remove SPI.h and EEPROM.h includes (#555)
* Remove duplicate includes * Reorder SPI.h include
This commit is contained in:
committed by
Embedded Innovation
parent
f9c36c9b74
commit
0a8fbe5816
+1
-1
@@ -34,10 +34,10 @@
|
||||
#define MY_RF24_SPI_DATA_MODE SPI_MODE0
|
||||
|
||||
#if defined (ARDUINO) && !defined (__arm__) && !defined (_SPI)
|
||||
#include <SPI.h>
|
||||
#if defined(MY_SOFTSPI)
|
||||
SoftSPI<MY_SOFT_SPI_MISO_PIN, MY_SOFT_SPI_MOSI_PIN, MY_SOFT_SPI_SCK_PIN, MY_RF24_SPI_DATA_MODE> _SPI;
|
||||
#else
|
||||
#include <SPI.h>
|
||||
#define _SPI SPI
|
||||
#endif
|
||||
#else
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define CHILD_ID_MQ 0
|
||||
|
||||
@@ -35,7 +35,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
int BATTERY_SENSE_PIN = A0; // select the input pin for the battery sense point
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define SKETCH_NAME "Binary Sensor"
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define CHILD_ID_AIQ 0
|
||||
|
||||
@@ -26,7 +26,6 @@
|
||||
// load core modules only
|
||||
#define MY_CORE_ONLY
|
||||
|
||||
#include <EEPROM.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
void setup()
|
||||
|
||||
@@ -42,7 +42,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define SN "DimmableLED"
|
||||
|
||||
@@ -36,7 +36,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define CHILD_ID_LIGHT 1
|
||||
|
||||
@@ -45,7 +45,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define CHILD_ID_DUST 0
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define CHILD_ID_DUST_PM10 0
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define DIGITAL_INPUT_SENSOR 3 // The digital input you attached your light sensor. (Only 2 and 3 generates interrupt!)
|
||||
|
||||
@@ -65,8 +65,6 @@
|
||||
* Make sure to fill in your ssid and WiFi password below for ssid & pass.
|
||||
*/
|
||||
|
||||
#include <EEPROM.h>
|
||||
#include <SPI.h>
|
||||
|
||||
// Enable debug prints to serial monitor
|
||||
#define MY_DEBUG
|
||||
|
||||
@@ -57,8 +57,6 @@
|
||||
* Make sure to fill in your ssid and WiFi password below for ssid & pass.
|
||||
*/
|
||||
|
||||
#include <EEPROM.h>
|
||||
#include <SPI.h>
|
||||
|
||||
// Enable debug prints to serial monitor
|
||||
#define MY_DEBUG
|
||||
|
||||
@@ -66,8 +66,6 @@
|
||||
* Make sure to fill in your ssid and WiFi password below for ssid & pass.
|
||||
*/
|
||||
|
||||
#include <EEPROM.h>
|
||||
#include <SPI.h>
|
||||
#include <ArduinoOTA.h>
|
||||
|
||||
// Enable debug prints to serial monitor
|
||||
|
||||
@@ -82,7 +82,6 @@
|
||||
//#define MY_DEFAULT_RX_LED_PIN 6 // Receive led pin
|
||||
//#define MY_DEFAULT_TX_LED_PIN 5 // the PCB, on board LED
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
void setup() {
|
||||
|
||||
@@ -82,7 +82,6 @@
|
||||
#define MY_DEFAULT_RX_LED_PIN 5 // Receive led pin
|
||||
#define MY_DEFAULT_TX_LED_PIN 6 // the PCB, on board LED
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
void setup() {
|
||||
|
||||
@@ -109,7 +109,6 @@
|
||||
//#define MY_DEFAULT_RX_LED_PIN 8 // Receive led pin
|
||||
//#define MY_DEFAULT_TX_LED_PIN 9 // the PCB, on board LED
|
||||
|
||||
#include <SPI.h>
|
||||
|
||||
#if defined(MY_USE_UDP)
|
||||
#include <EthernetUdp.h>
|
||||
|
||||
@@ -57,7 +57,6 @@
|
||||
* Make sure to fill in your ssid and WiFi password below for ssid & pass.
|
||||
*/
|
||||
|
||||
#include <SPI.h>
|
||||
|
||||
// Enable debug prints to serial monitor
|
||||
#define MY_DEBUG
|
||||
|
||||
@@ -33,7 +33,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define CHILD_ID_LIGHT 0
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
|
||||
#define MY_NODE_ID 254
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define RADIO_ERROR_LED_PIN 4 // Error led pin
|
||||
|
||||
@@ -34,7 +34,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
unsigned long SLEEP_TIME = 120000; // Sleep time between reports (in milliseconds)
|
||||
|
||||
@@ -53,7 +53,6 @@
|
||||
// Set RS485 baud rate to use
|
||||
#define MY_RS485_BAUD_RATE 9600
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
unsigned long SLEEP_TIME = 120000; // Sleep time between reports (in milliseconds)
|
||||
|
||||
@@ -29,7 +29,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define COMPARE_PH 1 // Send PH only if changed? 1 = Yes 0 = No
|
||||
|
||||
@@ -15,7 +15,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
#include "MYSLog.h"
|
||||
|
||||
|
||||
@@ -37,7 +37,6 @@
|
||||
// Enable repeater functionality for this node
|
||||
#define MY_REPEATER_FEATURE
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define RELAY_1 3 // Arduino Digital I/O pin number for first relay (second on pin+1 etc)
|
||||
|
||||
@@ -38,7 +38,6 @@
|
||||
// Enabled repeater feature for this node
|
||||
#define MY_REPEATER_FEATURE
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
void setup() {
|
||||
|
||||
@@ -58,7 +58,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
|
||||
|
||||
@@ -65,7 +65,6 @@
|
||||
// SETTINGS FOR MY_SIGNING_ATSHA204
|
||||
#define MY_SIGNING_ATSHA204_PIN 17 //!< A3 - pin where ATSHA204 is attached
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
|
||||
|
||||
@@ -82,7 +82,6 @@
|
||||
//#define MY_DEFAULT_RX_LED_PIN 6 // Receive led pin
|
||||
//#define MY_DEFAULT_TX_LED_PIN 5 // the PCB, on board LED
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
#include <SD.h>
|
||||
#include <drivers/ATSHA204/ATSHA204.cpp>
|
||||
|
||||
@@ -68,7 +68,6 @@
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <math.h> // Conversion equation from resistance to %
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
// Setting up format for reading 3 soil sensors
|
||||
|
||||
@@ -43,7 +43,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define UV_SENSOR_ANALOG_PIN 0
|
||||
|
||||
@@ -39,7 +39,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
#include <Wire.h>
|
||||
|
||||
|
||||
@@ -41,7 +41,6 @@
|
||||
#define MY_RADIO_NRF24
|
||||
//#define MY_RADIO_RFM69
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
#define DIGITAL_INPUT_SENSOR 3 // The digital input you attached your sensor. (Only 2 and 3 generates interrupt!)
|
||||
|
||||
-1
@@ -34,5 +34,4 @@
|
||||
#define MY_SIGNING_ATSHA204_PIN 17
|
||||
#endif
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
-1
@@ -34,5 +34,4 @@
|
||||
#define MY_SIGNING_ATSHA204_PIN 17
|
||||
#endif
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
-1
@@ -35,5 +35,4 @@
|
||||
#endif
|
||||
#define MY_NODE_LOCK_FEATURE
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
-1
@@ -35,5 +35,4 @@
|
||||
#endif
|
||||
#define MY_RF24_ENABLE_ENCRYPTION
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
-1
@@ -35,5 +35,4 @@
|
||||
#endif
|
||||
#define MY_RFM69_ENABLE_ENCRYPTION
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
-1
@@ -34,5 +34,4 @@
|
||||
#define MY_SIGNING_ATSHA204_PIN 17
|
||||
#endif
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
-1
@@ -34,5 +34,4 @@
|
||||
#define MY_SIGNING_ATSHA204_PIN 17
|
||||
#endif
|
||||
|
||||
#include <SPI.h>
|
||||
#include <MySensors.h>
|
||||
|
||||
Reference in New Issue
Block a user