Skip to content

Software

clsergent edited this page Apr 22, 2019 · 3 revisions

Prerequisites

  • AVR-GCC to build the firmware.
  • AVRDUDE to upload the firmware to the chip using the in-system programming (ISP) technique.
  • A programmer to link the computer to the chip, like USBasp which is inexpensive, open source, and supported by AVRDUDE. It's the one used by default in the Makefile.

Settings

Make settings

Edit the Makefile to fit your configuration :

  • Jump to # binaries and modify the following constants :
    • AVRDUDE : set it to your avrdude path
    • OBJ2HEX : set it to your avr-objcopy path (usually shipped with AVRDUDE)
  • Jump to # flags and check AFLAGS (AVRDUDE flags) : after the -c directive, replace usbasp by the name of the programmer you are using (see the prerequisites).

Keyboard layout

By default, the firmware mimics a French AZERTY Macintosh keyboard, using the keyboard-azerty-mac.h header. Alternatively, you can set the key to mimics an English QWERTY keyboard using keyboard-qwerty-win.h.

Edit main.c and replace #include "./keyboard-azerty-mac.h"by #include "keyboard-qwerty-win.h".

Compilation

While in the firmware folder, call make build.

Upload

While in the firmware folder, call make flash.

Fuses

Caution : improper fuses settings can brick your chip.

While in the firmware folder, call make fuse to apply the right fuses settings for this project.

Clone this wiki locally