Voss Connection Detection
1
Detect a connector click using realtime code on Bela hardware
|
Go to the documentation of this file.
68 Leds(BelaContext* ctx);
101 bool processLed(
Led led);
105 float _timer[4] = {0,0,0,0};
107 float _blinkDutyCycle[4] = {0.5, 0.5, 0.5, 0.5};
void processBuf(BelaContext *ctx)
Run this function in render.
Leds(BelaContext *ctx)
Initialize LED controller and state machine.
void setState(Led led, LedState ledstate, float period=LED_HOLD_TIME, float dutycycle=0.5)
Set a certain LED in a certain state. The state blink_once will - after it has blinked - automaticall...
@ controlbox
Control box led.
@ blink_permanent
Blink all the time.
void processFrame(BelaContext *ctx, us frame)
@ vibrator
The vibrator, which is not really an LED but can be controlled the same way.
Let physical LEDs burn, blink or blink once.
unsigned int us
Used to much to not abbreviate.
Configuration parameters for connection detection.
LedState getState(Led led) const
Get the current led state.
const float LED_HOLD_TIME
LedState
A state in which a certain LED can be set.