r/ArduinoProjects • • May 04 '20

Another quarantine project begins - Reddit api data display (Piezo beeps for every upvote!) Uses TFT_eSPI lib for super-smooth memory-friendly image display and updating.

Post image
141 Upvotes

2 comments sorted by

4

u/ivoidwarranty May 04 '20 edited May 06 '20

Full build coming (see below!).

Basically uses reddit api to get called by a php script using Oauth2 (still have not figured out how to get Oauth2 to work natively on the NodeMCU) and then scrape the PHP page using the ESP8266HTTPClient lib to get page and then some simple string manipulation using indexOf() and substring() to clip and grab the actual data.

I found the TFT_eSPI library for displaying images on a TFT LCD screen after trying a few others- works really well compared to, say,

tft.drawPixel(col+offset_x, row+offset_y, pgm_read_word(image + buffidx));

which caused stack errors/reset after a few image swaps!

Edit:

Arduino and php code: https://github.com/defwheezer

Details: https://youtu.be/rxilyx7hE3U

1

u/stancr May 06 '20

Good luck with it. I admire the way you are using many different tools to make this work!

Keep us posted!