I tried to work with UART (GPIO0,GPIO1), and build a simple code via python as shown bellow:
import serial ## Load the serial library ## Select and configure the port myPort = serial.Serial('/dev/ttyS1', 115200) while (1): myPort.write('a') x= myPort.read() print "recieved from adk" + x myPort.write(x) ## Close the port so other applications can use it. myPort.close()
But, unfortunately I got nothing. Suddenly when I uploaded an arduino serial sketch and after that the python code works fine!!
And then when I reboot the pcDuino, the python code doesn't work again until I upload the serial arduino sketch.
Am not sure what is the wrong in the code?, your help please