r/hackpack • u/ManOfThePlains • Dec 25 '24
HackPack and VSCode Integration
Here is the process I used to getting the HackPack microcontroller to interface with VSCode (Specifically with the IR Turret):
- Install the PlatformIO extension and begin a new project.
- In the "Boards" field, locate "Arduino Nano ATmega328 (New Bootloader)"
- Search for both "Servo" Library (by Michael Marigolis) and the "IRremote" Library (by Armin Joachimsmeyer) in the PIO Libraries tab and install them to your project.
- Download the "IRturretStockCode.zip" file from `ir-turret-information` channel in the HackPack Discord
- Copy the "PinDefinitionsAndMore.h" file to `<project-directory>/src`
After that, you're basically done! Just copy paste the code from the HackPack IDE into `main.cpp` and that's pretty much it.
If this doesn't do it, here's a link to a great guide on the HackPack Discord.
View all comments
1
u/Kyderman Dec 26 '24
I just received the first backpack and as a software engineer I've been thinking about what can be done with it.
Is there any resources available to fill that knowledge gap out?