diff --git a/.idea/Rust-for-Arduboy.iml b/.idea/Rust-for-Arduboy.iml
index b0ca470..eed0bfe 100644
--- a/.idea/Rust-for-Arduboy.iml
+++ b/.idea/Rust-for-Arduboy.iml
@@ -31,6 +31,7 @@
+
diff --git a/arduboy-rust/Wrapper-Project/src/main.h b/arduboy-rust/Wrapper-Project/src/main.h
index 7d79d27..ef813bc 100644
--- a/arduboy-rust/Wrapper-Project/src/main.h
+++ b/arduboy-rust/Wrapper-Project/src/main.h
@@ -33,6 +33,6 @@ ArdVoice ardvoice;
#include "./library/arduino/eeprom_export.h"
#endif
-#if defined(Arduino_Serial_Library)
+#if defined(Serial_Library)
#include "./library/arduino/arduino_serial_export.h"
#endif
\ No newline at end of file
diff --git a/arduboy-rust/src/hardware/buttons.rs b/arduboy-rust/src/hardware/buttons.rs
index 4552102..393b10b 100644
--- a/arduboy-rust/src/hardware/buttons.rs
+++ b/arduboy-rust/src/hardware/buttons.rs
@@ -46,19 +46,19 @@ pub struct ButtonSet {
}
impl ButtonSet {
- pub unsafe fn pressed(&self) -> bool {
- crate::libraries::arduboy2_library::binding::pressed(self.flag_set)
+ pub fn pressed(&self) -> bool {
+ unsafe { crate::libraries::arduboy2_library::binding::pressed(self.flag_set) }
}
- pub unsafe fn just_pressed(&self) -> bool {
- crate::libraries::arduboy2_library::binding::just_pressed(self.flag_set)
+ pub fn just_pressed(&self) -> bool {
+ unsafe { crate::libraries::arduboy2_library::binding::just_pressed(self.flag_set) }
}
- pub unsafe fn just_released(&self) -> bool {
- crate::libraries::arduboy2_library::binding::just_released(self.flag_set)
+ pub fn just_released(&self) -> bool {
+ unsafe { crate::libraries::arduboy2_library::binding::just_released(self.flag_set) }
}
- pub unsafe fn not_pressed(&self) -> bool {
- crate::libraries::arduboy2_library::binding::not_pressed(self.flag_set)
+ pub fn not_pressed(&self) -> bool {
+ unsafe { crate::libraries::arduboy2_library::binding::not_pressed(self.flag_set) }
}
}
diff --git a/arduboy-rust/src/lib.rs b/arduboy-rust/src/lib.rs
index 904193e..ed854c3 100644
--- a/arduboy-rust/src/lib.rs
+++ b/arduboy-rust/src/lib.rs
@@ -9,9 +9,9 @@
//! use arduboy_rust::prelude::*;
//! ```
//! ### Disable C++ libraries
-//! Inside the root directory is a file named `import_config.h`
+//! Inside the project directory is a file named `config.toml`
//!
-//! You can disable C++ libraries in the `import_config.h` file.
+//! You can disable C++ libraries in the `config.toml` file.
//! Just comment the unused library definition out.
//!
//! Be careful with disabling libraries because:
diff --git a/arduboy-rust/src/libraries/arduboy2_library/arduboy2.rs b/arduboy-rust/src/libraries/arduboy2_library/arduboy2.rs
index 85374c4..f588295 100644
--- a/arduboy-rust/src/libraries/arduboy2_library/arduboy2.rs
+++ b/arduboy-rust/src/libraries/arduboy2_library/arduboy2.rs
@@ -351,7 +351,7 @@ impl Arduboy2 {
///- ASCII carriage return (\r, 0x0D, musical eighth note). This character will be ignored.
///
///
- /// ## Example
+ /// ### Example
/// ```
/// #![allow(non_upper_case_globals)]
/// use arduboy_rust::prelude::*;
diff --git a/arduboy-rust/src/libraries/arduboy_tones_library/arduboy_tones.rs b/arduboy-rust/src/libraries/arduboy_tones_library/arduboy_tones.rs
index b790b40..c626de0 100644
--- a/arduboy-rust/src/libraries/arduboy_tones_library/arduboy_tones.rs
+++ b/arduboy-rust/src/libraries/arduboy_tones_library/arduboy_tones.rs
@@ -2,7 +2,7 @@ use core::ffi::{c_uchar, c_uint, c_ulong};
///This is the struct to interact in a save way with the ArduboyTones C++ library.
///
-/// You will need to uncomment the ArduboyTones_Library in the import_config.h file.
+/// You will need to uncomment the ArduboyTones in the config.toml file.
pub struct ArduboyTones {}
impl ArduboyTones {
@@ -10,6 +10,7 @@ impl ArduboyTones {
/// ## Example
/// ```
/// use arduboy_rust::prelude::*;
+ /// #[allow(non_upper_case_globals)]
/// const sound: ArduboyTones = ArduboyTones::new();
/// ```
pub const fn new() -> ArduboyTones {
@@ -67,6 +68,7 @@ impl ArduboyTones {
/// Example:
/// ```
/// use arduboy_rust::prelude::*;
+ /// #[allow(non_upper_case_globals)]
/// const sound: ArduboyTones = ArduboyTones::new();
/// progmem!(
/// static sound1: [u8; _] = [220, 1000, 0, 250, 440, 500, 880, 2000, TONES_END];
@@ -105,7 +107,7 @@ impl ArduboyTones {
///
/// ```
/// use arduboy_rust::prelude::*;
- /// use arduboy_tones::tones_pitch::*;
+ /// use tones_pitch::*;
/// let sound2: [u16; 9] = [220, 1000, 0, 250, 440, 500, 880, 2000, TONES_END];
/// ```
/// Using `tones()`, with the data in PROGMEM, is normally a better
diff --git a/arduboy-rust/src/libraries/arduboy_tones_library/mod.rs b/arduboy-rust/src/libraries/arduboy_tones_library/mod.rs
index 1015d44..fb1ef79 100644
--- a/arduboy-rust/src/libraries/arduboy_tones_library/mod.rs
+++ b/arduboy-rust/src/libraries/arduboy_tones_library/mod.rs
@@ -1,6 +1,6 @@
//!This is the Module to interact in a save way with the ArduboyTones C++ library.
//!
-//! You will need to uncomment the ArduboyTones_Library in the import_config.h file.
+//! You will need to uncomment the ArduboyTones in the config.toml file.
#[doc(hidden)]
mod arduboy_tones;
pub mod tones_pitch;
diff --git a/arduboy-rust/src/libraries/arduboyfx_library/fx.rs b/arduboy-rust/src/libraries/arduboyfx_library/fx.rs
index bfe39cb..b18d05a 100644
--- a/arduboy-rust/src/libraries/arduboyfx_library/fx.rs
+++ b/arduboy-rust/src/libraries/arduboyfx_library/fx.rs
@@ -5,10 +5,10 @@
//! use arduboy_rust::prelude::*;
//!
//! fn setup() {
-//! FX::begin()
+//! fx::begin()
//! }
//! ```
-//! You will need to uncomment the ArduboyFX_Library in the import_config.h file.
+//! You will need to uncomment the ArduboyFX in the config.toml file.
#![allow(non_upper_case_globals)]
use super::drawable_number::DrawableNumber;
use super::drawable_string::DrawableString;
diff --git a/arduboy-rust/src/libraries/arduboyfx_library/mod.rs b/arduboy-rust/src/libraries/arduboyfx_library/mod.rs
index 9f59064..1739a8c 100644
--- a/arduboy-rust/src/libraries/arduboyfx_library/mod.rs
+++ b/arduboy-rust/src/libraries/arduboyfx_library/mod.rs
@@ -1,6 +1,6 @@
//! This is the Module to interact in a save way with the ArduboyFX C++ library.
//!
-//! You will need to uncomment the ArduboyFX_Library in the import_config.h file.
+//! You will need to uncomment the ArduboyFX in the config.toml file.
mod drawable_number;
pub mod fx_consts;
#[doc(hidden)]
diff --git a/arduboy-rust/src/libraries/arduino_system/eeprom.rs b/arduboy-rust/src/libraries/arduino_system/eeprom.rs
index 30facca..2f4aff9 100644
--- a/arduboy-rust/src/libraries/arduino_system/eeprom.rs
+++ b/arduboy-rust/src/libraries/arduino_system/eeprom.rs
@@ -18,18 +18,21 @@ extern "C" {
///This is the struct to store and read structs objects to/from eeprom memory.
/// ## Example
/// ```
+/// use arduboy_rust::prelude::*;
+/// #[allow(non_upper_case_globals)]
/// static e: EEPROM = EEPROM::new(10);
/// struct Scorebord {
/// player1: u16,
/// text: &'static str,
/// }
+/// #[allow(non_upper_case_globals)]
/// static mut s: Scorebord = Scorebord {
/// player1: 0,
/// text: "lol\0",
/// };
///
/// // init inside of the setup function
-/// e.init(&mut s);
+/// unsafe { e.init(&mut s) };
/// ```
pub struct EEPROM {
start_c1: i16,
diff --git a/arduboy-rust/src/libraries/arduino_system/progmem.rs b/arduboy-rust/src/libraries/arduino_system/progmem.rs
index 2f30db1..a553838 100644
--- a/arduboy-rust/src/libraries/arduino_system/progmem.rs
+++ b/arduboy-rust/src/libraries/arduino_system/progmem.rs
@@ -3,6 +3,7 @@
/// Create a space for Progmem variable
/// ## Example
/// ```
+/// use arduboy_rust::prelude::*;
/// //for text
/// progmem!(
/// static text: [u8; _] = *b"I'm a PROGMEM Text\0";
@@ -119,6 +120,9 @@ pub(super) use get_string_addr;
/// This automatically saves the given text to the Progmem.
/// ## Example
/// ```
+/// use arduboy_rust::prelude::*;
+/// #[allow(non_upper_case_globals)]
+/// const arduboy: Arduboy2 = Arduboy2::new();
/// arduboy.print(f!(b"Random text to print\0"))
/// ```
#[macro_export]
diff --git a/arduboy-rust/src/libraries/arduino_system/serial_print.rs b/arduboy-rust/src/libraries/arduino_system/serial_print.rs
index 0cb3ea5..ea40df5 100644
--- a/arduboy-rust/src/libraries/arduino_system/serial_print.rs
+++ b/arduboy-rust/src/libraries/arduino_system/serial_print.rs
@@ -1,6 +1,6 @@
//! This is the Module to interact in a save way with the Arduino Serial C++ library.
//!
-//! You will need to uncomment the Arduino_Serial_Library in the import_config.h file.
+//! You will need to uncomment the Serial in the config.toml file.
use crate::arduino_system::progmem::Pstring;
use core::ffi::{c_char, c_int, c_long, c_size_t, c_uchar, c_uint, c_ulong};
diff --git a/arduboy-rust/src/libraries/ardvoice_library/ardvoice.rs b/arduboy-rust/src/libraries/ardvoice_library/ardvoice.rs
index 53d2d61..0e26cba 100644
--- a/arduboy-rust/src/libraries/ardvoice_library/ardvoice.rs
+++ b/arduboy-rust/src/libraries/ardvoice_library/ardvoice.rs
@@ -1,6 +1,6 @@
//! This is the Module to interact in a save way with the ArdVoice C++ library.
//!
-//! You will need to uncomment the ArdVoice_Library in the import_config.h file.
+//! You will need to uncomment the ArdVoice in the config.toml file.
use core::ffi::{c_float, c_uchar, c_ulong};
diff --git a/arduboy-rust/src/libraries/ardvoice_library/mod.rs b/arduboy-rust/src/libraries/ardvoice_library/mod.rs
index 34d4b04..c4737f5 100644
--- a/arduboy-rust/src/libraries/ardvoice_library/mod.rs
+++ b/arduboy-rust/src/libraries/ardvoice_library/mod.rs
@@ -1,5 +1,5 @@
//! This is the Module to interact in a save way with the ArdVoice C++ library.
//!
-//! You will need to uncomment the ArdVoice_Library in the import_config.h file.
+//! You will need to uncomment the ArdVoice in the config.toml file.
mod ardvoice;
pub use ardvoice::ArdVoice;
diff --git a/docs/doc/arduboy_rust/arduboy_tones_library/index.html b/docs/doc/arduboy_rust/arduboy_tones_library/index.html
index 78efb61..36b7375 100644
--- a/docs/doc/arduboy_rust/arduboy_tones_library/index.html
+++ b/docs/doc/arduboy_rust/arduboy_tones_library/index.html
@@ -1,3 +1,3 @@
This is the struct to interact in a save way with the ArduboyTones C++ library.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/arduboy_tones_library/struct.ArduboyTones.html b/docs/doc/arduboy_rust/arduboy_tones_library/struct.ArduboyTones.html
index d9e9b62..5057049 100644
--- a/docs/doc/arduboy_rust/arduboy_tones_library/struct.ArduboyTones.html
+++ b/docs/doc/arduboy_rust/arduboy_tones_library/struct.ArduboyTones.html
@@ -1,10 +1,11 @@
ArduboyTones in arduboy_rust::arduboy_tones_library - Rust
dur The duration to play the tone for, in 1024ths of a
@@ -12,7 +13,7 @@ second (very close to milliseconds). A duration of 0, or if not provided,
means play forever, or until noTone() is called or a new tone or
sequence is started.
Play a tone sequence from frequency/duration pairs in an array in RAM.
tones A pointer to an array of frequency/duration pairs.
@@ -73,12 +75,12 @@ A frequency of 0 for any tone means silence (a musical rest).
Example:
use arduboy_rust::prelude::*;
-use arduboy_tones::tones_pitch::*;
+use tones_pitch::*;
let sound2: [u16; 9] = [220, 1000, 0, 250, 440, 500, 880, 2000, TONES_END];
Using tones(), with the data in PROGMEM, is normally a better
choice. The only reason to use tonesInRAM() would be if dynamically
altering the contents of the array is required.
Set the volume to always normal, always high, or tone controlled.
One of the following values should be used:
VOLUME_IN_TONE The volume of each tone will be specified in the tone
diff --git a/docs/doc/arduboy_rust/arduboyfx_library/fx/index.html b/docs/doc/arduboy_rust/arduboyfx_library/fx/index.html
index ca11c7d..95457dd 100644
--- a/docs/doc/arduboy_rust/arduboyfx_library/fx/index.html
+++ b/docs/doc/arduboy_rust/arduboyfx_library/fx/index.html
@@ -4,7 +4,7 @@
use arduboy_rust::prelude::*;
fn setup() {
- FX::begin()
+ fx::begin()
}
-
You will need to uncomment the ArduboyFX_Library in the import_config.h file.
+
You will need to uncomment the ArduboyFX in the config.toml file.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/arduboyfx_library/index.html b/docs/doc/arduboy_rust/arduboyfx_library/index.html
index fd2bea4..f3c770c 100644
--- a/docs/doc/arduboy_rust/arduboyfx_library/index.html
+++ b/docs/doc/arduboy_rust/arduboyfx_library/index.html
@@ -1,3 +1,3 @@
arduboy_rust::arduboyfx_library - Rust
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/arduino_system/eeprom/index.html b/docs/doc/arduboy_rust/arduino_system/eeprom/index.html
index 1eb1336..ecd79d3 100644
--- a/docs/doc/arduboy_rust/arduino_system/eeprom/index.html
+++ b/docs/doc/arduboy_rust/arduino_system/eeprom/index.html
@@ -1,2 +1,2 @@
-arduboy_rust::arduino_system::eeprom - Rust
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/arduino_system/eeprom/struct.EEPROM.html b/docs/doc/arduboy_rust/arduino_system/eeprom/struct.EEPROM.html
index d6a49a0..79b7547 100644
--- a/docs/doc/arduboy_rust/arduino_system/eeprom/struct.EEPROM.html
+++ b/docs/doc/arduboy_rust/arduino_system/eeprom/struct.EEPROM.html
@@ -1,18 +1,21 @@
-EEPROM in arduboy_rust::arduino_system::eeprom - Rust
This struct is important for the Progmem functionality.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/arduino_system/progmem/macro.f.html b/docs/doc/arduboy_rust/arduino_system/progmem/macro.f.html
index 1a27e8d..8e8a856 100644
--- a/docs/doc/arduboy_rust/arduino_system/progmem/macro.f.html
+++ b/docs/doc/arduboy_rust/arduino_system/progmem/macro.f.html
@@ -1,8 +1,11 @@
-f in arduboy_rust::arduino_system::progmem - Rust
use arduboy_rust::prelude::*;
+#[allow(non_upper_case_globals)]
+const arduboy: Arduboy2 = Arduboy2::new();
+arduboy.print(f!(b"Random text to print\0"))
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_ardvoice_tone_addr.html b/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_ardvoice_tone_addr.html
index 1bdcbb0..cafa28f 100644
--- a/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_ardvoice_tone_addr.html
+++ b/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_ardvoice_tone_addr.html
@@ -1,4 +1,4 @@
-get_ardvoice_tone_addr in arduboy_rust::arduino_system::progmem - Rust
Create a const raw pointer to a ardvoice tone as u8, without creating an intermediate reference.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_sprite_addr.html b/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_sprite_addr.html
index 27a3b36..7cbaead 100644
--- a/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_sprite_addr.html
+++ b/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_sprite_addr.html
@@ -1,4 +1,4 @@
-get_sprite_addr in arduboy_rust::arduino_system::progmem - Rust
Create a const raw pointer to a sprite as u8, without creating an intermediate reference.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_string_addr.html b/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_string_addr.html
index b46a6da..38fa226 100644
--- a/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_string_addr.html
+++ b/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_string_addr.html
@@ -1,4 +1,4 @@
-get_string_addr in arduboy_rust::arduino_system::progmem - Rust
Create a const raw pointer to a [u8;_] that saves text, without creating an intermediate reference.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_tones_addr.html b/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_tones_addr.html
index c975ab5..e3ec542 100644
--- a/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_tones_addr.html
+++ b/docs/doc/arduboy_rust/arduino_system/progmem/macro.get_tones_addr.html
@@ -1,4 +1,4 @@
-get_tones_addr in arduboy_rust::arduino_system::progmem - Rust
Create a const raw pointer to a tone sequenze as u16, without creating an intermediate reference.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/arduino_system/progmem/macro.progmem.html b/docs/doc/arduboy_rust/arduino_system/progmem/macro.progmem.html
index d01a42f..80e6228 100644
--- a/docs/doc/arduboy_rust/arduino_system/progmem/macro.progmem.html
+++ b/docs/doc/arduboy_rust/arduino_system/progmem/macro.progmem.html
@@ -1,4 +1,4 @@
-progmem in arduboy_rust::arduino_system::progmem - Rust
Get the number of bytes (characters) available for reading from the serial port. This is data that’s already arrived and stored in the serial receive buffer (which holds 64 bytes).
Sets the data rate in bits per second (baud) for serial data transmission. For communicating with Serial Monitor, make sure to use one of the baud rates listed in the menu at the bottom right corner of its screen. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/ardvoice_library/index.html b/docs/doc/arduboy_rust/ardvoice_library/index.html
index 9cb5243..d99482b 100644
--- a/docs/doc/arduboy_rust/ardvoice_library/index.html
+++ b/docs/doc/arduboy_rust/ardvoice_library/index.html
@@ -1,3 +1,3 @@
arduboy_rust::ardvoice_library - Rust
This is the struct to interact in a save way with the ArdVoice C++ library.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/hardware/buttons/struct.ButtonSet.html b/docs/doc/arduboy_rust/hardware/buttons/struct.ButtonSet.html
index 46eb2bc..8e120e3 100644
--- a/docs/doc/arduboy_rust/hardware/buttons/struct.ButtonSet.html
+++ b/docs/doc/arduboy_rust/hardware/buttons/struct.ButtonSet.html
@@ -1,7 +1,7 @@
ButtonSet in arduboy_rust::hardware::buttons - Rust
use arduboy_rust::prelude::*;
+#[allow(non_upper_case_globals)]
+const arduboy: Arduboy2 = Arduboy2::new();
+arduboy.print(f!(b"Random text to print\0"))
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/macro.get_ardvoice_tone_addr.html b/docs/doc/arduboy_rust/macro.get_ardvoice_tone_addr.html
index 70a0fdb..71f86ad 100644
--- a/docs/doc/arduboy_rust/macro.get_ardvoice_tone_addr.html
+++ b/docs/doc/arduboy_rust/macro.get_ardvoice_tone_addr.html
@@ -1,4 +1,4 @@
-get_ardvoice_tone_addr in arduboy_rust - Rust
Create a const raw pointer to a ardvoice tone as u8, without creating an intermediate reference.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/macro.get_sprite_addr.html b/docs/doc/arduboy_rust/macro.get_sprite_addr.html
index 6f7dee5..df97ac5 100644
--- a/docs/doc/arduboy_rust/macro.get_sprite_addr.html
+++ b/docs/doc/arduboy_rust/macro.get_sprite_addr.html
@@ -1,4 +1,4 @@
-get_sprite_addr in arduboy_rust - Rust
Create a const raw pointer to a sprite as u8, without creating an intermediate reference.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/macro.get_string_addr.html b/docs/doc/arduboy_rust/macro.get_string_addr.html
index 4c52f0d..359f685 100644
--- a/docs/doc/arduboy_rust/macro.get_string_addr.html
+++ b/docs/doc/arduboy_rust/macro.get_string_addr.html
@@ -1,4 +1,4 @@
-get_string_addr in arduboy_rust - Rust
Create a const raw pointer to a [u8;_] that saves text, without creating an intermediate reference.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/macro.get_tones_addr.html b/docs/doc/arduboy_rust/macro.get_tones_addr.html
index 4454a20..130d1fb 100644
--- a/docs/doc/arduboy_rust/macro.get_tones_addr.html
+++ b/docs/doc/arduboy_rust/macro.get_tones_addr.html
@@ -1,4 +1,4 @@
-get_tones_addr in arduboy_rust - Rust
Create a const raw pointer to a tone sequenze as u16, without creating an intermediate reference.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/macro.progmem.html b/docs/doc/arduboy_rust/macro.progmem.html
index 2036f34..6248b4c 100644
--- a/docs/doc/arduboy_rust/macro.progmem.html
+++ b/docs/doc/arduboy_rust/macro.progmem.html
@@ -1,4 +1,4 @@
-progmem in arduboy_rust - Rust
use arduboy_rust::prelude::*;
+#[allow(non_upper_case_globals)]
+const arduboy: Arduboy2 = Arduboy2::new();
+arduboy.print(f!(b"Random text to print\0"))
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/prelude/macro.get_ardvoice_tone_addr.html b/docs/doc/arduboy_rust/prelude/macro.get_ardvoice_tone_addr.html
index 2605fa5..9764724 100644
--- a/docs/doc/arduboy_rust/prelude/macro.get_ardvoice_tone_addr.html
+++ b/docs/doc/arduboy_rust/prelude/macro.get_ardvoice_tone_addr.html
@@ -1,4 +1,4 @@
-get_ardvoice_tone_addr in arduboy_rust::prelude - Rust
Create a const raw pointer to a ardvoice tone as u8, without creating an intermediate reference.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/prelude/macro.get_sprite_addr.html b/docs/doc/arduboy_rust/prelude/macro.get_sprite_addr.html
index 47c545e..173ee10 100644
--- a/docs/doc/arduboy_rust/prelude/macro.get_sprite_addr.html
+++ b/docs/doc/arduboy_rust/prelude/macro.get_sprite_addr.html
@@ -1,4 +1,4 @@
-get_sprite_addr in arduboy_rust::prelude - Rust
Create a const raw pointer to a sprite as u8, without creating an intermediate reference.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/prelude/macro.get_string_addr.html b/docs/doc/arduboy_rust/prelude/macro.get_string_addr.html
index c62b8c2..7e0022d 100644
--- a/docs/doc/arduboy_rust/prelude/macro.get_string_addr.html
+++ b/docs/doc/arduboy_rust/prelude/macro.get_string_addr.html
@@ -1,4 +1,4 @@
-get_string_addr in arduboy_rust::prelude - Rust
Create a const raw pointer to a [u8;_] that saves text, without creating an intermediate reference.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/prelude/macro.get_tones_addr.html b/docs/doc/arduboy_rust/prelude/macro.get_tones_addr.html
index 37238aa..d6fadd9 100644
--- a/docs/doc/arduboy_rust/prelude/macro.get_tones_addr.html
+++ b/docs/doc/arduboy_rust/prelude/macro.get_tones_addr.html
@@ -1,4 +1,4 @@
-get_tones_addr in arduboy_rust::prelude - Rust
Create a const raw pointer to a tone sequenze as u16, without creating an intermediate reference.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/prelude/macro.progmem.html b/docs/doc/arduboy_rust/prelude/macro.progmem.html
index d415ca4..684792d 100644
--- a/docs/doc/arduboy_rust/prelude/macro.progmem.html
+++ b/docs/doc/arduboy_rust/prelude/macro.progmem.html
@@ -1,4 +1,4 @@
-progmem in arduboy_rust::prelude - Rust
Get the number of bytes (characters) available for reading from the serial port. This is data that’s already arrived and stored in the serial receive buffer (which holds 64 bytes).
Sets the data rate in bits per second (baud) for serial data transmission. For communicating with Serial Monitor, make sure to use one of the baud rates listed in the menu at the bottom right corner of its screen. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate.
\ No newline at end of file
diff --git a/docs/doc/arduboy_rust/prelude/struct.ArduboyTones.html b/docs/doc/arduboy_rust/prelude/struct.ArduboyTones.html
index 34de2fe..90e3396 100644
--- a/docs/doc/arduboy_rust/prelude/struct.ArduboyTones.html
+++ b/docs/doc/arduboy_rust/prelude/struct.ArduboyTones.html
@@ -1,10 +1,11 @@
ArduboyTones in arduboy_rust::prelude - Rust
dur The duration to play the tone for, in 1024ths of a
@@ -12,7 +13,7 @@ second (very close to milliseconds). A duration of 0, or if not provided,
means play forever, or until noTone() is called or a new tone or
sequence is started.
Play a tone sequence from frequency/duration pairs in an array in RAM.
tones A pointer to an array of frequency/duration pairs.
@@ -73,12 +75,12 @@ A frequency of 0 for any tone means silence (a musical rest).
Example:
use arduboy_rust::prelude::*;
-use arduboy_tones::tones_pitch::*;
+use tones_pitch::*;
let sound2: [u16; 9] = [220, 1000, 0, 250, 440, 500, 880, 2000, TONES_END];
Using tones(), with the data in PROGMEM, is normally a better
choice. The only reason to use tonesInRAM() would be if dynamically
altering the contents of the array is required.
Set the volume to always normal, always high, or tone controlled.
One of the following values should be used:
VOLUME_IN_TONE The volume of each tone will be specified in the tone
diff --git a/docs/doc/arduboy_rust/prelude/struct.ButtonSet.html b/docs/doc/arduboy_rust/prelude/struct.ButtonSet.html
index 4e8469c..6a1d30e 100644
--- a/docs/doc/arduboy_rust/prelude/struct.ButtonSet.html
+++ b/docs/doc/arduboy_rust/prelude/struct.ButtonSet.html
@@ -1,7 +1,7 @@
ButtonSet in arduboy_rust::prelude - Rust