Formula Student Electronics & Software
The code for the embedded software
Loading...
Searching...
No Matches
main.cpp File Reference
#include <Arduino.h>
Include dependency graph for main.cpp:

Go to the source code of this file.

Macros

#define NUM_PINS   7
 
#define PRESSED_STATE   LOW
 

Functions

void setup ()
 
void loop ()
 AMI main loop: Button gets picked and lights up the corresponding LED LAST BUTTON CHECKED WINS.
 

Variables

int inputPins [NUM_PINS] = {2, 1, 0, 3, 4, 5, 8}
 
int outputPins [NUM_PINS] = {15, 10, 12, 11, 13, 14, 9}
 

Macro Definition Documentation

◆ NUM_PINS

#define NUM_PINS   7

Definition at line 3 of file main.cpp.

◆ PRESSED_STATE

#define PRESSED_STATE   LOW

Definition at line 4 of file main.cpp.

Function Documentation

◆ loop()

void loop ( )

AMI main loop: Button gets picked and lights up the corresponding LED LAST BUTTON CHECKED WINS.

Definition at line 23 of file main.cpp.

◆ setup()

void setup ( )

Definition at line 10 of file main.cpp.

Variable Documentation

◆ inputPins

int inputPins[NUM_PINS] = {2, 1, 0, 3, 4, 5, 8}

Definition at line 7 of file main.cpp.

◆ outputPins

int outputPins[NUM_PINS] = {15, 10, 12, 11, 13, 14, 9}

Definition at line 8 of file main.cpp.