DaneSlattery / hx711

A no-std rust library for the ESP32
GNU General Public License v3.0
6 stars 5 forks source link

Update embedded hal and rework interrupts #17

Closed DaneSlattery closed 1 week ago

DaneSlattery commented 1 week ago

Interrupts have caused too many headaches in this crate so I've decided to shift away from directly supporting them. There is not yet a standardised way to use interrupts in embedded-hal.

I now show how interrupts can be used in user code via examples, while moving the logic out of the core crate.

I have also updated to use embedded-hal, solving https://github.com/DaneSlattery/hx711/pull/15 and https://github.com/DaneSlattery/hx711/pull/11 , both of which have gone stale.