Skip to content

Commit f2c01ca

Browse files
committed
A little tidy
1 parent 7a7f0f9 commit f2c01ca

13 files changed

Lines changed: 79 additions & 47 deletions

.github/webui.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
content = "const char mainPage[] PROGMEM = R\"=====(" + content + ")=====\";"
1212

1313
# Write the content of the file
14-
webuih = open('./src/Webinterface.h', 'w')
14+
webuih = open('./include/Webinterface.h', 'w')
1515
webuih.write(content)
1616
webuih.close()
1717

include/BtnActions.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#ifndef BTNACTIONS_H
2+
#define BTNACTIONS_H
3+
4+
enum btnActions
5+
{
6+
btnAction_DoNothing = 0,
7+
btnAction_GotoClock = 1,
8+
btnAction_ToggleSleepMode = 2,
9+
btnAction_MP3PlayPause = 3,
10+
btnAction_MP3PlayPrevious = 4,
11+
btnAction_MP3PlayNext = 5,
12+
};
13+
14+
#endif // BTNACTIONS_H

include/BtnStates.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#ifndef BTNSTATES_H
2+
#define BTNSTATES_H
3+
4+
enum btnStates
5+
{
6+
btnState_Released,
7+
btnState_PressedNew,
8+
btnState_PressedBefore,
9+
};
10+
11+
#endif // BTNSTATES_H
File renamed without changes.

include/LuxSensor.h

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#ifndef LUXSENSOR_H
2+
#define LUXSENSOR_H
3+
4+
enum LuxSensor
5+
{
6+
LuxSensor_LDR,
7+
LuxSensor_BH1750,
8+
LuxSensor_Max44009,
9+
};
10+
11+
#endif // LUXSENSOR_H
File renamed without changes.

include/TempSensor.h

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
#ifndef TEMPSENSOR_H
2+
#define TEMPSENSOR_H
3+
4+
enum TempSensor
5+
{
6+
TempSensor_None,
7+
TempSensor_BME280,
8+
TempSensor_DHT,
9+
TempSensor_BME680,
10+
TempSensor_BMP280,
11+
TempSensor_SHT31,
12+
};
13+
14+
#endif // TEMPSENSOR_H

include/TemperatureUnit.h

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#ifndef TEMPERATUREUNIT_H
2+
#define TEMPERATUREUNIT_H
3+
4+
enum TemperatureUnit
5+
{
6+
TemperatureUnit_Celsius,
7+
TemperatureUnit_Fahrenheit
8+
};
9+
10+
#endif // TEMPERATUREUNIT_H
File renamed without changes.

0 commit comments

Comments
 (0)