-
Notifications
You must be signed in to change notification settings - Fork 10
/
Copy pathWVR.h
38 lines (34 loc) · 992 Bytes
/
WVR.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
/*
WVR.h - Library for building WVR firmware.
Created by Andrew March, May 20, 2021.
Released into the public domain.
*/
#ifndef WVR_H
#define WVR_H
#include "Arduino.h"
class WVR {
public:
WVR();
void begin(void);
void play(uint8_t voice, uint8_t note, uint8_t velocity);
void stop(uint8_t voice, uint8_t note);
void wifiOff(void);
void wifiOn(void);
void toggleWifi(void);
void setGlobalVolume(uint8_t volume);
uint8_t getGlobalVolume(void);
void mute(void);
void unmute(void);
void setMidiHook(void(*fn)(uint8_t *in));
void encoderInit(int encA, int encB);
void onEncoder(void (*handleEncoder)(bool up));
void resetPin(int pin);
uint8_t getVoice(int channel);
void setVoice(int channel, int voice);
bool wifiIsOn;
bool useFTDI;
bool useUsbMidi;
bool forceWifiOn;
bool checkRecoveryModePin;
};
#endif