Skip to content

Instantly share code, notes, and snippets.

@Simon-L
Created October 5, 2014 19:13
Show Gist options
  • Save Simon-L/eb187035bbed4d0e3c44 to your computer and use it in GitHub Desktop.
Save Simon-L/eb187035bbed4d0e3c44 to your computer and use it in GitHub Desktop.
Using Gamazeps's WS2812 driver
#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