This repository consists of
- A
wordclock
business logic crate - Crates for displaying on various media
yew-wordclock
crate (path./yew
) for display as webassembly based web applicationiced-wordclock
crate (path./iced
) for display rendered on GPU in a graphic window on Linux, Windows and Macpancurses-wordclock
crate (./pancurses
) for display in a terminal
The library crate wordclock
is covered by CI.
Make sure your have cargo, rustc installed.
For the web assembly you also need to install trunk via cargo install trunk
and
the wasm-unknown-unknown target via rustup add target wasm-unknown-unknown
Clone this repository and run the example
git clone https://github.com/almedso/wordclock.git
cd wordclock
cargo run --example terminal-on
Run the iced GPU accelerated variant
cd ./iced
cargo run
Run the terminal variant variant
cd ./pancurses
cargo run
Run the web assembly variant
cd ./yew
trunk serve --open
- Add Spanish words?
- Add an example on embedded. (e.g. have a look at: https://www.instructables.com/THE-WORD-CLOCK/)
- LED-Strip variant needs 5V and 8 A = 40 W !!!; That is not environment friendly. Maybe via
- Relay flips
- ePaper and embedded-graphics