Show Posts
Pages: [1]
1  Using Arduino / Programming Questions / Re: ANSI rather than UTF-8 on: February 12, 2012, 09:33:27 am
Code:
char x [] = "\xAB\xCD";

exactly what i needed for special chars on a LCD! thanx!
2  Community / Website and Forum / createChar on: November 15, 2011, 02:29:51 pm
this page:
http://arduino.cc/en/Reference/LiquidCrystalCreateChar
is missing the 8th line in the example code:

Code:
byte smiley[8] = {
  B00000,
  B10001,
  B00000,
  B00000,
  B10001,
  B01110,
  B00000,
};

should be:

Code:
byte smiley[8] = {
  B00000,
  B10001,
  B00000,
  B00000,
  B10001,
  B01110,
  B00000,
  B00000
};

for two reasons:
1. the LiquidChristal library is always writing 8 lines
2. theres a overnumerous comma at the end (im surprised that the compiler is ignoring it)
Pages: [1]