DEV Community

Leon S.
Leon S.

Posted on

I built a library that makes MicroPython feel like a web framework – looking for feedback

Hey! I got tired of writing low-level register code for sensors, so I made a declarative
abstraction layer.

Instead of bit-shifting I2C data, you write:

 sensor = hardware.attach("I2C", type="BME280")
 sensor.on_threshold("temperature > 25°C", lambda e: fan.on())
Enter fullscreen mode Exit fullscreen mode

It's called BitBound, available on PyPI. Supports 20+ devices, runs in simulation mode for desktop
testing.

Happy to share the link if anyone's interested – just comment below!

What sensors/actuators would you want supported?

Top comments (1)

Collapse
 
esistleon profile image
Leon S.