arduino compile errors everytime

8 years 5 days ago #3210 by nuesome
Can someone please help me. Everytime I try to compile anything for the esp12e board except for the arduino examples, it gives tons of error codes. I know I am missing something but I just can't figure out what it is. I tried to run the pir sample code from this website. Thanks for any help
Arduino: 1.6.7 (Windows 7), Board: "NodeMCU 1.0 (ESP-12E Module), 80 MHz, Serial, 115200, 4M (3M SPIFFS)"

Build options changed, rebuilding all
C:\Users\Amber\AppData\Local\Temp\untitled1958016531.tmp\sketch_apr14a\ESP8266_di.ino: In function 'void setup()':

ESP8266_di:35: error: redefinition of 'void setup()'

void setup() {

^

sketch_apr14a:1: error: 'void setup()' previously defined here

void setup() {

^

ESP8266_di:39: error: 'wifiConnect' was not declared in this scope

wifiConnect();

^

C:\Users\Amber\AppData\Local\Temp\untitled1958016531.tmp\sketch_apr14a\ESP8266_di.ino: In function 'void loop()':

ESP8266_di:50: error: redefinition of 'void loop()'

void loop() {

^

sketch_apr14a:6: error: 'void loop()' previously defined here

void loop() {

^

ESP8266_di:55: error: 'sendInputState' was not declared in this scope

sendInputState(inputState);

^

exit status 1
redefinition of 'void setup()'

This report would have more information with
"Show verbose output during compilation"
enabled in File > Preferences.

Please Log in or Create an account to join the conversation.

7 years 11 months ago #3259 by daviesrv
I have that problem as well.

I have to cut and paste all the voids, and put them below the setup, and loop voids.

When you find out......

Please Log in or Create an account to join the conversation.

7 years 11 months ago #3265 by piman
What USB drivers are you using?

Please Log in or Create an account to join the conversation.

Time to create page: 0.542 seconds

Forum latest

  • No posts to display.