Class daisy::desktop_devkit::Hardware¶
ClassList > daisy > desktop_devkit > Hardware
Public Types¶
| Type | Name |
|---|---|
| typedef ShiftRegister4021< 2, 1 > | ButtonSr |
| typedef LedDriverPca9685< 1, true > | LedDriver |
Public Attributes¶
Public Functions¶
| Type | Name |
|---|---|
| void | ClearLeds () |
| Hardware () |
|
| void | Init () |
| void | SetDacOut (DacHandle::Channel channel, uint16_t code) |
| void | SetLed (int idx, float brightness) |
| void | StartLowPriorityCallback (TimerHandle::PeriodElapsedCallback cb, uint32_t target_freq, void * data=nullptr) |
| void | StopLowPriorityCallback () |
| void | UpdateAllControls () |
| void | UpdateLeds () |
Public Types Documentation¶
typedef ButtonSr¶
typedef LedDriver¶
Public Attributes Documentation¶
variable button¶
variable button_sr¶
variable cv¶
variable gate_in¶
variable led_driver¶
variable left_detect¶
variable midi¶
variable pot¶
variable right_detect¶
variable sd_detect¶
variable seed¶
variable tim5_handle¶
variable tog_sw17¶
variable tog_sw18¶
Public Functions Documentation¶
function ClearLeds¶
Reset all LEDs to their off state
function Hardware¶
function Init¶
Initialize the hardware
function SetDacOut¶
Write the code to the DAC output
Parameters:
channelDAC channel to write tocodethe 0-4096 code to write corresponding to the output voltage
function SetLed¶
Set the brightness for a specific LED
Parameters:
idxindex of the LED from 0-15 corresponding to D1 to D16brightnessbrightness level from 0-1
function StartLowPriorityCallback¶
void daisy::desktop_devkit::Hardware::StartLowPriorityCallback (
TimerHandle::PeriodElapsedCallback cb,
uint32_t target_freq,
void * data=nullptr
)
This starts a recurring callback at a specified interval. The callback is run on the lowest priority interrupt level. This provides a hook for non-background tasks that should interrupt low level activity like disk i/o, etc.
Parameters:
cbcallback function to take place at the specified frequencytarget_freqtarget frequency in hertz for the callback to rundataoptional pointer to context data accessible from the callback
function StopLowPriorityCallback¶
Stops an ongoing low-priority callback
function UpdateAllControls¶
Process all analog inputs, debounce digital inputs, and update their internally stored states.
function UpdateLeds¶
Flush the current LED values to the hardware. Changes to the LED brightnesses will only take effect when this method is called.
The documentation for this class was generated from the following file external-docs/libDaisy/src/desktop_devkit.h