I'm currently doing a project which will trigger an alarm and light up an LED when a character 'E' is detected from a bluetooth input. I'm supposed to program a pic18f4525 board.
I'm having troubles with where to start on the codes to enable the LED to light up upon detection of character 'E'. I am new to this sort of programming and I need some assistance.
I'm using ports RD0-RD3. This is how I initialised them in the main loop.
Am I doing the initialising right? Also, can someone please give me a kickstart on how to program it to light up when the character's detected?Code:TRISD = 0b11000000; PORTD = 0xC0;
Thank you so much for the help!