jnthas / cw-cf-0x00

Clockface Template

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cw-cf-0x00

This repo contains just a simple clockface template. Start from here if you want to create a new one.

To create a new Clockface, you just need a:

  • a class implementing the IClockface interface
    • in the main.cpp I'm considering the constructor will receive an instance of Adafruit_GFX so that the display can be handled inside your clockface
  • the interface has two methods setup() and loop() that is called the same way as Arduino does, setup() when it starts, loop() every time.
    • setup() receives an instace of CWDateTime where contains methods to get date/time updated

Check out this repo's source code to get more information.

[Video] Folder Structure

This video explains about the folder structure of Clockwise. It's a good starting point for anyone wanting to develop a new clockface.

Clockwise Video 1

Useful links when making a clockface

Fonts

Colors RGB565

Image converters (from png/jpg to C header file)

About

Clockface Template


Languages

Language:C++ 86.6%Language:CMake 13.4%