daisy::DaisyField¶
#include <daisy_field.h>
Public Types¶
Name | |
---|---|
enum | @0 |
enum | @1 |
enum | @2 |
enum | @3 |
Public Functions¶
Public Attributes¶
Name | |
---|---|
DaisySeed | seed |
OledDisplay< SSD130x4WireSpi128x64Driver > | display |
dsy_gpio | gate_out |
GateIn | gate_in |
LedDriverPca9685< 2, true > | led_driver |
Switch[SW_LAST] | sw |
AnalogControl[KNOB_LAST] | knob |
AnalogControl[CV_LAST] | cv |
MidiUartHandler | midi |
Public Types Documentation¶
enum @0¶
Enumerator | Value | Description |
---|---|---|
SW_1 | tactile switch | |
SW_2 | tactile switch | |
SW_LAST | & |
enums for controls, etc.
enum @1¶
Enumerator | Value | Description |
---|---|---|
KNOB_1 | & | |
KNOB_2 | & | |
KNOB_3 | & | |
KNOB_4 | & | |
KNOB_5 | & | |
KNOB_6 | & | |
KNOB_7 | & | |
KNOB_8 | & | |
KNOB_LAST | & |
All knobs connect to Daisy Seed's ADC1 pin via CD4051 mux Knobs are in order that they are laid out on hardware.
enum @2¶
Enumerator | Value | Description |
---|---|---|
CV_1 | ||
CV_2 | Connected to ADC1_INP17 | |
CV_3 | Connected to ADC1_INP15 | |
CV_4 | Connected to ADC1_INP4 | |
CV_LAST | Connected to ADC1_INP11 & |
enum @3¶
Enumerator | Value | Description |
---|---|---|
LED_KEY_B1 | & | |
LED_KEY_B2 | & | |
LED_KEY_B3 | & | |
LED_KEY_B4 | & | |
LED_KEY_B5 | & | |
LED_KEY_B6 | & | |
LED_KEY_B7 | & | |
LED_KEY_B8 | & | |
LED_KEY_A8 | & | |
LED_KEY_A7 | & | |
LED_KEY_A6 | & | |
LED_KEY_A5 | & | |
LED_KEY_A4 | & | |
LED_KEY_A3 | & | |
LED_KEY_A2 | & | |
LED_KEY_A1 | & | |
LED_KNOB_1 | & | |
LED_KNOB_2 | & | |
LED_KNOB_3 | & | |
LED_KNOB_4 | & | |
LED_KNOB_5 | & | |
LED_KNOB_6 | & | |
LED_KNOB_7 | & | |
LED_KNOB_8 | & | |
LED_SW_1 | & | |
LED_SW_2 | & | |
LED_LAST | & |
Public Functions Documentation¶
function DaisyField¶
function ~DaisyField¶
function Init¶
Initializes the Daisy Field, and all of its hardware.
function DelayMs¶
Parameters:
- del Delay time in ms.
Wait some ms before going on.
function StartAudio¶
Parameters:
- cb Interleaved callback function
Starts the callback
function StartAudio¶
Parameters:
- cb multichannel callback function
Starts the callback
function StopAudio¶
Stops the audio if it is running.
function ChangeAudioCallback¶
Parameters:
- cb New interleaved callback function.
Switch callback functions
function ChangeAudioCallback¶
Parameters:
- cb New multichannel callback function.
Switch callback functions
function SetAudioSampleRate¶
Updates the Audio Sample Rate, and reinitializes. Audio must be stopped for this to work.
function AudioSampleRate¶
Returns the audio sample rate in Hz as a floating point number.
function SetAudioBlockSize¶
Sets the number of samples processed per channel by the audio callback.
function AudioBlockSize¶
Returns the number of samples per channel in a block of audio.
function AudioCallbackRate¶
Returns the rate in Hz that the Audio callback is called
function StartAdc¶
Starts Transfering data from the ADC
function StopAdc¶
Stops Transfering data from the ADC
function StartDac¶
Turns on the built-in 12-bit DAC on the Daisy Seed This is now deprecated and does nothing. The polling use of the DACs now handles starting the tranmission.
function ProcessAnalogControls¶
Processes the ADC inputs, updating their values
function ProcessDigitalControls¶
Process tactile switches and keyboard states
function ProcessAllControls¶
Process Analog and Digital Controls
function SetCvOut1¶
Sets the output of CV out 1 to a value between 0-4095 that corresponds to 0-5V
function SetCvOut2¶
Sets the output of CV out 2 to a value between 0-4095 that corresponds to 0-5V
function KeyboardState¶
Parameters:
- idx the key of interest
Returns true if the key has not been pressed recently
function KeyboardRisingEdge¶
Parameters:
- idx the key of interest
Returns true if the key has just been pressed
function KeyboardFallingEdge¶
Parameters:
- idx the key of interest
Returns true if the key has just been released
function GetKnobValue¶
Parameters:
- idx The knob of interest.
Returns the knob's value
function GetCvValue¶
Parameters:
- idx The CV input of interest.
Returns the CV input's value
function GetSwitch¶
Parameters:
- idx The switch of interest.
Getter for switch objects
function GetKnob¶
Parameters:
- idx The knob input of interest.
Getter for knob objects
function GetCv¶
Parameters:
- idx The CV input of interest.
Getter for CV objects.
function VegasMode¶
Light show, cycling through all LEDs, and OLED
Public Attributes Documentation¶
variable seed¶
variable display¶
variable gate_out¶
variable gate_in¶
variable led_driver¶
variable sw¶
variable knob¶
variable cv¶
variable midi¶
Updated on 2024-01-03 at 19:41:01 +0000