JohnDoneth / hd44780-driver

Implementation of the embedded-hal traits for the HD44780.
MIT License
37 stars 40 forks source link

Alternate arduino uno example #26

Open OliverEvans96 opened 4 years ago

OliverEvans96 commented 4 years ago

Here's my alternate HelloWorld example, very similar to your own, but using the uno-runner.sh from the avr-hal arduino uno examples and the circuit diagram from the Arduino LiquidCrystal HelloWorld example.

I was trying to mimic the counter on the second line displaying the number of seconds since reset, but I couldn't quite figure out how to write a number to the LCD yet. I was trying to use arrayvec and core::fmt::write!, but I think I got a panic-related error. So I tried with ufmt for a while, but decided to give up for the time being. Maybe you can make a suggestion here? Otherwise, I might give it another shot later.

I'm glad to incorporate any modifications you suggest! Oliver

OliverEvans96 commented 4 years ago

I got the seconds since reset working using numtoa!

JohnDoneth commented 4 years ago

Thanks for this! :tada: I'll definitely give it more of a look through once I'm less busy with work.