NerdKits - electronics education for a digital generation

You are not logged in. [log in]

NEW: Learning electronics? Ask your questions on the new Electronics Questions & Answers site hosted by CircuitLab.

Microcontroller Programming » Change text

August 09, 2010
by LindaEC
LindaEC's Avatar

Hello, i want to change the text from congralulations your usb nerdkit is alive, to something else how to I go about it. Thanks

August 09, 2010
by Rick_S
Rick_S's Avatar

Just change the text in the quotation marks below:

  // print message to screen
  //             20 columns wide:
  //                     01234567890123456789
  lcd_line_one();
  lcd_write_string(PSTR("  Congratulations!  "));
  lcd_line_two();
  lcd_write_string(PSTR("********************"));
  lcd_line_three();
  lcd_write_string(PSTR("  Your USB NerdKit  "));
  lcd_line_four();
  lcd_write_string(PSTR("      is alive!     "));

From what it says to what you want. Then re-compile and send it to your NerdKit. They even gave you a handy scale (on line 3 above) so you can see if what you have will fit in the display.

Rick

August 09, 2010
by LindaEC
LindaEC's Avatar

do i use the same makefile?

August 09, 2010
by Rick_S
Rick_S's Avatar

Yep, All you should have to do is change the text in the program and run make again as you did initially.

August 09, 2010
by LindaEC
LindaEC's Avatar

thanks Rick

August 10, 2010
by Ralphxyz
Ralphxyz's Avatar

Do not be surprised if your text gets wrapped to the next line or sometimes does not appear.

The LCD is very sensitive to character spacing and case it is a 20 x 4 display bot I.ve seen it do some strange things

(not that what I did was strange of course).

Ralph

Post a Reply

Please log in to post a reply.

Did you know that a motor is harder to turn when its terminals are shorted together? Learn more...