- A laptop with a USB-A port
- USB-A to USB mini B cable
- A copy of this repository
- VSCode or Atom text editors, with the PlatformIO plugin installed
- A functioning TaMatisse bot.
1. Start your editor (VSCode/Atom) and launch the PlatformIO pluign
2. Open your project in PlatformIO
3. Install the "Atmel AVR" platform
5. Upload to the Arduino (Atmel AVR)
5.1. If uploading doesn't work, change the upload target port
PlatformIO automatically tries to detect which USB serial port to upload to. Sometimes this doesn't work, therefore we have to specify the port in the platformio.ini file. If you're using OSX it may also be your laptop is missing the right drivers for the CH34x USB to Serial chip in which case you won't see the the 'usbserial' device listed at all - see below.
Set new port in platformio.ini:
5.2. Install the CH34x USB to Serial Drivers:
Taken from this guide
brew tap mengbo/ch340g-ch34g-ch34x-mac-os-x-driver https://github.com/mengbo/ch340g-ch34g-ch34x-mac-os-x-driver
brew cask install wch-ch34x-usb-serial-driver
After that you'll need to restart and go back to point 5 above.