added new demo for progmem and implemented new features for the usage of progmem.
This commit is contained in:
parent
5fdfcf88c4
commit
d9cb232cef
14 changed files with 148 additions and 117 deletions
|
@ -6,7 +6,7 @@ mod hardware;
|
|||
mod library;
|
||||
pub mod prelude;
|
||||
mod print;
|
||||
pub use crate::library::arduboy::{Arduboy, Color, Pstring, FONT_SIZE, HEIGHT, WIDTH};
|
||||
pub use crate::library::arduboy::{Arduboy, Color, FONT_SIZE, HEIGHT, WIDTH};
|
||||
pub use crate::library::arduboy_tone::Sound;
|
||||
pub use crate::library::eeprom::EEPROM;
|
||||
pub use crate::library::{arduboy_tone_pitch, c, sprites};
|
||||
|
|
|
@ -20,7 +20,7 @@ pub const WIDTH: u8 = 128;
|
|||
///
|
||||
/// this is to calculate with it.
|
||||
pub const HEIGHT: u8 = 64;
|
||||
|
||||
#[doc(hidden)]
|
||||
#[derive(Copy, Clone)]
|
||||
pub struct Pstring {
|
||||
pub pointer: *const i8,
|
||||
|
|
|
@ -1,5 +1,6 @@
|
|||
use crate::prelude::Pstring;
|
||||
use core::ffi::c_int;
|
||||
|
||||
///Create a `const` raw pointer to a \[u8;_] that saves text, without creating an intermediate reference.
|
||||
#[macro_export]
|
||||
macro_rules! get_string_addr {
|
||||
( $s:expr ) => {
|
||||
|
@ -11,8 +12,6 @@ macro_rules! get_string_addr {
|
|||
#[allow(unused_imports)]
|
||||
pub(super) use get_string_addr;
|
||||
|
||||
use crate::Pstring;
|
||||
|
||||
#[derive(Debug, Copy, Clone, Hash, Eq, PartialEq, Ord, PartialOrd)]
|
||||
pub enum Base {
|
||||
Bin = 2,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue