From 9248c9f2ac3274847ced96c7a468dfa7b33c1237 Mon Sep 17 00:00:00 2001 From: ZennDev1337 Date: Mon, 2 Oct 2023 12:48:45 +0200 Subject: [PATCH] added begin() drawBitmap() display() exports for testing purposes --- arduboy-rust/src/lib.rs | 1 + arduboy-rust/src/library/arduboyfx.rs | 8 ++++++++ arduboy-rust/src/library/mod.rs | 1 + 3 files changed, 10 insertions(+) create mode 100644 arduboy-rust/src/library/arduboyfx.rs diff --git a/arduboy-rust/src/lib.rs b/arduboy-rust/src/lib.rs index 05fd881..e2547ea 100644 --- a/arduboy-rust/src/lib.rs +++ b/arduboy-rust/src/lib.rs @@ -38,3 +38,4 @@ pub use crate::library::ardvoice::{self, ArdVoice}; pub use crate::library::eeprom::{EEPROM, EEPROMBYTE}; pub use crate::library::{arduino, c, sprites}; pub mod serial_print; + diff --git a/arduboy-rust/src/library/arduboyfx.rs b/arduboy-rust/src/library/arduboyfx.rs new file mode 100644 index 0000000..ee09729 --- /dev/null +++ b/arduboy-rust/src/library/arduboyfx.rs @@ -0,0 +1,8 @@ + + + +extern "C" { + #[link_name = "arduboyfx_begin"] + fn arduboyfx_begin(); + +} \ No newline at end of file diff --git a/arduboy-rust/src/library/mod.rs b/arduboy-rust/src/library/mod.rs index e11c12e..cd51cee 100644 --- a/arduboy-rust/src/library/mod.rs +++ b/arduboy-rust/src/library/mod.rs @@ -7,3 +7,4 @@ pub mod c; pub mod eeprom; pub mod progmem; pub mod sprites; +pub mod arduboyfx; \ No newline at end of file