Show Posts
Pages: [1]
1  Using Arduino / Displays / Re: How to print special charactrers © ® ² "TM" in LCD display? on: February 03, 2013, 10:30:01 pm

Better give them meaningful names
* newChar1 => newCharSquared
* newChar2 => newCharCopyRight
* newChar3 => newChar???
* newChar4 => newCharTRadeMark

easier to remember smiley


thanks for the tip.... keeps us organized. I have modified the code accordingly.
2  Using Arduino / Displays / Re: How to print special charactrers © ® ² "TM" in LCD display? on: February 03, 2013, 05:21:35 am
Guys, its done...


Code:
#include  <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);

// ^2
byte newCharSquare[8] = {
  B01100,
  B10010,
  B00100,
  B01000,
  B11110,
  B00000,
  B00000,
  B00000
};
 
// (C)
byte newCharCopyright[8] = {
  B11111,
  B10001,
  B10101,
  B10111,
  B10101,
  B10001,
  B11111,
  B00000
};
 
// (R)
byte newCharRegistered[8] = {
  B11111,
  B10001,
  B10101,
  B10001,
  B10011,
  B10101,
  B11111,
  B00000
};
 
// TM
byte newCharTrademark[8] = {
  B01110,
  B00100,
  B00100,
  B00000,
  B01010,
  B10101,
  B10101,
  B00000
};
 
int i = 0;
 
void setup()
{
  lcd.createChar(0, newCharSquare);
  lcd.createChar(1, newCharCopyright);
  lcd.createChar(2, newCharRegistered);
  lcd.createChar(3, newCharTrademark);
  lcd.begin(16, 2);
 
  for(int n = 0; n < 4; n++)
  {
    lcd.setCursor(n,0);
    lcd.write(n);
  }
}
 
void loop()
{
 
}
3  Using Arduino / Displays / How to print special charactrers © ® ² "TM" in LCD display? on: December 06, 2012, 06:07:25 am
........Hola Arduino fans smiley-cool
For the following special characters,
© - Copyright
® - Registered
TM - Trade Mark
² - Square (Eg: X²) or power 2

what are the character codes?
I have a HD44780U LCD Display with ROM Code: A00.
For the above mentioned characters, there appears to be no code in the datasheet provided.
But for ROM Code: A02, the codes are 169 for (c) & 174 for (R). But for others, there is no code.
Any idea on how to make them appear on the display???
Pages: [1]