Skip to content

SetupMode

tiusty edited this page Jul 6, 2017 · 2 revisions

This walk through complimenents the comments in the code. Reading through the comments and understanding the various functions will aid understanding the code. Also, some shared functionality is described in the operation mode.

Assumptions

Formatted data from the macro excel sheets EEPROM format

Basic Overview

The setupmode program sole purpose is to load the data from the SD card to the arudino EEPROM. This is also the only way to reset syrigne iteration counter so that it will start actuating from the beginning. The setupmode should only be run while conneted to a computer because after the setupmode is completed, the operation mode should be loaded to start the execution of the program. Note: Some of the function are identical and later work can be done to build a library with shared functions to help with resuability.

Init EEPROM

This function loads all the values from the SD config file to the EEPROM. The old method was to iterate through each method but now since the addresses are defined at the top, the for loop could be removed.

Sleep Modes

Unlike the operation mode, there is no need to sleep or disable the RTC.

Clone this wiki locally