Skip to content

Instantly share code, notes, and snippets.

View hatchjaw's full-sized avatar

Tommy Rushton hatchjaw

  • Inria
  • Lyon
View GitHub Profile
@hatchjaw
hatchjaw / MulticastNode.cpp
Last active March 22, 2023 11:14
Teensy Audio + QNEthernet multicast example
#include "MulticastNode.h"
MulticastNode::MulticastNode(bool receive, bool send) : AudioStream(kNumChannels, new audio_block_t *[kNumChannels]),
rx{receive}, tx{send} {
}
void MulticastNode::begin() {
Ethernet.onLinkState([this](bool state) {
Serial.printf("[Ethernet] Link %s\n", state ? "ON" : "OFF");