geekhack

geekhack Projects => Making Stuff Together! => Topic started by: ROFLmonstar on Thu, 05 February 2015, 05:55:01

Title: [SOLVED] Once again, trouble with compiling my firmware
Post by: ROFLmonstar on Thu, 05 February 2015, 05:55:01
Hey,

I have a problem compiling my custom firmware. This time it's about backlighting.
I'm using this firmware as a base:
https://github.com/tmk/tmk_keyboard
And I'm modifying the Poker layout in the gh60 keyboard library.

I basically have an LED strip which is controlled by a single pin on the keyboard, and I have a function called "showColor()" which accepts R,G,B values and outputs the specified color. I wanted to incorporate it in the firmware in a way that when I press FN1 through FN7 it'll change the backlight "modes", so I tried using "ACTION_FUNCTION" (Like specified here in 2.4.1: https://github.com/tmk/tmk_keyboard/blob/196164146363d5f3bfb97435f3ac6dfa13c8da72/doc/keymap.md)

But I have a few "undefined reference to 'backlight_set'" in the (unmodified) common backlight.c file.

Here's a pastebin link to all the info:
http://pastebin.com/KabZTqfb


In the meantime I just use "ACTION_BACKLIGHT_STEP" which cycles through all 7 modes, but that's far from ideal.

Thank you for your time.

EDIT: Nevermind. Figured it out. When using "ACTION_FUNCTION" I don't need to use the backlight files at all. Removed it from the config and Makefile and it works.