This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Pins Defined | |
// | |
#define RDY_0 2 | |
#define REQUEST_0 3 | |
#define SS_0 5 | |
#define RDY_1 6 | |
#define REQUEST_1 9 | |
#define SS_1 10 | |
#define RDY_2 11 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// General | |
// | |
#define NUM_RELAYS 4 | |
typedef enum {OFF, ON} State; | |
State relayStates[NUM_RELAYS] = {OFF, OFF, OFF, OFF}; | |
// |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// | |
// Written By Joel Simonoff | |
// April 24, 2017 | |
// | |
package main | |
import ( | |
"fmt" | |
"math/rand" |