I am experimenting the write((byte)num)
function, and I stumble upon a pre-made custom character. Usually it's on above ((byte)200)
or and below ((byte)10000)
. If anyone else know this, where could I find the list for a specific character?
1 Answer
Hi Welcome to Arduino StackExchange
You can build your own LCD characters if you spend some time with the datasheet and user manuals available
Arduino has a dedicated function here
#include <LiquidCrystal.h>
LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
byte smiley[8] = {
B00000,
B10001,
B00000,
B00000,
B10001,
B01110,
B00000,
};
void setup() {
lcd.createChar(0, smiley);
lcd.begin(16, 2);
lcd.write(byte(0));
}
void loop() {}
here is one example: from our tool here
From the datasheet:
here is one example where a Heart symbol is created using the built-in Arduino LCD library:
You can play here at our LCD1602 simulator to get a hang of it. Please leave a message or comment if you have any questions :)
(byte) 10000
is a cast of integer to byte ... it is equal to 16