34 lines
780 B
C++
34 lines
780 B
C++
#include <Arduino.h>
|
|
|
|
#define MY_DEBUG
|
|
#define MY_RADIO_RF24
|
|
#define MY_RF24_PA_LEVEL RF24_PA_HIGH
|
|
#define MY_GATEWAY_SERIAL
|
|
#define MY_RF24_CHANNEL (105)
|
|
// Define a lower baud rate for Arduinos running on 8 MHz (Arduino Pro Mini 3.3V & SenseBender)
|
|
#if F_CPU == 8000000L
|
|
#define MY_BAUD_RATE 38400
|
|
#endif
|
|
// Set blinking period
|
|
#define MY_DEFAULT_LED_BLINK_PERIOD 300
|
|
// Inverses the behavior of leds
|
|
#define MY_WITH_LEDS_BLINKING_INVERSE
|
|
// Flash leds on rx/tx/err
|
|
#define MY_DEFAULT_ERR_LED_PIN 4 // Error led pin
|
|
#define MY_DEFAULT_RX_LED_PIN 6 // Receive led pin
|
|
#define MY_DEFAULT_TX_LED_PIN 5 // the PCB, on board LED
|
|
|
|
#include <MySensors.h>
|
|
|
|
unsigned long cRun;
|
|
int cSec;
|
|
|
|
void setup()
|
|
{
|
|
Serial.println("Begin");
|
|
}
|
|
|
|
void loop()
|
|
{
|
|
}
|