Build Your Own Arcade Controls Forum
Main => Everything Else => Topic started by: rr22520 on November 07, 2025, 11:18:47 pm
-
Hi,
This is all related to the USBButton use only.
In PacDriveDemo Visual Studio solution, can anyone explain what
Set Temporary and Set Permanent do?
Also, I want to set the LED after I poll the switch state, I would like to use fade and flashing if possible?
Pseudocode example,
top_of_loop:
Check button state
if not pressed go to outer_loop
if pressed, set LEDs to active COLOR (r,g,b)
inner_loop to recheck while button is pressed
while in inner_loop if not pressed now
Set LEDs to inactive COLOR (r,g,b)
and fade slowly to very dim.
while button has not been pressed again
it would be great to pulse like heartbeat the LED brightness and fade
when button is pressed
exit inner loop after set LEDs to a inactive COLOR (r,g,b)
outer_loop:
goto top_of_loop
thx in advance,
Rob