I have 2 questions.
- Why we have to put our functions before void loop and void setup into VScode+platformio?
- I switched from arduino IDE to VScode+platformio today, when I upload the sketch with platformio into my esp-12, it doesn't work. (It works with arduino IDE)
I have this Warning: src\main.cpp:46:24: warning: large integer implicitly truncated to unsigned type [-Woverflow]
const byte menuColor = 0XF206;
[EDIT]The problem comes from these lines:
attachInterrupt(digitalPinToInterrupt(enA), enAin, RISING);
attachInterrupt(digitalPinToInterrupt(enB), enBin, RISING);
attachInterrupt(digitalPinToInterrupt(enBtn), enBtnIn, FALLING);
const unsigned int menuColor = 0xF206;
, and read more here. – hcheung Feb 24 '20 at 1:06when I compile the sketch
.... the upload happens after your sketch is successfully compiled .... in your case, the upload to the ESP-12 never happens – jsotola Feb 24 '20 at 15:58