added ArduboyFx begin drawBitmap and display to the crate also added a fxdata-converter.html file to the docs
This commit is contained in:
parent
9248c9f2ac
commit
ddf419f702
10 changed files with 3218 additions and 2682 deletions
|
@ -37,5 +37,6 @@ pub use crate::library::arduboy_tone::{self, ArduboyTones};
|
|||
pub use crate::library::ardvoice::{self, ArdVoice};
|
||||
pub use crate::library::eeprom::{EEPROM, EEPROMBYTE};
|
||||
pub use crate::library::{arduino, c, sprites};
|
||||
pub use crate::library::arduboyfx;
|
||||
pub mod serial_print;
|
||||
|
||||
|
|
|
@ -14,11 +14,11 @@ pub const FONT_SIZE: u8 = 6;
|
|||
/// The standard width of the arduboy
|
||||
///
|
||||
/// this is to calculate with it.
|
||||
pub const WIDTH: u8 = 128;
|
||||
pub const WIDTH: i16 = 128;
|
||||
/// The standard height of the arduboy
|
||||
///
|
||||
/// this is to calculate with it.
|
||||
pub const HEIGHT: u8 = 64;
|
||||
pub const HEIGHT: i16 = 64;
|
||||
|
||||
/// This item is to chose between Black or White
|
||||
#[derive(Debug, Copy, Clone, Hash, Eq, PartialEq, Ord, PartialOrd)]
|
||||
|
|
|
@ -1,8 +1,26 @@
|
|||
#![allow(non_upper_case_globals)]
|
||||
use core::ffi::{c_int, c_long, c_uchar, c_uint, c_ulong};
|
||||
|
||||
|
||||
|
||||
pub const dbmNormal: u8 = 0;
|
||||
pub const dbmOverwrite: u8 = 0;
|
||||
pub const dbmMasked: u8 = 1;
|
||||
extern "C" {
|
||||
#[link_name = "arduboyfx_begin"]
|
||||
fn arduboyfx_begin();
|
||||
|
||||
}
|
||||
pub fn arduboyfx_begin();
|
||||
#[link_name = "arduboyfx_begin_data"]
|
||||
pub fn arduboyfx_begin_data(datapage: c_uint);
|
||||
#[link_name = "arduboyfx_begin_data_save"]
|
||||
pub fn arduboyfx_begin_data_save(datapage: c_uint, savepage: c_uint);
|
||||
#[link_name = "arduboyfx_display"]
|
||||
pub fn arduboyfx_display();
|
||||
#[link_name = "arduboyfx_display_clear"]
|
||||
pub fn arduboyfx_display_clear();
|
||||
#[link_name = "arduboyfx_draw_bitmap"]
|
||||
pub fn arduboyfx_draw_bitmap(
|
||||
x: c_int,
|
||||
y: c_int,
|
||||
address: c_ulong,
|
||||
frame: c_uchar,
|
||||
mode: c_uchar,
|
||||
);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue