MIDI Control Surface library for Arduino
|
Go to the documentation of this file.
27 void sendImpl(uint8_t m, uint8_t c, uint8_t d1, uint8_t d2,
30 void sendImpl(uint8_t m, uint8_t c, uint8_t d1, uint8_t cn)
override;
32 void sendImpl(
const uint8_t *data,
size_t length, uint8_t cn)
override;
34 void sendImpl(uint8_t rt, uint8_t cn)
override;
44 return hex <
'a' ?
hex -
'0' :
hex -
'a' + 10;
129 #if defined(__AVR__) || (defined(TEENSYDUINO) && TEENSYDUINO != 147) || \
130 (defined(TEENSYDUINO) && !defined(__IMXRT1052__) && \
131 !defined(__IMXRT1062__))
132 #include <SoftwareSerial.h>
A wrapper class for debug MIDI interfaces sending and receiving human-readable MIDI messages over a S...
A class for debug MIDI interfaces sending and receiving human-readable MIDI messages over a HardwareS...
void sendImpl(uint8_t m, uint8_t c, uint8_t d1, uint8_t d2, uint8_t cn) override
Low-level function for sending a 3-byte MIDI message.
static uint8_t hexCharToNibble(char hex)
Convert a hexadecimal character to a 4-bit nibble.
#define BEGIN_CS_NAMESPACE
SerialDebugMIDI_Interface(T &serial, unsigned long baud=AH::defaultBaudRate)
Construct a new Debug MIDI Interface on the given Serial interface with the given baud rate.
USBDebugMIDI_Interface(unsigned long baud=AH::defaultBaudRate)
Construct a USBDebugMIDI_Interface with the given baud rate.
constexpr unsigned long defaultBaudRate
The default baud rate for debug output.
StreamDebugMIDI_Interface(Stream &stream)
Construct a debug MIDI interface on the given Stream.
MIDI_read_t read() override
void begin() override
Start the Serial interface at the predefined baud rate.
A class for MIDI interfaces sending and receiving human-readable MIDI messages over a Stream.
Print & hex(Print &printer)
A class for debug MIDI interfaces sending and receiving human-readable MIDI messages over a SoftwareS...
SoftwareSerialDebugMIDI_Interface(SoftwareSerial &serial, unsigned long baud)
Construct a SoftwareSerialDebugMIDI_Interface on the given SoftwareSerial interface with the given ba...
A class for MIDI interfaces sending and receiving MIDI messages over a Stream.
A class for debug MIDI interfaces sending and receiving human-readable MIDI messages over the USB CDC...
HardwareSerialDebugMIDI_Interface(HardwareSerial &serial, unsigned long baud=AH::defaultBaudRate)
Construct a new Debug MIDI Interface on the given HardwareSerial interface with the given baud rate.