libDaisy
Hardware Library for Daisy
Loading...
Searching...
No Matches
daisy_versio.h
Go to the documentation of this file.
1#pragma once
2#include "daisy_seed.h"
3
4namespace daisy
5{
14{
15 public:
16 // ENUMS to help index 4 LEDs, 7 knobs/CV inputs, 2 3-position switches
25
37
44
47
49 void Init(bool boost = false);
50
55 void DelayMs(size_t del);
56
61
66
72
78
80 void StopAudio();
81
84 void SetAudioBlockSize(size_t size);
85
88
93
97
100
102 void StartAdc();
103
105 void StopAdc();
106
109
112
115
117 bool Gate();
118
120 void SetLed(size_t idx, float red, float green, float blue);
121
123 float GetKnobValue(int idx);
124
127
128 /* Call this once per main loop update to test the Versio Hardware
129 * Each input (1 gate in, 1 momentary in, 2 3-position switches, 7 knobs) should change some or all of the output LEDs colors
130 **/
132
139
140 private:
141 void SetHidUpdateRates();
142};
143
144} // namespace daisy
Hardware Interface for control inputs Primarily designed for ADC input controls such as potentiom...
Definition ctrl.h:18
void(* AudioCallback)(InputBuffer in, OutputBuffer out, size_t size)
Definition audio.h:65
void(* InterleavingAudioCallback)(InterleavingInputBuffer in, InterleavingOutputBuffer out, size_t size)
Definition audio.h:83
This is the higher-level interface for the Daisy board. All basic peripheral configuration/initiali...
Definition daisy_seed.h:19
Class that handles initializing all of the hardware specific to the Desmodus Versio hardware....
Definition daisy_versio.h:14
AnalogControl knobs[KNOB_LAST]
Definition daisy_versio.h:135
size_t AudioBlockSize()
void SetLed(size_t idx, float red, float green, float blue)
AV_LEDS
Definition daisy_versio.h:18
@ LED_LAST
Definition daisy_versio.h:23
@ LED_0
Definition daisy_versio.h:19
@ LED_3
Definition daisy_versio.h:22
@ LED_2
Definition daisy_versio.h:21
@ LED_1
Definition daisy_versio.h:20
void StartAudio(AudioHandle::InterleavingAudioCallback cb)
AV_KNOBS
Definition daisy_versio.h:27
@ KNOB_3
Definition daisy_versio.h:31
@ KNOB_LAST
Definition daisy_versio.h:35
@ KNOB_6
Definition daisy_versio.h:34
@ KNOB_5
Definition daisy_versio.h:33
@ KNOB_0
Definition daisy_versio.h:28
@ KNOB_1
Definition daisy_versio.h:29
@ KNOB_2
Definition daisy_versio.h:30
@ KNOB_4
Definition daisy_versio.h:32
DaisyVersio()
Definition daisy_versio.h:45
float GetKnobValue(int idx)
AV_TOGGLE3
Definition daisy_versio.h:39
@ SW_0
Definition daisy_versio.h:40
@ SW_LAST
Definition daisy_versio.h:42
@ SW_1
Definition daisy_versio.h:41
~DaisyVersio()
Definition daisy_versio.h:46
Switch tap
Definition daisy_versio.h:136
float AudioCallbackRate()
void ProcessAnalogControls()
Switch3 sw[SW_LAST]
Definition daisy_versio.h:138
void ChangeAudioCallback(AudioHandle::AudioCallback cb)
GateIn gate
Definition daisy_versio.h:137
void ChangeAudioCallback(AudioHandle::InterleavingAudioCallback cb)
void ProcessAllControls()
Definition daisy_versio.h:111
RgbLed leds[LED_LAST]
Definition daisy_versio.h:134
void StartAudio(AudioHandle::AudioCallback cb)
void Init(bool boost=false)
void DelayMs(size_t del)
DaisySeed seed
Definition daisy_versio.h:133
void SetAudioSampleRate(SaiHandle::Config::SampleRate samplerate)
void SetAudioBlockSize(size_t size)
Generic Class for handling gate inputs through GPIO.
Definition gatein.h:15
Definition rgb_led.h:15
Definition switch3.h:8
Definition switch.h:18
Hardware defines and helpers for daisy field platform.
Definition index.h:2
SampleRate
Definition sai.h:57