From af14e672c9c82b4a906ab9e3eae649d96158d2bd Mon Sep 17 00:00:00 2001 From: skullydazed Date: Wed, 6 Sep 2017 15:27:29 -0700 Subject: Add a clueboard rev3 (#1688) * Allow the knight animation to be restricted to a portion of the LED strip * Add keys for jumping directly to particular animation modes * Remove orphaned break statements * Tweak the `RGB_MODE` buttons so they cycle through the same mode. * small indentation fix * Add a new revision of the clueboard with 18 underlight LEDs --- keyboards/clueboard/rev3/rev3.c | 63 +++++++++++++++++++++++++++++++++++++++++ 1 file changed, 63 insertions(+) create mode 100644 keyboards/clueboard/rev3/rev3.c (limited to 'keyboards/clueboard/rev3/rev3.c') diff --git a/keyboards/clueboard/rev3/rev3.c b/keyboards/clueboard/rev3/rev3.c new file mode 100644 index 0000000000..8f703d2c99 --- /dev/null +++ b/keyboards/clueboard/rev3/rev3.c @@ -0,0 +1,63 @@ +#include "rev3.h" +#include +#include "backlight.h" +#include "print.h" + +void matrix_init_kb(void) { + // put your keyboard start-up code here + // runs once when the firmware starts up + matrix_init_user(); + led_init_ports(); + + // JTAG disable for PORT F. write JTD bit twice within four cycles. + MCUCR |= (1<