Loading...
Searching...
No Matches
EffectState Struct Reference

Tracks which HDMA effect is currently active and its parameters. More...

Public Attributes

u8 active_effect
 
u8 brightness_bot
 
u8 iris_radius
 
u8 ripple_amp
 

Detailed Description

Tracks which HDMA effect is currently active and its parameters.

Only one effect runs at a time. Switching effects requires stopping the previous one first (via stopCurrentEffect()) to avoid HDMA channel conflicts and stale register values.

Member Data Documentation

◆ active_effect

u8 EffectState::active_effect

Currently active effect: 0=none, 1=brightness, 2=color, 3=iris, 4=ripple

◆ brightness_bot

u8 EffectState::brightness_bot

Bottom brightness for gradient (0=black, 14=nearly full)

◆ iris_radius

u8 EffectState::iris_radius

Iris wipe circle radius in pixels (10-200)

◆ ripple_amp

u8 EffectState::ripple_amp

Water ripple amplitude in pixels (2-24)


The documentation for this struct was generated from the following file: