This command will flash the lastest HEX file, found int `balboa_llc_aws/balboa/BalancerRPi/BalancerRPi.ino.arduino_leonardo.hex`. To create a new HEX file use Arduino IDE and follow the following steps.
## Dont forget
```
git submodule init
git submodule update
```
# Compilation and programming
## Setup the Board
The code for Balboa's A-star controller board can be compiled and flashed with
Arduino IDE. The Pololu A-Star Controllers boards' family has to be installed.
Follow Pololu's [5.2. Programming using the Arduino IDE](https://www.pololu.com/docs/0J70/5.2) to install the A-Start Boards.
Make sure that in the Tools > Board menu, the `Pololu A-Star 32U4` entry is selected!
## Install the Libraries
Morover the following libraries need to be included:
- Balboa32U4
- LIS3MDL
- LSM6
- Adafruit NeoPixel
Moreover the following libraries need to be installed with the Library Manager (Sketch->Include Libraries->Manage Libraries (Ctrl+shift+I)):
-`Balboa32U4` by Pololu
-`LIS3MDL` by Pololu
-`LSM6` by Pololu
-`Adafruit NeoPixel` by Adafruit
## Build the code
Sketch->Verify/Compile (Ctrl+R)
On Linux the desired HEX file can be found on the tmp folder : `/tmp/arduino_build_*****/BalancerRPi.ino.hex"`
To deploy the new binary and flash it on the Balboa copy the new binary into the Ansible workspace