I got my netduino minis for about a week and I'm having a hard time on getting this simple program working,
it works on Netduino Plus..
The 'WriteByte(x)' is working but not 'ReadByte', and I'm pretty sure about wiring RX/TX, and my USB-TTL board has
no problem (can connect with Netduino Plus using the same code)
my mini: 4.2, debug/deploy via TTL
public static void Main() { SerialPort sp = new SerialPort(SecretLabs.NETMF.Hardware.NetduinoMini.SerialPorts.COM1, 9600); sp.Open(); while (true) { if (sp.BytesToRead > 0) { sp.WriteByte((byte)sp.ReadByte()); } } }
Any reply would be helpful,
Thank you!
Mike Luan