Author Topic: serial lcd  (Read 708 times)

0 Members and 1 Guest are viewing this topic.

Offline kunaldgr8Topic starter

  • Full Member
  • ***
  • Posts: 84
  • Helpful? 0
serial lcd
« 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 but when i click on upload it show the BYTE key word is no longer supported. what should i do what do it mean

Offline joe61

  • Supreme Robot
  • *****
  • Posts: 417
  • Helpful? 16
Re: serial lcd
« Reply #1 on: February 11, 2012, 10:39:03 AM »
You'll need to rewrite it. Look here 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

Joe

Offline rbtying

  • Supreme Robot
  • *****
  • Posts: 452
  • Helpful? 31
Re: serial lcd
« Reply #2 on: February 11, 2012, 10:47:12 AM »
Use Serial.write(uint8_t); Arduino has removed the print(uint8_t, BYTE) completely.

Offline kunaldgr8Topic starter

  • Full Member
  • ***
  • Posts: 84
  • Helpful? 0
Re: serial lcd
« Reply #3 on: February 11, 2012, 10:55:55 AM »
can i get a sample code for serial lcd plzz.

Offline kunaldgr8Topic starter

  • Full Member
  • ***
  • Posts: 84
  • Helpful? 0
Re: serial lcd
« Reply #4 on: February 11, 2012, 11:11:46 AM »
i replaced it with latest keyword but still it shows that gibberish words

Offline joe61

  • Supreme Robot
  • *****
  • Posts: 417
  • Helpful? 16
Re: serial lcd
« Reply #5 on: February 11, 2012, 11:32:39 AM »
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

Offline kunaldgr8Topic starter

  • Full Member
  • ***
  • Posts: 84
  • Helpful? 0
Re: serial lcd
« Reply #6 on: February 12, 2012, 12:37:45 AM »
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

Offline kunaldgr8Topic starter

  • Full Member
  • ***
  • Posts: 84
  • Helpful? 0
Re: serial lcd
« Reply #7 on: February 12, 2012, 12:40:40 AM »
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 ?

 


Get Your Ad Here

data_list