Pico_ada_c06_neopixel

Website:

https://pi-ada-tutorial.sourceforge.io/pico_ada_c06_neopixel

Author:
  • Martin Krischik <krischik@users.sourceforge.net>
Maintainer:
  • Martin Krischik <krischik@users.sourceforge.net>
License:

GPL-3.0-or-later

Version:

1.7.0

Alire CI:

Dependencies: Dependents:

No dependents.

Badge:

Chapter 6: Controlling 8 NeoPixel RGB LED

#raspberry #pi #pico #rp2040 #tasking #light-tasking #ada2022 #embedded

Learn how to drive WS2812 (NeoPixel) LEDs on the Raspberry Pi Pico using the RP2040 PIO in Ada. Includes a square-wave diagnostic, fixes for the official ws2812_demo, and two complete animation sketches.

From understanding the WS2812 protocol to writing our own PIO code and creating colourful animations - everything you need to make NeoPixels dance with Ada on the Pico.

Contained in Chapter 06 are:

  1. square_wave-main.adb - Simple Square Wave test using PIO (for timing reference)
  2. ws2812_demo.adb - Jeremy Grosser’s WS2812 demo adapted for the RP2040 and Ada 2022
  3. sketch_06_1_led_pixel.adb - Chapter 6.1 NeoPixel LED Pixel
  4. sketch_06_2_rainbow_light.adb - Chapter 6.2 NeoPixel Rainbow Light

Read the full tutorial at Chapter 6: Controlling an NeoPixel LED with PWM, GNATdoc documentation, SourceForge repository