A library for reading rotary encoders (ESP-8266 and Pyboard/stmhal)

Discuss development of drivers for external hardware and components, such as LCD screens, sensors, motor drivers, etc.
Target audience: Users and developers of drivers.
User avatar
dhylands
Posts: 2319
Joined: Mon Jan 06, 2014 6:08 pm
Location: Shuswap, BC, Canada
Contact:

Re: A library for reading rotary encoders (ESP-8266 and Pyboard/stmhal)

Postby dhylands » Wed Jan 18, 2017 6:40 am

Interrupt callbacks can be class methods. This is a pyboard example, but see here:
https://github.com/dhylands/upy-example ... eat_irq.py
heartbeat_cb is an interrupt callback (and it's bound to the Heartbeat object created on line 19)


Return to “Drivers for External Components”

Who is online

Users browsing this forum: No registered users and 1 guest