Control Surface main
MIDI Control Surface library for Arduino
Loading...
Searching...
No Matches
USBMIDI_Teensy3.hpp
Go to the documentation of this file.
1#include "USBMIDI.hpp"
2
4
6
14
16
17#ifdef TEENSY_MIDIUSB_ENABLED
18
19#include <string.h>
20#include <usb_midi.h>
21
23
26 return u32_to_bytes(usb_midi_read_message());
27}
28
30 usb_midi_write_packed(bytes_to_u32(data));
31}
32
33inline void Teensy3_USBDeviceMIDIBackend::sendNow() { usb_midi_flush_output(); }
34
36 return false;
37}
38
40
41#endif
#define END_CS_NAMESPACE
#define BEGIN_CS_NAMESPACE
AH::Array< uint8_t, 4 > u32_to_bytes(uint32_t u)
Definition USBMIDI.hpp:16
uint32_t bytes_to_u32(uint8_t b0, uint8_t b1, uint8_t b2, uint8_t b3)
Definition USBMIDI.hpp:25
A class for serial-in/parallel-out shift registers, like the 74HC595 that are connected to the SPI bu...
void write(MIDIUSBPacket_t data)