URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
[/] [neorv32/] [trunk/] [sw/] [lib/] [source/] [neorv32_neoled.c] - Diff between revs 64 and 66
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 64 |
Rev 66 |
Line 94... |
Line 94... |
}
|
}
|
|
|
|
|
/**********************************************************************//**
|
/**********************************************************************//**
|
* Configure NEOLED controller for using WS2812 LEDs (NeoPixel-compatible). This function computes
|
* Configure NEOLED controller for using WS2812 LEDs (NeoPixel-compatible). This function computes
|
* all the required timings and finally calls #neorv32_neoled_setup_raw.
|
* all the required timings and finally calls #neorv32_neoled_setup.
|
*
|
*
|
* @note WS2812 timing: T_period = 1.2us, T_high_zero = 0.4us, T_high_one = 0.8us. Change the constants if required.
|
* @note WS2812 timing: T_period = 1.2us, T_high_zero = 0.4us, T_high_one = 0.8us. Change the constants if required.
|
* @note This function uses the SYSINFO_CLK value (from the SYSINFO HW module) to do the timing computations.
|
* @note This function uses the SYSINFO_CLK value (from the SYSINFO HW module) to do the timing computations.
|
**************************************************************************/
|
**************************************************************************/
|
void neorv32_neoled_setup_ws2812(void) {
|
void neorv32_neoled_setup_ws2812(void) {
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.