Skip to content

Commit

Permalink
add wvr_ftdi example
Browse files Browse the repository at this point in the history
  • Loading branch information
marchingband committed Nov 21, 2021
1 parent 6b01ac1 commit 3047640
Showing 1 changed file with 28 additions and 0 deletions.
28 changes: 28 additions & 0 deletions examples/wvr_ftdi/wvr_ftdi.ino
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
#include <wvr_pins.h>
#include <button_struct.h>
#include <ws_log.h>
#include <wvr_ui.h>
#include <WVR.h>
#include <midiXparser.h>
#include <midi_in.h>
#include <wav_player.h>
#include <button.h>
#include <rpc.h>
#include <file_system.h>
#include <wvr_0.3.h>
#include <gpio.h>

WVR wvr;

void setup() {
wvr.useFTDI = true;
wvr.useUsbMidi = false;
wvr.begin();
wvr.wifiIsOn = get_metadata()->wifi_starts_on;
log_i("wifi is %s", wvr.wifiIsOn ? "on" : "off");
}

void loop() {
// vTaskDelay(portMAX_DELAY);
vTaskDelete(NULL);
}

0 comments on commit 3047640

Please sign in to comment.