Created
October 5, 2014 19:13
-
-
Save Simon-L/eb187035bbed4d0e3c44 to your computer and use it in GitHub Desktop.
Using Gamazeps's WS2812 driver
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include "ch.h" | |
#include "hal.h" | |
#include "leds.h" | |
#include "hsv2rgb.h" | |
int main(void) { | |
halInit(); | |
chSysInit(); | |
palSetPadMode(GPIOB, 15, PAL_MODE_ALTERNATE(5)); | |
leds_init(); | |
// rgb_color testColor = {0, 255, 0}; | |
set_leds_color_rgb({0, 255, 0}); | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment