Example sketches for the new Arduino IDE for ESP8266

Moderator: igrr

User avatar
By erhardd
#31025 picstart wrote:
Ardruino often has embedded dependencies in your ucglib the dependencies was with uclib since it depended on the German language and the a user dependency.
I had not counted on such difficulties!
Best way is following these hints from Oldmicroguy:
viewtopic.php?p=30066#p30066
and build the Ucglib for your environment.

A few questions:
- have you the staging-version in your Properties?
-the first build for Generic esp module failed(HelloWorld) ! I had to compile for NodeMCU(esp12) .
Then it compiles also for generic esp.
Why --> I don't know!

Check the .bin followed:
You do not have the required permissions to view the files attached to this post.
User avatar
By picstart
#31048 Norm
I tried thishttps://github.com/adafruit/Adafruit-ST ... 35-Library first but I suspect it only works with a piggy back board to a real Arduino
I never got it to work.

I get the impression ucglib from github is a non starter for a esp in emulation of a real arduino unless you want to build it yourself using Unix or Unix emulation on Windows. ucglib hasn't been much of a help in a pure esp8266 environment
I have ported from a PIC IDE a driver for the ST7735 ( working with far less obtuse and far less lexigraphic dependencies) in eclipse for the esp8266. The Eclipse IDE is far more transparent ( you get to see the make file ) and a superior editor.
Arduino is attractive mostly for the libraries but if the doesn't work with the esp8266 there is nothing to gain.
Esp8266 Arduino IDE is new so I shouldn't expect it to work for all but the most robust libraries.

erhardd
Neuer Ordner (2).7z I don't understand what to do with the HelloWorld.cpp.binxxx ?
have you the staging-version in your Properties? ...I have a folder C: Arduino/Portable/staging
including zips like esp8266-1.6.5-947-g39819f0.zip esptool-0.4.5-win32.zip there is no zip for ucglib is that the issue?

Again thanks for the help
User avatar
By erhardd
#31049 Delete the xxx from the Filename and you get a "HelloWorld.cpp.bin" that you can flash with e.g. ESP8266Flasher.exe to your esp at 0x00000. Only for a test!
-staging:
I mean in "Preferences" -- Additional Boards Manager URLs -- "http: //arduino.esp8266.com/staging/package_esp8266com_index.json"

For the try with Adafruit ST7735TFT you need on this place also:
https://adafruit.github.io/arduino-boar ... index.json
User avatar
By norm8332
#31050 That library I pointed out does work. I used it on ONLY an ESP-12E, NO ARDUINO and it worked first try using hardware SPI. You must have something wired wrong or some other software issue that is stopping it from working.

Here is a video of it working: https://www.youtube.com/watch?v=bqVHEhQ3jek