Skip to content

Commit

Permalink
Refactor clockWork.h for BH1750 ambient light sensor integration
Browse files Browse the repository at this point in the history
  • Loading branch information
dbambus committed Sep 20, 2024
1 parent 7d51cfd commit 7a4f3f9
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions include/clockWork.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,14 @@ class ClockWork {
uint16_t countMillisSpeed = 0;
uint32_t previousMillis = 0;
enum class stateBH1750Type {
toBeInitialized = 0,
Initialized = 1,
cannotBeInitialized = 2,
toBeInitialized = 0,
Initialized = 1,
cannotBeInitialized = 2,
};
stateBH1750Type stateBH1750 = stateBH1750Type::toBeInitialized;
float lux = 0.0;
uint16 adcValue0Lux = 10; // Hier wird der niedrigste LDR-ADC Wert getrackt, für eine dynamische offset korrektur bei 0 LUX
uint16 adcValue0Lux = 10; // Hier wird der niedrigste LDR-ADC Wert getrackt,
// für eine dynamische offset korrektur bei 0 LUX

private:
//------------------------------------------------------------------------------
Expand Down Expand Up @@ -61,7 +62,7 @@ class ClockWork {
void clearClockByProgInit();

public:
//ClockWork() = default;
// ClockWork() = default;
~ClockWork() = default;

//------------------------------------------------------------------------------
Expand Down

0 comments on commit 7a4f3f9

Please sign in to comment.