zerog2k / stc_diyclock

STC DIY Clock redux (STC15F204EA, STC15W404AS, STC15W408AS)
MIT License
170 stars 67 forks source link

barebone firmware #60

Open Oxmaster opened 2 years ago

Oxmaster commented 2 years ago

Can one compile this firmware so that the clock displays only time and nothing else? Time + autodimming only; no date, temperature etc.

My version has STC15W404AS

zerog2k commented 2 years ago

look at some defines like WITHOUT_DATE, WITHOUT_ALARM, WITHOUT_CHIME, etc https://github.com/zerog2k/stc_diyclock/blob/master/src/main.c#L38-L54

Oxmaster commented 2 years ago

I'm not quite sure if I understand the syntax.

enum keyboard decides what kind of menus are avaliable? Should I just delete lines from 31 to 59?

zerog2k commented 2 years ago

you'll need to define those macros somewhere could be as build flags to make, platformio.ini, or even just #defineing them at the top of the code