[Another example of higher level abstraction]
I came up with the idea to make it easy, simple, safe to extend a given driver (e.g. add new functionality). Something like traits in
#Rust 🦀.
You can literally declare a LCD with_animations and with additional backlight control (via PWM) on pin 18. I couldn't find a better, more descriptive way of doing things like this.
I will explain this example in detail in the next post (in a separate thread).
BTW, if by any chance you are an
#embedded #rust 🦀 developer - please share your favorite
#Rust examples in the context of firmware programming (cc:
@rustembedded). I wonder how many of them can be used in today's C . 🫶
[5/8] 🧵👇 Let's move on! 👇