Microcontroller › AVR › dcc using avr › Hi BrandonMaking custom
October 6, 2016 at 5:40 am
#14187
Participant
Hi Brandon
Making custom characters demands few commands to be executed like this:
Lcd8_Cmd(72);
Lcd8_Write_Char(0); //ROW 1
Lcd8_Write_Char(14); //ROW 2
Lcd8_Write_Char(10); //ROW 3
Lcd8_Write_Char(10); //ROW 4
Lcd8_Write_Char(31); //ROW 5
Lcd8_Write_Char(27); //ROW 6
Lcd8_Write_Char(31); //ROW 7
Lcd8_Write_Char(31); //ROW 8
Lcd8_Cmd(0xcf);
Lcd8_Write_Char(1);
The values written inside the row commands above such as 0, 14, 10, etc are the decimal equivalent of 5 bits in a row where writing a logic '1' to any bit represents a black dot over that point while logic '0' clears it away. This particular code will generate a small "lock" like character of 5X8 pixels.
Just give it a try and you'll understand this much better.