procedure Clear (This : in out Strip)
Turn off all LEDs
procedure Disable_DMA (This : in out Strip)
function DMA_Enabled (This : Strip) return Boolean
procedure Enable_DMA (This : in out Strip;
Chan : RP.DMA.DMA_Channel_Id)
procedure Initialize (This : in out Strip;
ASM_Offset : PIO_Address := 0)
function Initialized (This : Strip) return Boolean
procedure Set_HSV (This : in out Strip;
Id : Positive;
H, S, V : HAL.UInt8)
procedure Set_RGB (This : in out Strip;
Id : Positive;
R, G, B : HAL.UInt8)
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;
procedure Update (This : aliased Strip;
Blocking : Boolean := False)