Hey, so, I wrote code in Arduino its goal is to keep characters that it receives and store them in the array, and print the array on the LCD, if there is a sequence of letters "OPF".
The character i send are from VISUAL STUDIO ( I made a button that when its pressed it sends a the first letter of the sequence and when I press the other two buttons it sends the next 2 letters in the sequence so it will make "OPF".)
The arduino does receives the signals from the VISUAL STUDIO, but for some reason the program does not print the array, can anyone help me please?
Notes: The LCD works.
#include <LiquidCrystal.h>
char arr[3];
int c2 = 0;
char data = Serial.read();
int i;
LiquidCrystal lcd (53,51,49,47,45,43);
Benoson:
And what are the code tags? what does it mean?
You mean you just started posting without first reading the How to Use this Forum thread? Learning to read first and write second is an important lesson if you ever hope to be a programmer.
Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Please read the first post in any forum entitled how to use this forum. http://forum.arduino.cc/index.php/topic,148850.0.html then look down to item #7 about how to post your code.
It will be formatted in a scrolling window that makes it easier to read.
Tom..
Hi thanks for the help, but im in a hurry and my English is not that well, it will be hard for me to read and understand anything, most of what i post is from google translate. i just want someone to help me with this code (its due to 2 days from now).
If you're in a hurry, then its all the more important you read the instructions for posting, that will
save unnecessary to-and-fro of questions and answers.
That's right, you have to read it, just after you've checked there's something there to read, not once, before you've even told the serial port what speed to run at.