Created by: https://github.com/will-tam/framebuffer-color_clock-C
Modified for use with Candle to show a clock on an attached display if the kiosk-mode is disabled, and the Photo-Frame addon is also not installed
.
A colored clock just in test of framebuffer library. I confess this test/exercice idea comes from "Le Vortex" https://www.youtube.com/@LeVortexARTE/videos and their clock.
/!\ Assume FB is in 32bpp mode. /!\
- Create a Linux virtual machine (VM) with an X server.
- In console mode:
- Check and configure network between VM and your physical machine (PM).
- install, configure and run the ssh server.
- Log off or not, but the VM still active.
- Open a terminal on your PM.
- Open a ssh connection with the VM.
- Install and configure the C development kit (gcc + make + lib in debug/dev).
- Install git.
- Clone this repository.
- Go to the newly created directory.
- Just type
make. - If all is ok, the VM console shows you nice arts, while the ssh terminal shows some information.
Of course, you can try directly in your PM (in TTY1 for example - CTRL-ALT-F1 if you use X interface). BUT if something wrong, prepare to reboot your PM.
-
HSL and HSV color :
-
Framebuffer :
-
Key events :
-
Line and circle algorithmes :
-
Tranforming HSV color format into GB color format :