I would like to combine serial.nim and Arduino for a project of mine yet the line
port.readLine() is blocking and unless I create a second thread for handling other things the code does not work (it just waits for data). I would like to have something like Arduino Serial.available() or python ser.in_waiting so that I don't have to split the code into multiple threads