update embeddedstm32f303 for use with a STM32F303
This commit is contained in:
parent
87dbe51a52
commit
560db48adf
69 changed files with 46874 additions and 0 deletions
15
embeddedstm32f303/spi2812.h
Normal file
15
embeddedstm32f303/spi2812.h
Normal file
|
@ -0,0 +1,15 @@
|
|||
#ifndef _SPI_2812_H
|
||||
#define _SPI_2812_H
|
||||
|
||||
#define SPI2812_MAX_LEDS 300
|
||||
|
||||
//24 bits per LED, can fit two bits per byte of output.
|
||||
#define SPI2812_BUFFSIZE (SPI2812_MAX_LEDS*24/2)
|
||||
|
||||
|
||||
void InitSPI2812();
|
||||
void SendSPI2812( unsigned char * lightarray, int leds ); //Need one R, G, B per element.
|
||||
|
||||
#endif
|
||||
|
||||
|
Loading…
Add table
Add a link
Reference in a new issue