 
 
 
+

  if(Serial.available()) {
    if(usbReceiver.parseByte(Serial.read())) {
      uint16_t* data = usbReceiver.getPacket16();
      
      for(uint8_t i = 0; i < pwmCount; i++) {
        hardPWM.write(i, data[i]);
      }

  // Handle incoming data from RS485  
  if(Serial1.available()) {
    digitalWrite(PIN_STATUS_LED, HIGH);

    if(rs485Receiver.parseByte(Serial1.read())) {
      uint16_t* data = rs485Receiver.getPacket16();

      for(uint8_t i = 0; i < pwmCount; i++) {
        hardPWM.write(i, data[i]);
      }
    }
  }

  else {
    digitalWrite(PIN_STATUS_LED, LOW);
  }
