-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathParameters.h
More file actions
43 lines (34 loc) · 753 Bytes
/
Parameters.h
File metadata and controls
43 lines (34 loc) · 753 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
#ifndef PARAMETERS_H
#define PARAMETERS_H
#include <stdint.h>
#include <Arduino.h>
#include <EEPROM.h>
class Parameters {
public:
void load();
void write();
uint8_t red();
void red(uint8_t);
uint8_t green();
void green(uint8_t);
uint8_t blue();
void blue(uint8_t);
String ssid();
void ssid(String);
String passphrase();
void passphrase(String);
private:
uint8_t _red;
uint8_t _green;
uint8_t _blue;
String _ssid;
String _passphrase;
};
struct __attribute__ ((packed)) Config {
uint8_t red;
uint8_t green;
uint8_t blue;
char ssid[32];
char passphrase[64];
};
#endif //PARAMETERS_H