-
Notifications
You must be signed in to change notification settings - Fork 41
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Custom Characters #8
Comments
Just ported your function for the current version of the project (+ the esp-hal 1.0 support in another PR) @h4llow3En pub fn create_char<D: DelayNs>(&mut self, address: u8, bitmap: [u8; 8], delay: &mut D) -> Result<u8> {
// send new custom character to cgram address
match address {
0..=7 => {
// Just send the COMMAND command to the given address
self.write_command(0x40 | address << 3, delay);
for row in &bitmap {
self.write_byte(*row, delay);
}
Ok(address)
}
_ => Err(Error),
}
} |
This was referenced Sep 15, 2024
Draft
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
In my now abandoned project about the HD44780 I tried my luck with the following function to create custom characters. Maybe this is a bit of help to you.
The text was updated successfully, but these errors were encountered: