felHR85 / UsbSerial

Usb serial controller for Android
MIT License
1.81k stars 589 forks source link

Works really great with the Nano 33 IoT, but not with the Nano Every #345

Closed ghost closed 2 years ago

ghost commented 2 years ago

I don't know why, but the following code works fine with the Nano 33 IoT, but not with the Nano Every.

usbSerialDevice?.apply{ open() setBaudRate(9600) setDataBits(UsbSerialInterface.DATA_BITS_8) setStopBits(UsbSerialInterface.STOP_BITS_1) setParity(UsbSerialInterface.PARITY_NONE) setFlowControl(UsbSerialInterface.FLOW_CONTROL_OFF) write(outgoingByteArray) }

I can see the RX led blinking each time the Nano Every receives a packet, however the Serial.available() function always returns FALSE...

That said, this library is really great. Awesome job!