33
viod setup()
the board.
Third one is void loop()
itself. This is the place for our main program.
And the fourth one are all the other functions we need for our application to work.
All of them are called out in void loop() or other nested functions.
Shortened applications listing:
1. Declarations
To be able to use all procedures, functions, pins or properties we need to declare
some of them before the main part of the software. Following declarations are present in
the code:
- External libraries :
o string.h responsible for strings commands
o servo.h set of commands controlling servomechanisms
o EEPROM.h allows us to store data in 512 bytes of EEPROM memory
where values are stored when the board is turned off.
- SC16IS750 register definitions
- SPI pin definitions
- Global variables :
o Powercell
o Servo
o Reset
o Wifi default parameters
- SC16IS750 communication parameters and structure
2. void setup()
In this section steps are taken for the software to initialize on the very first start of
the control board.
Comentarios a estos manuales