JakeWharton / NormallyClosed

Open and close your garage door with a Raspberry Pi
Apache License 2.0
118 stars 5 forks source link

Polymorphic garage/door abstraction #8

Open JakeWharton opened 3 years ago

JakeWharton commented 3 years ago

The mini HAT has an LCD which could display something. The big HAT has LEDs that could flash on toggle or show state. All of these should be encapsulated behind a trait to allow a struct to function as a door and/or garage.

JakeWharton commented 3 years ago

No async fn in traits is a big buzzkill here...

JakeWharton commented 3 years ago

We have a polymorphic button now. The start of this.