Add christmas edition
This commit is contained in:
parent
2f1c7d9e82
commit
b62af486a7
1 changed files with 3422 additions and 1 deletions
16
christmas/AdAstra/src/driver/sleep/sleep.h
Normal file
16
christmas/AdAstra/src/driver/sleep/sleep.h
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
#ifndef SLEEP_H
|
||||
#define SLEEP_H
|
||||
|
||||
#include <stdbool.h>
|
||||
#include <avr/io.h>
|
||||
|
||||
// FrameFunction gets previousFrameTime (in milliseconds) as argument
|
||||
typedef bool (*FrameFunction)(uint8_t);
|
||||
|
||||
// Shut down the machine
|
||||
void powerOff();
|
||||
|
||||
// Call function every frameLengthInMilliseconds while it returns true
|
||||
void startFrameLoop(FrameFunction function, uint8_t frameLengthInMilliseconds);
|
||||
|
||||
#endif
|
||||
Loading…
Reference in a new issue