(EN) Flash the Hackberry board with PlatformIO - Thomas-Broussard/hackberry-enableFrance GitHub Wiki

Prerequisites

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

Install PlatformIO

To program your Hackberry hand, you'll need to download Visual Studio Code

Once installed, you need to download PlatformIO extension :

  1. Open Visual Studio Code
  2. Click on the "Extension button" (Ctrl + Shift + X)
  3. In the Extensions:MartketPlace, search for « PlatformIO ».The PlatformIO IDE will appears.
  4. Click on "Install".
  5. When installation is finished, click on "reload" or close/reopen Visual Studio Code.

Flash your hand with PlatformIO

Get the files

Clone the repository

git clone https://github.com/Thomas-Broussard/hackberry-enableFrance.git

Upload the files on your hand

  1. On Visual Studio code, click on File > Open Folder... (Ctrl+K Ctrl+O)

  2. Select folder hackberry-enableFrance/_main_program/

  3. Open the file src/main.cpp/

  4. 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);
  1. Click on Build to compile the code

  2. Plug your device (Hackberry Hand or Arduino Nano)

  3. Click on Upload to load program on the device

Product Name Screen Shot

For more details, please refer to the PlatformIO Documentation

⚠️ **GitHub.com Fallback** ⚠️