modes.h File Reference
Go to the source code of this file.
Defines |
#define | FADETIME 128 |
#define | FADETIME_S 256 |
#define | NDISPLAYMODES 3 |
| Display modes.
|
Enumerations |
enum | _fademode { FADE_OFF = 0,
FADE_ON,
FADE_SLOW
} |
enum | _dotmode { DOT_BLINK = 0,
DOT_ON,
DOT_OFF
} |
| Dot modes.
More...
|
enum | _displaymode { HHMM = 0,
MMSS,
VOLTAGE
} |
enum | _blinkmode {
BLINK_NONE = 0,
BLINK_HH = 1,
BLINK_MM = 2,
BLINK_ALL = 3,
BLINK_SUPPRESS = 0200
} |
| Blinking modes, see timer0 overflow interrupt.
More...
|
enum | _savinmode { WASTE = 0,
SAVE,
SAVENIGHT
} |
| Saving modes.
More...
|
Functions |
void | fade_set (uint8_t mode) |
enum _fademode | fade_get () |
void | dotmode_set (uint8_t mode) |
void | mode_next () |
uint8_t | mode_get () |
void | blinkmode_set (uint8_t mode) |
uint8_t | blinkmode_get () |
void | savingmode_set (uint8_t s) |
uint8_t | savingmode_get () |
void | savingmode_next () |
Variables |
volatile uint16_t | fadetime_full |
volatile uint16_t | fadetime_quart |
volatile uint8_t | dotmode |
| dot blinking mode
|
Define Documentation
Enumeration Type Documentation
Blinking modes, see timer0 overflow interrupt.
- Enumerator:
BLINK_NONE |
|
BLINK_HH |
|
BLINK_MM |
|
BLINK_ALL |
|
BLINK_SUPPRESS |
To be OR'ed with current mode.
|
- Enumerator:
HHMM |
Normal mode, HH:MM.
|
MMSS |
Minutes:Seconds mode, set button resets seconds to zero.
|
VOLTAGE |
Voltmeter mode.
|
Fade modes. Fade is off for in setup and voltmeter modes
- Enumerator:
FADE_OFF |
|
FADE_ON |
|
FADE_SLOW |
|
Saving modes.
- Enumerator:
WASTE |
Full-on all the time.
|
SAVE |
constantly preserve
|
SAVENIGHT |
preserve 00:00-08:00
|
Function Documentation
uint8_t blinkmode_get |
( |
|
) |
[inline] |
void blinkmode_set |
( |
uint8_t |
mode |
) |
|
void dotmode_set |
( |
uint8_t |
mode |
) |
|
00041 {
00042 dotmode = mode;
00043 }
00032 { return fademode; }
void fade_set |
( |
uint8_t |
mode |
) |
|
uint8_t mode_get |
( |
|
) |
[inline] |
uint8_t savingmode_get |
( |
|
) |
[inline] |
00095 { return savingmode; }
void savingmode_set |
( |
uint8_t |
s |
) |
|
00091 {
00092 savingmode = s;
00093 }
Variable Documentation