Author Topic: Gaming keypad build. Help a noob, please!  (Read 11554 times)

0 Members and 1 Guest are viewing this topic.

Offline seattle_ice

  • Thread Starter
  • Posts: 28
Re: Gaming keypad build. Help a noob, please!
« Reply #50 on: Fri, 23 December 2016, 02:10:16 »
I am now onto the compiling phase. I have managed to get a virtual ubuntu machine going, and try to compile the code.

I had a few errors at first just because I didn't have all the correct packages installed, but I think I at least am close now.

I am currently getting the following when I do '$ make KEYMAP=jester'.

      sh: 1: dfu-programmer: not found

It is creating a gh60_lufa.elf file, so I am assuming it compiled. So no how do I actually get it on the teensy?










Offline TalkingTree

  • Posts: 2452
  • Location: Italy (142)
    • My projects
Re: Gaming keypad build. Help a noob, please!
« Reply #51 on: Fri, 23 December 2016, 03:19:38 »
sh: 1: dfu-programmer: not found
Install the programmer:
Code: [Select]
sudo apt-get install dfu-programmer

It is creating a gh60_lufa.elf file, so I am assuming it compiled. So no how do I actually get it on the teensy?
You need to flash the hex file. You're not compiling it because of the previous issue.
Make also sure to make clean everytime you edit the source, before actually compiling.

Once compiled you can flash through the shell with this set of commands:
Code: [Select]
sudo dfu-programmer atmega32u4 erase --force
sudo dfu-programmer atmega32u4 flash your.hex
sudo dfu-programmer atmega32u4 reset

Or you can use the teensy loader under Windows which is a definitely easier approach.

My opensource projects: GH80-3000, TOAD, XMMX. Classified: stuff

Offline seattle_ice

  • Thread Starter
  • Posts: 28
Re: Gaming keypad build. Help a noob, please!
« Reply #52 on: Fri, 23 December 2016, 09:32:41 »
IT LIVES!

I finally got it to compile, and used the teensy loader, and every single key worked perfectly!


Offline TalkingTree

  • Posts: 2452
  • Location: Italy (142)
    • My projects
Re: Gaming keypad build. Help a noob, please!
« Reply #53 on: Fri, 23 December 2016, 09:42:33 »
Good job. Congrats.
My opensource projects: GH80-3000, TOAD, XMMX. Classified: stuff