Gbox 4.20
Grow box automation and monitoring - <a href='https://sites.google.com/site/growboxguy/'>https://sites.google.com/site/growboxguy/</a>
 
Loading...
Searching...
No Matches
LedPage.ino File Reference

Go to the source code of this file.

Macros

#define LED_PIN   13
 
#define MAX_LOGS   5
 

Enumerations

enum  LogMessage {
  LOG_DUTY_25_75 = 0xE1 , LOG_DUTY_50_50 , LOG_DUTY_75_25 , LOG_SET_LED_ON = 0xF0 ,
  LOG_SET_LED_BLINKING , LOG_SET_LED_OFF
}
 

Functions

void ledLoop ()
 
void ledAddLog (uint8_t msg)
 
String ledHistoryToLog ()
 
void ledButtonPressCb (const char *button)
 
void ledSetFieldCb (const char *field)
 
void ledRefreshCb (const char *url)
 
void ledLoadCb (const char *url)
 
void ledInit ()
 

Variables

int8_t blinking = 0
 
uint8_t blinking_duty = 2
 
int8_t blinking_frequency = 10
 
uint32_t blinking_next_ts = 0
 
uint16_t blinking_phase = 100
 
uint16_t blinking_period = 200
 
uint32_t log_ts [MAX_LOGS]
 
uint8_t log_msg [MAX_LOGS]
 
uint8_t log_ptr = 0
 

Macro Definition Documentation

◆ LED_PIN

#define LED_PIN   13

Definition at line 4 of file LedPage.ino.

◆ MAX_LOGS

#define MAX_LOGS   5

Definition at line 14 of file LedPage.ino.

Enumeration Type Documentation

◆ LogMessage

enum LogMessage
Enumerator
LOG_DUTY_25_75 
LOG_DUTY_50_50 
LOG_DUTY_75_25 
LOG_SET_LED_ON 
LOG_SET_LED_BLINKING 
LOG_SET_LED_OFF 

Definition at line 19 of file LedPage.ino.

Function Documentation

◆ ledAddLog()

void ledAddLog ( uint8_t  msg)

Definition at line 44 of file LedPage.ino.

Here is the caller graph for this function:

◆ ledButtonPressCb()

void ledButtonPressCb ( const char *  button)

Definition at line 110 of file LedPage.ino.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ledHistoryToLog()

String ledHistoryToLog ( )

Definition at line 63 of file LedPage.ino.

Here is the caller graph for this function:

◆ ledInit()

void ledInit ( )

Definition at line 215 of file LedPage.ino.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ledLoadCb()

void ledLoadCb ( const char *  url)

Definition at line 194 of file LedPage.ino.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ledLoop()

void ledLoop ( )

Definition at line 30 of file LedPage.ino.

Here is the caller graph for this function:

◆ ledRefreshCb()

void ledRefreshCb ( const char *  url)

Definition at line 182 of file LedPage.ino.

Here is the call graph for this function:
Here is the caller graph for this function:

◆ ledSetFieldCb()

void ledSetFieldCb ( const char *  field)

Definition at line 141 of file LedPage.ino.

Here is the call graph for this function:
Here is the caller graph for this function:

Variable Documentation

◆ blinking

int8_t blinking = 0

Definition at line 6 of file LedPage.ino.

◆ blinking_duty

uint8_t blinking_duty = 2

Definition at line 7 of file LedPage.ino.

◆ blinking_frequency

int8_t blinking_frequency = 10

Definition at line 8 of file LedPage.ino.

◆ blinking_next_ts

uint32_t blinking_next_ts = 0

Definition at line 10 of file LedPage.ino.

◆ blinking_period

uint16_t blinking_period = 200

Definition at line 12 of file LedPage.ino.

◆ blinking_phase

uint16_t blinking_phase = 100

Definition at line 11 of file LedPage.ino.

◆ log_msg

uint8_t log_msg[MAX_LOGS]

Definition at line 16 of file LedPage.ino.

◆ log_ptr

uint8_t log_ptr = 0

Definition at line 17 of file LedPage.ino.

◆ log_ts

uint32_t log_ts[MAX_LOGS]

Definition at line 15 of file LedPage.ino.