fw-rust: Create a PWM signal for the backlight

To have a dimmable backlight, generate a variable duty-cycle PWM
signal which is consumed by the backlight driver circuit.
This commit is contained in:
finga 2022-03-04 12:59:51 +01:00
parent d2772291bf
commit aa59bc302d
3 changed files with 29 additions and 8 deletions

View file

@ -14,6 +14,7 @@ bench = false
panic-halt = "0.2"
nb = "1.0"
embedded-hal = "0.2"
avr-device = { version = "0.3", features = ["atmega328p"] }
[dependencies.atmega-hal]
git = "https://github.com/rahix/avr-hal"