Geting error:
…/the_user_app.cpp:3:1: error: ‘define’ does not name a type
btw. what does numbers ‘:3:1:’ means?
Code:
/**
This is SOS Blink code.
Made by: Me
1Q2014
**/
#define LED D7
#define dot 10
int dash = dot * 3; // If '#define dash 1500' code no not verifies. WHY?
#define led1 A1 // code verifies if this line do not exist. WHY?
void setup() {
pinMode (LED, OUTPUT);
RGB.control(true);
RGB.color(0, 0, 0);
}
void loop() {
digitalWrite (LED,HIGH); //start of 's'
delay (dot);
digitalWrite (LED,LOW);
delay (dot);
digitalWrite (LED,HIGH);
delay (dot);
digitalWrite (LED,LOW);
delay (dot);
digitalWrite (LED,HIGH);
delay (dot);
digitalWrite (LED,LOW);
delay (dash);
digitalWrite (LED,HIGH); //start of 'o'
delay (dash);
digitalWrite (LED,LOW);
delay (dot);
digitalWrite (LED,HIGH);
delay (dash);
digitalWrite (LED,LOW);
delay (dot);
digitalWrite (LED,HIGH);
delay (dash);
digitalWrite (LED,LOW);
delay (dash);
digitalWrite (LED,HIGH); //start of 's'
delay (dot);
digitalWrite (LED,LOW);
delay (dot);
digitalWrite (LED,HIGH);
delay (dot);
digitalWrite (LED,LOW);
delay (dot);
digitalWrite (LED,HIGH);
delay (dot);
digitalWrite (LED,LOW);
delay (7 * dot);
}
But if I try this code on arduino, it verifies (I do change pin name). I use web API.