G
Guest
Hi
I'm programming C to an AVR-Board and would like to activate a register on
the board with an C# application. Instead of pressing the button (PINA.4 or
address 0x19 bit 4) , i would like to press a button i C# instead. I got a
serial connection to the board and experimented a bit, but i'm quite lost. I
know howto send text...
SerialPort port = new SerialPort("COM1", 9600, Parity.None, 8,
StopBits.One);
// Open the port for communications
port.Open();
// Write a string
port.Write(Convert.ToString(Convert.ToChar(0x19)));
// Close the port
port.Close();
Thank you in advance
/Lars
I'm programming C to an AVR-Board and would like to activate a register on
the board with an C# application. Instead of pressing the button (PINA.4 or
address 0x19 bit 4) , i would like to press a button i C# instead. I got a
serial connection to the board and experimented a bit, but i'm quite lost. I
know howto send text...
SerialPort port = new SerialPort("COM1", 9600, Parity.None, 8,
StopBits.One);
// Open the port for communications
port.Open();
// Write a string
port.Write(Convert.ToString(Convert.ToChar(0x19)));
// Close the port
port.Close();
Thank you in advance
/Lars