SparkFun will be closed for Memorial Day (5/30). Orders placed after 2pm MT on Friday (5/27) will process and ship out on Tuesday (5/31).
Track My Order
Frequently Asked Questions
International Shipping Info
Mon-Fri, 9am to 12pm and
1pm to 5pm U.S. Mountain Time:
Chat With Us
June 18, 2009
about 6 years ago
Yes you can, but you are limited to only 8 custom characters. First define 8 bytes that will hold your custom character, one byte per line (obviously only the lower 5 bits can be used since this is a 5x8 display). Then decide which character (from 0-7) you want to set. Call this “x”. Then do this pseudocode:
for(i = 0; i < 8; i++)
lcd.print(0xFE, BYTE); // Send command
lcd.print(0x40 | (x << 3) | i, BYTE); // Set the CGRAM address
lcd.print(character_data[i], BYTE); // Set the character
lcd.print(0x80, BYTE); // Set the cursor back to DDRAM
To use your custom character, use:
No public wish lists :(
Forgot your password?
No account? Register one!