I bought a pair of IR receiver and remote control but I dont know how I can use it because I dont know what remote control send. I tried to read by LCD but I couldnt because I read different number on LCD even though I didnt push any button. if there is anyone who know about this, I will be pleasant
ok I solved my problem using serial communication thanks for everyone. if any one who has same problem code is here:
LCD.Initialize();
LCD.CursorHome();
SerialPort UART = new SerialPort(“COM1”, 300);
int read_count = 0;
byte[] rx_byte = new byte[1];
UART.Open();
while (true)
{
LCD.Clear();
// read one byte
read_count = UART.Read(rx_byte, 0, 1);
if (read_count > 0)// do we have data?
{
// create a string
string counter_string = rx_byte[0].ToString();
LCD.Printf("mesaj="+counter_string+" ");
Thread.Sleep(1000);
}