LED clock
 All Files Functions Variables Macros Groups
Macros | Variables
ticks per time units

Macros

#define TICKS_PER_SECOND   256
 the number of ticks in one second (32768 divisor greater than 256*LED_WS2812B_LEDS/60)
 

Variables

const uint32_t ticks_second = TICKS_PER_SECOND
 number of ticks in one second
 
const uint32_t ticks_minute = 60*TICKS_PER_SECOND
 number of ticks in one minute
 
const uint32_t ticks_hour = 60*60*TICKS_PER_SECOND
 number of ticks in one hour
 
const uint32_t ticks_midday = 12*60*60*TICKS_PER_SECOND
 number of ticks in one midday (12 hours)
 

Detailed Description

Note
these are derived from TICKS_PER_SECOND
I have to use type variables because defines would be stored in signed integers, leading to an overflow it later calculations