Society of Robots - Robot Forum
Software => Software => Topic started by: kunaldgr8 on February 11, 2012, 10:01:49 AM
-
i am trying to upload a sample code in my arduino diecimilea from this site of my lcd http://www.electrojoystick.com/tutorial/?page_id=9 (http://www.electrojoystick.com/tutorial/?page_id=9) but when i click on upload it show the BYTE key word is no longer supported. what should i do what do it mean
-
You'll need to rewrite it. Look here (http://arduino.cc/en/Reference/HomePage) for information about the language. Look for the Serial library toward the bottom.
Just find the current keyword and put it in place of BYTE. Specifically: http://arduino.cc/en/Serial/Print (http://arduino.cc/en/Serial/Print)
Joe
-
Use Serial.write(uint8_t); Arduino has removed the print(uint8_t, BYTE) completely.
-
can i get a sample code for serial lcd plzz.
-
i replaced it with latest keyword but still it shows that gibberish words
-
Post your code as it is now. Be sure to copy and paste, don't try to type it in or anything. Also, use the code tags to keep the formatting so it will be easier to read.
Joe
-
this is my code
void setup() {
delay(1000);
Serial.begin(9600);
}
void loop()
{
delay(500);
Serial.print("Hello kunal");
}
but when i connect rdx of my lcd to tx of microcontroller it shows that gibberish text . but when i connect it to rx it shows hello kunal......and when i power up my arduino and the lcd is aldready connect it shows nothing ..but if i reconnect lcd it stars displayig
-
currently i am powering arduino with computer ........if i power my arduino with 9v do i have to change my current connections
now my current connections are
gnd of lcd to ----------------------gnd of arduino
vcc of lcd to -----------------------5v of arduino
rxd of lcd to------------------------rx of arduino ?