rkubera / ESP8266-RC-Transmitter-Receiver

ESP8266 RC Transmitter and Receiver
23 stars 8 forks source link

complain error #3

Open jpfree opened 3 years ago

jpfree commented 3 years ago

i use the nodemcu v3.0,when i compalin this scrip in Arduino IDE, it have a error: error: 'rx_setup' was not declared in this scope; did you mean 'setup'? what can i do ,thanks! essr

Arduino:1.8.13 (Windows 10), 开发板:"Generic ESP8266 Module, 80 MHz, Flash, Disabled (new aborts on oom), Disabled, All SSL ciphers (most compatible), 32KB cache + 32KB IRAM (balanced), Use pgm_read macros for IRAM/PROGMEM, dtr (aka nodemcu), 26 MHz, 40MHz, DOUT (compatible), 1MB (FS:64KB OTA:~470KB), 2, nonos-sdk 2.2.1+100 (190703), v2 Lower Memory, Disabled, None, Only Sketch, 115200"

D:\esp6288\esp8266-wifi-car\ESP8266-RC-Transmitter-Receiver\ESP8266_tx_rx\ESP8266_tx_rx.ino: In function 'void setup()':

ESP8266_tx_rx:154:3: error: 'rx_setup' was not declared in this scope; did you mean 'setup'?

154 | rx_setup();

  |   ^~~~~~~~

  |   setup

D:\esp6288\esp8266-wifi-car\ESP8266-RC-Transmitter-Receiver\ESP8266_tx_rx\ESP8266_tx_rx.ino: In function 'void loop()':

ESP8266_tx_rx:164:3: error: 'rx_loop' was not declared in this scope; did you mean 'rx_ip'?

164 | rx_loop();

  |   ^~~~~~~

  |   rx_ip

exit status 1

'rx_setup' was not declared in this scope; did you mean 'setup'?

rkubera commented 3 years ago

Did you download all sources from repo? In Arduino IDE you have opened only 1 file - ESP8266_tx_tx.ino. Function rx_setup is implemented in RX.ino file. Download full source code, reopen project ant try again, plesae.

Regards, Radek.

jpfree commented 3 years ago

yes ,i download all sources from repo.but when i open ESP8266_tx_rx.ino ,the arduino ide say must move to the file folders named ESP8266_tx_rx.. QQ截图20210713164659

thanks for you answer.

rkubera commented 3 years ago

But check, if all files are in destination folder (after move) ,please. In my opinion only ESP8266_tx_rx.ino file was moved. Regards, Radek.