update Docs

This commit is contained in:
ZennDev1337 2023-08-15 13:42:38 +02:00
parent 2edb2f9a5c
commit 87e451b82b
13 changed files with 85 additions and 77 deletions

View file

@ -61,7 +61,7 @@ pub struct Point {
/// This is the struct to interact in a save way with the Arduboy2 C++ library. /// This is the struct to interact in a save way with the Arduboy2 C++ library.
pub struct Arduboy2 {} pub struct Arduboy2 {}
impl Arduboy2 { impl Arduboy2 {
/// gives you a new instans of the [Arduboy2] /// gives you a new instance of the [Arduboy2]
/// ## Example /// ## Example
/// ``` /// ```
/// const arduboy: Arduboy2 = Arduboy2::new(); /// const arduboy: Arduboy2 = Arduboy2::new();
@ -501,7 +501,7 @@ impl Arduboy2 {
///Indicate if the specified number of frames has elapsed. ///Indicate if the specified number of frames has elapsed.
/// ///
///Parameters ///Parameters
/// frames The desired number of elapsed frames. ///- frames The desired number of elapsed frames.
/// ///
///Returns ///Returns
/// true if the specified number of frames has elapsed. /// true if the specified number of frames has elapsed.

View file

@ -14,7 +14,7 @@ extern "C" {
#[link_name = "arduboy_eeprom_put"] #[link_name = "arduboy_eeprom_put"]
fn arduboy_eeprom_put_raw(idx: c_int, object: *const u8, size: usize); fn arduboy_eeprom_put_raw(idx: c_int, object: *const u8, size: usize);
} }
///This struct to store and read structs objects to/from eeprom memory. ///This is the struct to store and read structs objects to/from eeprom memory.
/// ## Example /// ## Example
/// ``` /// ```
/// static e: EEPROM = EEPROM::new(10); /// static e: EEPROM = EEPROM::new(10);

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View file

@ -814,7 +814,7 @@
<span class="doccomment">/// This is the struct to interact in a save way with the Arduboy2 C++ library. <span class="doccomment">/// This is the struct to interact in a save way with the Arduboy2 C++ library.
</span><span class="kw">pub struct </span>Arduboy2 {} </span><span class="kw">pub struct </span>Arduboy2 {}
<span class="kw">impl </span>Arduboy2 { <span class="kw">impl </span>Arduboy2 {
<span class="doccomment">/// gives you a new instans of the [Arduboy2] <span class="doccomment">/// gives you a new instance of the [Arduboy2]
/// ## Example /// ## Example
/// ``` /// ```
/// const arduboy: Arduboy2 = Arduboy2::new(); /// const arduboy: Arduboy2 = Arduboy2::new();
@ -1254,7 +1254,7 @@
<span class="doccomment">///Indicate if the specified number of frames has elapsed. <span class="doccomment">///Indicate if the specified number of frames has elapsed.
/// ///
///Parameters ///Parameters
/// frames The desired number of elapsed frames. ///- frames The desired number of elapsed frames.
/// ///
///Returns ///Returns
/// true if the specified number of frames has elapsed. /// true if the specified number of frames has elapsed.

View file

@ -154,7 +154,7 @@
<span class="attr">#[link_name = <span class="string">&quot;arduboy_eeprom_put&quot;</span>] <span class="attr">#[link_name = <span class="string">&quot;arduboy_eeprom_put&quot;</span>]
</span><span class="kw">fn </span>arduboy_eeprom_put_raw(idx: c_int, object: <span class="kw-2">*const </span>u8, size: usize); </span><span class="kw">fn </span>arduboy_eeprom_put_raw(idx: c_int, object: <span class="kw-2">*const </span>u8, size: usize);
} }
<span class="doccomment">///This struct to store and read structs objects to/from eeprom memory. <span class="doccomment">///This is the struct to store and read structs objects to/from eeprom memory.
/// ## Example /// ## Example
/// ``` /// ```
/// static e: EEPROM = EEPROM::new(10); /// static e: EEPROM = EEPROM::new(10);