2018-11-19 20:03:04 +00:00
|
|
|
/*
|
|
|
|
* Stairs lighting
|
|
|
|
* Copyright 2017 (c) Mark van Renswoude
|
|
|
|
*
|
|
|
|
* https://git.x2software.net/pub/Stairs
|
|
|
|
*/
|
|
|
|
#ifndef __settings
|
|
|
|
#define __settings
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2018-11-20 20:55:31 +00:00
|
|
|
#include <stdbool.h>
|
2018-11-19 20:03:04 +00:00
|
|
|
|
2018-11-20 20:55:31 +00:00
|
|
|
const uint8_t ModuleIndexUndefined = 0xff;
|
2018-11-19 20:03:04 +00:00
|
|
|
|
|
|
|
|
|
|
|
class Settings
|
|
|
|
{
|
|
|
|
private:
|
|
|
|
uint8_t mModuleIndex = ModuleIndexUndefined;
|
|
|
|
|
|
|
|
public:
|
|
|
|
void init();
|
|
|
|
|
2018-11-20 20:55:31 +00:00
|
|
|
bool hasModuleIndex();
|
2018-11-19 20:03:04 +00:00
|
|
|
uint8_t getModuleIndex();
|
|
|
|
void setModuleIndex(uint8_t index);
|
|
|
|
};
|
|
|
|
|
|
|
|
#endif
|