This is C framework to make hacking the SuperCon badge easy.
Full documentation for this badge is up on Hackaday.io. There is a 'kernel' running in protected bootloader space which services all of the hardware (display scanning, button debounce, etc.). This project contains the functions and memory map to utilize the kernel functions.
View these funcitons and memory mapping in main.c and HaD_badge.h
Use code should be placed in SuperCon-badge-animate.c (and .h). These user files currently contain examples of the following:
- How to write to the display
- How to take user button input
- How to use non-blocking delays
- How to access the accelerometer
- Connect the badge to your computer via USB
- Hold the power button and press reset. The badge will appear on your computer as a USB storage device
- Copy your compiled .hex file to this drive
- Press the power button to begin running the newly flashed program
This program file is an MPLAB X project. Download the IDE and compiler here:
- Microchip MPLAB X IDE
- Microchip XC8 Compiler (v1.38 known working)
Alternatively you can use the online version, MPLAB Xpress, without the need to install anything.
- Go here to open in Online IDE (click Open in IDE button when you get there)
Use the "Make and Program Device" button of Xpress to download your compiled .hex file.