Skip to content


Switch branches/tags


This is the source code that wasn't made by a series of drunk coders.

Source code for a community built unofficial Defcon 25 badge.


Order a Badge


Install MPLabX 3.65

Win Lin Osx

Install XC8 1.42

Win Lin OSX


git clone


Acquire one of these:

Step by Step

  1. Plug in your pickit3 to your computer
  2. Open MPLab X
  3. File -> Open Project -> Select your git folder
  4. Select Clean Build from the Tool Bar (Looks like a Hammer with a Brush)
  5. Click Production -> Set Project Configuration -> Customize
  6. Under Conf:[default] -> Configuration Pane -> Hardware Tool Pane -> Hardware Tools you should see PICkit3 with a serial #
  7. Under Conf:[default] -> Configuration Pane -> Device -> Be sure to select PIC16LF18346

Note: Early dev boards used a non L version microcontroller. These could take higher voltages. The new ones cannot and have better battery life.

Note: You don't need to power the board with battery and shouldn't when programming them. You can turn off the battery power by toggling the switch on the bottom right of the badge.

  1. Under Conf:[default] -> select PICkit3 -> Under Options Categories select Power -> Check Power target circuit from PICkit3 -> change the power to 3.25V. Anything higher than 3.6V will fry the L microcontroller and destroy your badge.
  2. Under Compiler Toolchain on the right click on XC8 1.42 and click apply then ok
  3. Connect the PICKit3 to your badge. The arrow indicates the left most pin.

Here is a picture of proper placement.

  1. Click the Green Play button to right of "Clean Rebuild"
  2. Select your PICKit3. You may get a prompt about the having the right device selected. Ensure you are using the L version if you use a new revision (>rev1) of the badge. Click OK and the badge will program.

Active tasks are set inside main.c, you can change them to run the other examples

scheduler_TaskAdd(&schedulerInst, &slot_ExampleTask);


No description, website, or topics provided.






No releases published


No packages published