NEORV32 Software Framework Documentation
The NEORV32 RISC-V Processor
|
NeoPixel (WS2812) interface demo using the processor's smart LED interface (NEOLED). More...
#include <neorv32.h>
Macros | |
User configuration | |
#define | BAUD_RATE 19200 |
#define | NUM_LEDS_24BIT (12) |
#define | MAX_INTENSITY (16) |
Functions | |
uint32_t | hsv2rgb (int h, int v) |
int | main () |
NeoPixel (WS2812) interface demo using the processor's smart LED interface (NEOLED).
#define BAUD_RATE 19200 |
UART BAUD rate
#define MAX_INTENSITY (16) |
Max intensity (0..255)
#define NUM_LEDS_24BIT (12) |
Number of RGB LEDs in stripe (24-bit data)
uint32_t hsv2rgb | ( | int | h, |
int | v ) |
Convert HSV color to RGB.
[in] | h | Hue (color angle), 0..359 |
[in] | v | Value (intensity), 0..255 |
int main | ( | void | ) |
Main function This demo uses a 12-LED RGB ring