Add yellow number 4

This commit is contained in:
Nico Schottelius 2016-09-16 16:07:28 +02:00
parent ff732ae0ff
commit a7b733106a
1 changed files with 1 additions and 23 deletions

View File

@ -8,9 +8,6 @@
/* The number of the device: 1,2,3,4 */
#define deviceNo 4
/* LoraOne / Sodaq one have RGB LED */
#ifdef LED_RED
#define beePin ENABLE_PIN_IO
void BLUE() {
@ -76,23 +73,6 @@ void setupLED() {
pinMode(LED_BLUE, OUTPUT);
}
#else
#define beePin BEE_VCC
void blink(int length) {
digitalWrite(LED_BUILTIN, HIGH);
delay(length);
digitalWrite(LED_BUILTIN, LOW);
}
void setupLED() {
pinMode(LED_BUILTIN, OUTPUT);
}
#endif
// OTAA
// Random numbers chosen + device id
uint8_t DevEUI[8] = { 0x9c, 0xd9, 0x0b, 0xb5, 0x2b, 0x6a, 0x1d, deviceNo };
@ -118,10 +98,8 @@ void setupLoRaOTAA(){
void setup() {
//Power up the LoRaBEE - on loraone/sodaq one
#ifdef LED_RED
pinMode(ENABLE_PIN_IO, OUTPUT); // ONE
#endif
digitalWrite(beePin, HIGH); // ONE
delay(3000);