(EN) Flash the Hackberry board with PlatformIO - Thomas-Broussard/hackberry-enableFrance GitHub Wiki
To be able to correctly load the program, you will need the following equipment:
- Visual Studio Code
- PlatformIO IDE
- Micro B usb cable
- Your hackberry hand, fully assembled
To program your Hackberry hand, you'll need to download Visual Studio Code
Once installed, you need to download PlatformIO extension :
- Open Visual Studio Code
- Click on the "Extension button" (Ctrl + Shift + X)
- In the Extensions:MartketPlace, search for « PlatformIO ».The PlatformIO IDE will appears.
- Click on "Install".
- When installation is finished, click on "reload" or close/reopen Visual Studio Code.
Clone the repository
git clone https://github.com/Thomas-Broussard/hackberry-enableFrance.git
-
On Visual Studio code, click on File > Open Folder... (Ctrl+K Ctrl+O)
-
Select folder hackberry-enableFrance/_main_program/
-
Open the file src/main.cpp/
-
Replace line 67 ( hackberry.init(); ) by :
- For a left hand : hackberry.init(RIGHT_HAND,TYPE_IR_SENSOR);
- For a right hand : hackberry.init(LEFT_HAND,TYPE_IR_SENSOR);
-
Click on Build to compile the code
-
Plug your device (Hackberry Hand or Arduino Nano)
-
Click on Upload to load program on the device
For more details, please refer to the PlatformIO Documentation