Example Apps - majbthrd/pic16f1454-bootloader GitHub Wiki
In addition to providing source code for the pic16f1454-bootloader, source code for example USB applications for the PIC16F1454 family is provided as well.
The example code can be compiled in one of two ways: it includes project files for loading into MPLAB X, but it also includes a Makefile for experienced users. The example code is based on the excellent M-Stack written by Alan Ott of Signal 11 Software:
mouseplay: an emulated mouse that runs the cursor around in circles
customHID: a vendor-defined custom HID example that is compatible with HIDAPI. This may be a starting point for a "driver-less" USB project.
passfob: an emulated keyboard that types out a string chosen at compile-time in response to a button press. The button is the same as the one used entering the bootloader; see the Wiki article "Hardware" for a conceptual schematic. The source code also demonstrates an optional way of monitoring the SCROLL-LOCK key to initiate a reboot into the bootloader without touching the hardware.
minimalCDC: this demonstrates a minimal fixed-rate UART "USB to serial TTL" adapter
hid_mouse: this is an existing example M-Stack based implementation written by Alan Ott of Signal 11 Software. If you compare this against the original hid_mouse source code, you'll see that the build changes to load an application using the bootloader are minimal.
blink0: genuinely open-source firmware that emulates a Blink(1)
somepixel: an implementation of the BiblioPixel protocol used by Maniacal Labs' AllPixel; it allows control of over 200 WS281x LEDs using a ~$1 microcontroller (PIC16F1454)
These demonstrate how the bootloader can be used and perhaps serve as a basis or inspiration for developing your own apps.
More apps include:
Dapper Miser (closed source CMSIS-DAP ARM debugger)
ANSI meter reader (CDC-based device)
All Wiki content and images are (C) Copyright Peter Lawrence All Rights Reserved Redistribution without permission is not authorized