TeXitoi / rusty-clock

An alarm clock with environment stats in pure bare metal embedded rust
MIT License
338 stars 27 forks source link

Questions while trying to use epd-waveshare instead of il3820 #14

Open caemor opened 5 years ago

caemor commented 5 years ago

I tried to use my epd_waveshare crate for this app instead of the il3820 which is basically just a slightly different driver for the same display. (the epd-crate also includes 2 other epds).

The biggest problem I have right now is that ui:view always creates a new buffer/display_ribbon_left. Is there a reason for this? (https://github.com/TeXitoi/rusty-clock/blob/master/portable/src/ui/mod.rs#L152)

TeXitoi commented 5 years ago

To mimich the ELM architecture.

Also to allocate only when needed, and to not depend on stm32 types without generics everywhere.

I quite like that the buffer is completely decoupled from the driver. I begun the il3820 crate before you publish your, and I never take the time to polish it for publication.

Now, the size of the display is quite hard coded in the rendering, some work need to be done if we want to use different screen size.

TeXitoi commented 5 years ago

Do you plan to construct a clock? I'd be interested by photos, even just on a breadboard!

caemor commented 5 years ago

Yes, I am trying to use your clock here :-D But I am still waiting for a few parts to arrive :-)

TeXitoi commented 5 years ago

I see you've done a lot of refactor to your driver. One time you publish 0.3 on crates.io, I'll happily accept a PR using your library that looks much better than mine.

Any news on the photos of your project?

caemor commented 5 years ago

I'm hanging on a bug where it doesn't set the fast refresh rate once more after the slow full refresh at the full hour. As soon as it's completly working I am happy to publish ;-) Also I was missing time :-D

caemor commented 5 years ago

image

a little screenshot of running your clock (although without the case and without buttons atm)

TeXitoi commented 5 years ago

If you have any more photos, I'll happily add them to the gallery.