added support for printing out of progmem

This commit is contained in:
ZennCode 2023-08-07 16:28:11 +02:00
parent 25e7d3272c
commit 5fdfcf88c4
10 changed files with 157 additions and 4 deletions

View file

@ -20,6 +20,11 @@ pub const WIDTH: u8 = 128;
///
/// this is to calculate with it.
pub const HEIGHT: u8 = 64;
#[derive(Copy, Clone)]
pub struct Pstring {
pub pointer: *const i8,
}
/// This item is to chose between Black or White
#[derive(Debug, Copy, Clone, Hash, Eq, PartialEq, Ord, PartialOrd)]
#[repr(u8)]
@ -411,6 +416,9 @@ extern "C" {
#[link_name = "arduboy_print_chars"]
pub fn print_chars(cstr: *const c_char);
#[link_name = "arduboy_print_chars_progmem"]
pub fn print_chars_progmem(pstring: *const c_char);
// #[link_name = "arduboy_print_char"]
// fn print_char(c: c_char) -> c_size_t;