Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By danbicks
#18884 I will keep you posted on developments, I already have the serial interface fired up and working, ESP receives some data and responds to a given serial command :). Not the method I wanted to use but works for my purposes.

Dans
User avatar
By rarbolay
#18911 First of all Dans, thanks for your brilliant work. Sadly, it does not work for me. I connected as shown (ESP-01) and loaded the code using the Arduino IDE (1.6.4). It loads with the error " warning: deprecated conversion from string constant to 'char*' [-Wwrite-strings]" repeated multiple times and nothing happens when I return the ESP to regular mode (GPIO0 connected to SCL instead of GND).

I can run an LCD test program on the LCD with an Arduino UNO and it runs fine, yet it does nothing with the ESP. I open the serial before booting up the ESP and get a string of garbage for a second or so, then nothing. Any clues?
User avatar
By danbicks
#18946 Hi Rarbolay,

The warnings in the IDE are normal so don't worry about these.
Swap your I2c pins around the other way SDA of the display connects to GPIO-0

//Wire.pins(int sda, int scl), etc
Wire.pins(0, 2); //on ESP-01.

The garbage on boot is normal old ESP8266 boot up message, RS232 should be set to 115200 baud rate.

Hope this helps, keep me posted.

Dans
User avatar
By rarbolay
#18971 Thanks Dans. It took so long to approve my post that I got it to work, sort of. I have random pixels now. I swapped the ESP-01 and it started working ( serial messages all good, connects to my network) just get random pixels in the screen.
You do not have the required permissions to view the files attached to this post.