URL
https://opencores.org/ocsvn/neorv32/neorv32/trunk
Go to most recent revision |
Show entire file |
Details |
Blame |
View Log
Rev 52 |
Rev 60 |
Line 60... |
Line 60... |
* This demo uses two NeoPixel stripes: Stripe A is a 12-LED RGB ring (arranged as ring - NOT CONNECTED as ring), stripe B is a 8-LED RGBW stripe
|
* This demo uses two NeoPixel stripes: Stripe A is a 12-LED RGB ring (arranged as ring - NOT CONNECTED as ring), stripe B is a 8-LED RGBW stripe
|
*
|
*
|
* @note This program requires the NEOLED controller to be synthesized (UART0 is optional).
|
* @note This program requires the NEOLED controller to be synthesized (UART0 is optional).
|
* @note NeoPixel stripe connection: NEORV32.neoled_o -> Stripe A ("NUM_LEDS_24BIT" RGB-LEDs) -> Stripe B ("NUM_LEDS_32BIT" RGBW LEDs)
|
* @note NeoPixel stripe connection: NEORV32.neoled_o -> Stripe A ("NUM_LEDS_24BIT" RGB-LEDs) -> Stripe B ("NUM_LEDS_32BIT" RGBW LEDs)
|
*
|
*
|
* @return Irrelevant.
|
* @return 0 if execution was successful
|
**************************************************************************/
|
**************************************************************************/
|
int main() {
|
int main() {
|
|
|
// capture all exceptions and give debug info via UART0
|
// capture all exceptions and give debug info via UART0
|
// this is not required, but keeps us safe
|
// this is not required, but keeps us safe
|
Line 78... |
Line 78... |
|
|
|
|
// check if NEOLED unit is implemented at all, abort if not
|
// check if NEOLED unit is implemented at all, abort if not
|
if (neorv32_neoled_available() == 0) {
|
if (neorv32_neoled_available() == 0) {
|
neorv32_uart_printf("Error! No NEOLED unit synthesized!\n");
|
neorv32_uart_printf("Error! No NEOLED unit synthesized!\n");
|
return 0;
|
return 1;
|
}
|
}
|
|
|
|
|
// clearify setup
|
// clearify setup
|
neorv32_uart0_printf("\nThis demo uses the following LED setup:\n");
|
neorv32_uart0_printf("\nThis demo uses the following LED setup:\n");
|
© copyright 1999-2025
OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.