ReactESP 2.0.0
Asynchronous programming for the ESP microcontrollers
main.cpp File Reference
#include <Arduino.h>
#include <ReactESP.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Macros

#define LED_PIN   2
 
#define OUT_PIN   14
 
#define INPUT_PIN1   12
 
#define INPUT_PIN2   13
 
#define NUM_TIMERS   20
 

Functions

void reporter ()
 
void setup_timers (ReactESP &app)
 
void setup_io_pins (ReactESP &app)
 
void setup_serial (ReactESP &app)
 
void setup_tick (ReactESP &app)
 
void setup ()
 
void loop ()
 

Variables

int tick_counter = 0
 
int timer_ticks [NUM_TIMERS]
 
ReactESP app
 

Macro Definition Documentation

◆ INPUT_PIN1

#define INPUT_PIN1   12

Definition at line 8 of file main.cpp.

◆ INPUT_PIN2

#define INPUT_PIN2   13

Definition at line 9 of file main.cpp.

◆ LED_PIN

#define LED_PIN   2

Definition at line 6 of file main.cpp.

◆ NUM_TIMERS

#define NUM_TIMERS   20

Definition at line 12 of file main.cpp.

◆ OUT_PIN

#define OUT_PIN   14

Definition at line 7 of file main.cpp.

Function Documentation

◆ loop()

void loop ( )

Definition at line 116 of file main.cpp.

Here is the call graph for this function:

◆ reporter()

void reporter ( )

Definition at line 19 of file main.cpp.

Here is the caller graph for this function:

◆ setup()

void setup ( )

Definition at line 105 of file main.cpp.

Here is the call graph for this function:

◆ setup_io_pins()

void setup_io_pins ( ReactESP app)

Definition at line 47 of file main.cpp.

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

◆ setup_serial()

void setup_serial ( ReactESP app)

Definition at line 78 of file main.cpp.

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

◆ setup_tick()

void setup_tick ( ReactESP app)

Definition at line 98 of file main.cpp.

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

◆ setup_timers()

void setup_timers ( ReactESP app)

Definition at line 31 of file main.cpp.

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

Variable Documentation

◆ app

ReactESP app

Definition at line 17 of file main.cpp.

◆ tick_counter

int tick_counter = 0

Definition at line 14 of file main.cpp.

◆ timer_ticks

int timer_ticks[NUM_TIMERS]

Definition at line 15 of file main.cpp.