void ClientAJAKumoTCP::updateRouting(uint8_t num) {
    char buffer[10];
    if(num < ClientAJAKumoTCP_NUMOUTPUTS) {
        sprintf(buffer, "QI,%d", num+1);
        transmitPacket(buffer);
    }
}
void loop()
{
  /* Check MidiListener for data. If it is found, it passes the data
  to the SongBank, which shall do one of the following:
    - fire a songbank failure callback (transmitData)
    - fire a song success callback (transmitData)
    - register a note success for one or more songs but fire no callback
    */
  midiListener.poll();
  /* handle change of packet in case of button interrupt */
  if (packetChanged) {
    packetChanged = false;
    setOutgoingPacket(outgoingPacketOverrideIndex);
  }
  // remember 10ms delay between bytes? packets?
  transmitPacket();
  _delay_ms(80);
}
void ClientAJAKumoTCP::routeInputToOutput(uint8_t input, uint8_t output) {
    char buffer[10];
    sprintf(buffer, "TI,%d,%d", output, input);
    transmitPacket(buffer);
}
Exemple #4
0
int irTransmit(const cpCommand command)
{
	if(command == cpCmdUnknown) return IR_FAILURE;

	return transmitPacket(commandPackets[command].signal, commandPackets[command].length);
}
bool Rf24DeviceController::write(RfPipe iPipe, Packet& iPacket) {
   size_t size = transmitPacket(iPipe, iPacket);
   return size != 0;
}