|flabbergast bacf194b1e||5 years ago|
|eagle-rev2||5 years ago|
|fw-blink||6 years ago|
|fw-keyb-mouse||6 years ago|
|fw-moodlight||5 years ago|
|fw-pulseled||6 years ago|
|fw-serial-keyb-pulseled||6 years ago|
|.gitignore||6 years ago|
|MT-DB-X4-128a4u_104.hex||6 years ago|
|README.md||5 years ago|
|flash-bootloader.sh||5 years ago|
Current revision: rev2 (microSD, RGB led, button).
Example firmwares are in
fw-* directories. See below for the current
list. The firmwares can be compiled by running
make in the appropriate
directory, and after the putting the stick into DFU mode, it can be
Note that the USB capable firmwares use Dean Camera’s remarkable LUFA
library - so you’ll need to download, unpack and copy the
subdirectory into the appropriate subdirectory here.
Blink (on/off) the green led with 700ms delay.
Act like a composite Keyboard+Mouse device. “Type” a message on pressing
E0 button. The content of the message is read from the file called
MESSAGE.TXT in the top directory of the first (FAT-formatted)
partition on the microSD card.
This demo uses LUFA to pretend to be a USB Keyboard and Virtual CDC Serial device. The RGB led changes colour with time.
No USB interface. Three possible tests (select by #define in the source):
A subset of
fw-serial-keyb-pulseled functionality - just
breathe/change colour of the RGB LED. No USB, no microSD, no button.
There’s a mistake on the silkscreen in RGB colour marking: E2 is red and E3 is blue. (I guess this depends on the RGB LEDs that I have.)
Need to program bootrst fuse, and MattairTech also changes watchdog settings. I don’t know if that’s really needed. Nothing else is changed:
avrdude -p x128a4u -c avrisp2 -U fuse1:w:0x00:m -U fuse2:w:0xBF:m -U fuse4:w:0xFF:m -U fuse5:w:0xFF:m
fuse1 consists of two 4-bit initial watchdog values (normal and window, see page 127 of xmega manual). AVR stick uses 0xFF (no watchdog) and MattairTech uses 0x00 (8ms watchdog).
EESAVE is bit3 of fuse5 (0 -> eeprom is preserved during erase), so to save eeprom on chip erases, use fuse5:w:0xF7:m. However this doesn’t prevent the (DFU) bootloader to erase eeprom, and indeed, it’s impossible to have DFU not erase eeprom without recompiling.
Flash the bootloader with
avrdude p x128a4u c avrisp2 U flash:w:MTDBX4128a4u_104.hex
MattairTech also locks bootloader and r/w. Don’t want that (so don’t do the following):
avrdude p x128a4u -c avrisp2 U lock:w:0x3c:m