Pages: [1]   Go Down
Author Topic: LCD lib reference | add "B00000" in createChar() example  (Read 513 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Full Member
***
Karma: 1
Posts: 155
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

In the reference section for createChar() / part of the standard LCD lib
http://arduino.cc/en/Reference/LiquidCrystalCreateChar

I found this array initialization:

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

Note that in the 8 element array the last value is omitted, because it is 0. It could be helpful, especially for persons who new with Arduino, to specify the full array. So it is better usable for persons who wonder why in a 8 element array are only 7 elements.
Logged

Pages: [1]   Go Up
Jump to: