You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit facb66c
Browse filesBrowse the repository at this point in the historyBrowse files
* add devkit source files, and new DigitalControl (Switch debouncing for non-GPIO objects), included in daisy.h
* bump C++ Standard to gnu++17 (previously gnu++14)
* resolve vs code intellisense issues with missing USBH middleware/conf
* added devkits and C++ standard bump to CMake build.
* basic template/example programs for the Eurorack and Pedal devkits.
* Desktop DevKit UI Template example, and minor tweaks to desktop devkit Hardware class.
* fixed devkit styling issues
* reverted back to C++14, and moved inline constexpr to be namespace level constexpr for each devkit.
* added consts for component quantities (kNumPots, kNumButtons, etc.) to desktop devkit to match other boards.
* cleanup new example Makefiles.
* corrected type mismatch on desktop devkit loops over component qty consts
* DigitalControl: fixed includes, and put inside daisy namespace.
This example is a bit more complex than the other examples in the repo.
4
+
5
+
All inputs for the Desktop DevKit are read, and printed when changed to Serial over the external USB port, also used to power the DevKit.
6
+
7
+
The 16 buttons, 8 pots, and LEDs are all managed using libDaisy's UI class from `main_page.h`.
8
+
9
+
As usual inputs are read in the AudioCallback. UI Events are then created for the relevant pieces of the interface.
10
+
Inside the Low-priority Callback, the events are handled, and the LED UI is redrawn.
11
+
The Low-priority Callback is used so that things like SD Card Disk I/O, QSPI saving, etc. that may block the main while() loop do not cause the UI to become unresponsive, or appear stuck.
12
+
13
+
## Flashing to the Daisy
14
+
15
+
This is designed to use the external USB version of the bootloader.
16
+
17
+
This version of the bootloader can be flashed to the daisy via the built-in USB port by running `make program-boot` from this directory, or by selecting the "v6.x (external)" variant from the [web programmer](https://flash.daisy.audio/).
18
+
19
+
Once the bootloader has been flashed to the Daisy, you can power connect the USB-C cable from your computer to the Desktop Devkit's USB-C port (located above the Seed3).
20
+
21
+
With the device connected, press RESET and then BOOT on the Seed.
22
+
You should see the USR LED on the Daisy blink quickly and then start slowly pulsing.
23
+
24
+
While in this state you can run: `make program-dfu`, or upload the `Desktop-DevKit-UI-Template.bin` file to the [web programmer](https://flash.daisy.audio/) to program the example to the Seed.
25
+
26
+
Once bootloader is programmed onto the Seed it does not need to be reprogrammed unless you need to install a different variant of the bootloader, or program an app to the Seed's internal flash.
27
+
28
+
## Connecting to the Program
29
+
30
+
Once the program has been flashed to the Daisy, you'll see that the Seed's USR LED is blinking at a steady rate.
31
+
You can push each of the tactile switches to see the corresponding LED illuminate.
32
+
33
+
The CV outputs will be generating slow ramp and saw waveforms respectively, MIDI note messages to the MIDI Input will emit from the MIDI output, and audio sent to the audio inputs will be copied to the outputs.
34
+
35
+
You can connect to the program using a serial monitor, and see print statements that occur whenever any input is changed.
36
+
37
+
Within the source code you'll see that many of these print statements are set within on change callbacks in the `main_page.h`.
38
+
Other inputs are checked in the Audio Callback, and messages are generated to be sent from the main `while()` loop.
0 commit comments