Multithreading-like ideas?

All ESP8266 boards running MicroPython.
Official boards are the Adafruit Huzzah and Feather boards.
Target audience: MicroPython users with an ESP8266 board.
User avatar
Roberthh
Posts: 643
Joined: Sat May 09, 2015 4:13 pm
Location: Rhineland, Europe

Re: Multithreading-like ideas?

Postby Roberthh » Fri Mar 17, 2017 4:50 pm

I did not put too much in the timer code which would be disallowed in an ISR. Only stuff like:

Code: Select all

data = self.i2c.readfrom(self.address, 2)

or

Code: Select all

return ustruct.unpack('>h', data)[0]

which returns create or return newly allocated data objects. But in a later version I avoided that, allowing the code to be executed in a Pin ISR handler.


Return to “ESP8266 boards”

Who is online

Users browsing this forum: No registered users and 1 guest