Search found 3 matches

by jhadd
Tue Jan 31, 2017 12:05 am
Forum: ESP8266 boards
Topic: Displaying bitmap graphics on OLED
Replies: 11
Views: 25386

Displaying bitmap graphics on OLED

I'm trying to display simple monochrome bitmap graphics on a 128x64 OLED screen (SSD1306). It looks like there are simple ways to accomplish this with Arduino using Adafruit's GFX library, which has a drawbitmap method (see also here). Is there something similar for MicroPython?
by jhadd
Wed Jan 11, 2017 1:27 pm
Forum: ESP8266 boards
Topic: Running out of memory w/ API requests
Replies: 3
Views: 4317

Re: Running out of memory w/ API requests

[quote="ernitron"]Just a look at your code. In 4 nested loops how many times the condition si satisfied and the array growths?[/quote] Actually, the script crashes before it attempts to parse the JSON and add objects to the array. I studied it a little more carefully yesterday and I think the JSON r...
by jhadd
Tue Jan 10, 2017 7:09 pm
Forum: ESP8266 boards
Topic: Running out of memory w/ API requests
Replies: 3
Views: 4317

Running out of memory w/ API requests

I'm using urequests.py to query an API endpoint every minute or so and retrieve JSON data. My script is usually successful on the first couple of tries, but eventually fails with a memory error. Is there something obvious I'm doing wrong? Is it possible the JSON data is being stored in memory somewh...