Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By erhardd
#31864 @ danbicks!
Thanks for your re.,
I use this display:
http://www.ebay.com/itm/3-3V-240x320-2- ... 912&rt=nc#

The cs-pins for the Mcp23s17(GPIO2), the TFT(cs=4,cd=15,reset-->rst,but must def on 15), theSD(5) and Touch(cs=16,irq=0) occupy all GPIO's.
I want to free up the I2C-Pins(4,5) for later use.

Please look also at this:
viewtopic.php?f=29&t=5672#p29854
That's why i 've also 2 STMPE-Expander on the selfmade Board. Look here:
https://www.mikrocontroller.net/topic/374780#4244966
It's a Adapterboard for Arduino UNO:
http://www.ebay.de/itm/221817025202?clk ... rmvSB=true
I use the Ucglib, but if you a "Windows-User" there will be Difficulties(Problems), see:
viewtopic.php?p=30066#p30066

For the freeing GPIO 4,5 i've to struggle with some timings ..
User avatar
By erhardd
#31921 The program-button works now(2 button). First the "paint" and sec." moving gears"
Image

But the hint:
"Wenig Speicher verfügbar, es können Stabilitätsprobleme auftreten .."

- here is the sketch:
You do not have the required permissions to view the files attached to this post.
User avatar
By danbicks
#31932 Do you have a pic of the ESP board you are using.

Looks really good so far. So to get this correct, only 2 pins are needed to implement the touch panel operation, cs and irq.

I will order some of these displays with the touch option if this is the case.

Have you managed to free up 2 pins for I2c? what is the issue with this library conflicts?

Cheers

Dans
User avatar
By erhardd
#31939 I've put the ESP07 on an Arduino Proto-shield:
http://www.ebay.de/itm/221817025202?clk ... rmvSB=true
Image
- and added -Spannungsregler ST LD1117DT;
- (Unterseite) 5v-Buchse und PL2303(Waveshare FTDI_Adapter);
-reset-Button und flash-Button(S1);
Than a selfmade PCB with -mcp23s17 16-bit SPI

Image
if you want to build one:
https://www.mikrocontroller.net/attachm ... p23x17.brd
Also a stmpe811-board(to see under the mcp23x17 in the 1. pic), but that is not in the sketch. This should deliver me the cs-lines ..
.. and there are the timing problems i have to solve;
-the touch panel operation SPI is also doubled with the TFT-SPI, so only Touch cs and irq are needed.
This works great ...
- - but I have to mention, that if the second button is programmed the SD-Webserver stops!
all the great stuff with the "edit" upload files to the SD-card and show them in the browser fails
That's what it mean: --not enough memory :(

edit:
found that-
http://fr.aliexpress.com/item/WeMos-D1- ... Title=true