RP.PIO.WS2812

Entities

Record Types

Subprograms

Description

Clear

procedure Clear (This : in out Strip)

Turn off all LEDs

Parameters
This

Disable_DMA

procedure Disable_DMA (This : in out Strip)
Parameters
This

DMA_Enabled

function DMA_Enabled (This : Strip) return Boolean
Parameters
This
Return Value

Enable_DMA

procedure Enable_DMA (This : in out Strip;
                      Chan : RP.DMA.DMA_Channel_Id)
Parameters
This
Chan

Initialize

procedure Initialize (This       : in out Strip;
                      ASM_Offset :        PIO_Address := 0)
Parameters
This
ASM_Offset

Initialized

function Initialized (This : Strip) return Boolean
Parameters
This
Return Value

Set_HSV

procedure Set_HSV (This    : in out Strip;
                   Id      :        Positive;
                   H, S, V :        HAL.UInt8)
Parameters
This
Id
H
S
V

Set_RGB

procedure Set_RGB (This    : in out Strip;
                   Id      :        Positive;
                   R, G, B :        HAL.UInt8)
Parameters
This
Id
R
G
B

Strip

type Strip
   (Pin : not null access RP.GPIO.GPIO_Point;
    PIO : not null access PIO_Device;
    SM  : PIO_SM;
    Number_Of_LEDs : Positive)
is tagged record
   Data        : HAL.UInt32_Array (1 .. Number_Of_LEDs);
   Initialized : Boolean := False;
   DMA_Ready   : Boolean := False;
   DMA_Chan    : RP.DMA.DMA_Channel_Id;
end record;
Record fields
Pin
PIO
SM
Number_Of_LEDs
Data
Initialized
DMA_Ready
DMA_Chan

Update

procedure Update (This     : aliased Strip;
                  Blocking :         Boolean := False)
Parameters
This
Blocking