update Docs
This commit is contained in:
parent
2edb2f9a5c
commit
87e451b82b
13 changed files with 85 additions and 77 deletions
|
@ -814,7 +814,7 @@
|
|||
<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 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
|
||||
/// ```
|
||||
/// const arduboy: Arduboy2 = Arduboy2::new();
|
||||
|
@ -1238,15 +1238,15 @@
|
|||
///The RGB LED is actually individual red, green and blue LEDs placed very close together in a single package. This 3 parameter version of the function will set each LED either on or off, to set the RGB LED to 7 different colors at their highest brightness or turn it off.
|
||||
///```text
|
||||
/// The colors are as follows:
|
||||
/// RED LED GREEN LED BLUE LED COLOR
|
||||
/// RGB_OFF RGB_OFF RGB_OFF OFF
|
||||
/// RGB_OFF RGB_OFF RGB_ON Blue
|
||||
/// RGB_OFF RGB_ON RGB_OFF Green
|
||||
/// RGB_OFF RGB_ON RGB_ON Cyan
|
||||
/// RGB_ON RGB_OFF RGB_OFF Red
|
||||
/// RGB_ON RGB_OFF RGB_ON Magenta
|
||||
/// RGB_ON RGB_ON RGB_OFF Yellow
|
||||
/// RGB_ON RGB_ON RGB_ON White
|
||||
/// RED LED GREEN LED BLUE LED COLOR
|
||||
/// RGB_OFF RGB_OFF RGB_OFF OFF
|
||||
/// RGB_OFF RGB_OFF RGB_ON Blue
|
||||
/// RGB_OFF RGB_ON RGB_OFF Green
|
||||
/// RGB_OFF RGB_ON RGB_ON Cyan
|
||||
/// RGB_ON RGB_OFF RGB_OFF Red
|
||||
/// RGB_ON RGB_OFF RGB_ON Magenta
|
||||
/// RGB_ON RGB_ON RGB_OFF Yellow
|
||||
/// RGB_ON RGB_ON RGB_ON White
|
||||
/// ```
|
||||
</span><span class="kw">pub fn </span>digital_write_rgb(<span class="kw-2">&</span><span class="self">self</span>, red: u8, green: u8, blue: u8) {
|
||||
<span class="kw">unsafe </span>{ digital_write_rgb(red, green, blue) }
|
||||
|
@ -1254,7 +1254,7 @@
|
|||
<span class="doccomment">///Indicate if the specified number of frames has elapsed.
|
||||
///
|
||||
///Parameters
|
||||
/// frames The desired number of elapsed frames.
|
||||
///- frames The desired number of elapsed frames.
|
||||
///
|
||||
///Returns
|
||||
/// true if the specified number of frames has elapsed.
|
||||
|
|
|
@ -154,7 +154,7 @@
|
|||
<span class="attr">#[link_name = <span class="string">"arduboy_eeprom_put"</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 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
|
||||
/// ```
|
||||
/// static e: EEPROM = EEPROM::new(10);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue