mirror of
https://github.com/firewalkwithm3/qmk_firmware.git
synced 2024-11-22 11:30:30 +08:00
ade22f8e2c
* initial files for rev 6 with encoder * music map init, dip scan added * adds ws2812 driver for arm * flesh out dip and encoder support * adds default encoder res * adds default encoder res * start muse implementation * muse working with encoder as control * flip direction * try mouse wheel again * dont break other revs * dont break other revs * conditional autio * pwm ws driver (not working) * update build includes for chibios * update ws2812 driver/config * last commit for glasser code * working example * remove rgb for now * finish up rev6 * working encoder keycodes * add warnings to planck keymaps about the LAYOUT
48 lines
1.3 KiB
C
48 lines
1.3 KiB
C
/*
|
|
* light weight WS2812 lib include
|
|
*
|
|
* Version 2.3 - Nev 29th 2015
|
|
* Author: Tim (cpldcpu@gmail.com)
|
|
*
|
|
* Please do not change this file! All configuration is handled in "ws2812_config.h"
|
|
*
|
|
* This program is free software: you can redistribute it and/or modify
|
|
* it under the terms of the GNU General Public License as published by
|
|
* the Free Software Foundation, either version 2 of the License, or
|
|
* (at your option) any later version.
|
|
*
|
|
* This program is distributed in the hope that it will be useful,
|
|
* but WITHOUT ANY WARRANTY; without even the implied warranty of
|
|
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
|
* GNU General Public License for more details.
|
|
*
|
|
* You should have received a copy of the GNU General Public License
|
|
* along with this program. If not, see <http://www.gnu.org/licenses/>.
|
|
*/
|
|
|
|
#ifndef RGBLIGHT_TYPES
|
|
#define RGBLIGHT_TYPES
|
|
|
|
#ifdef __AVR__
|
|
#include <avr/io.h>
|
|
#endif
|
|
|
|
#ifdef RGBW
|
|
#define LED_TYPE struct cRGBW
|
|
#else
|
|
#define LED_TYPE struct cRGB
|
|
#endif
|
|
|
|
|
|
/*
|
|
* Structure of the LED array
|
|
*
|
|
* cRGB: RGB for WS2812S/B/C/D, SK6812, SK6812Mini, SK6812WWA, APA104, APA106
|
|
* cRGBW: RGBW for SK6812RGBW
|
|
*/
|
|
|
|
struct cRGB { uint8_t g; uint8_t r; uint8_t b; };
|
|
struct cRGBW { uint8_t g; uint8_t r; uint8_t b; uint8_t w;};
|
|
|
|
#endif
|