update docs and added support to print String from heapless

This commit is contained in:
Zenn 2023-08-20 12:31:52 +02:00
parent 2c47c3ad9a
commit b6cf7e43c7
23 changed files with 161 additions and 122 deletions

View file

@ -751,6 +751,7 @@
<a href="#751" id="751">751</a>
<a href="#752" id="752">752</a>
<a href="#753" id="753">753</a>
<a href="#754" id="754">754</a>
</pre></div><pre class="rust"><code><span class="doccomment">//! This is the Module to interact in a save way with the Arduboy2 C++ library.
//!
//! All of the functions are safe wrapped inside the [Arduboy2] struct.
@ -1099,6 +1100,7 @@
///
/// arduboy.print(b&quot;Hello World\n\0&quot;[..]); // Prints &quot;Hello World&quot; and then sets the
/// // text cursor to the start of the next line
/// arduboy.print(f!(b&quot;Hello World\n&quot;)); // Prints &quot;Hello World&quot; but does not use the 2kb ram
/// arduboy.print(value); // Prints &quot;42&quot;
/// arduboy.print(&quot;\n\0&quot;); // Sets the text cursor to the start of the next line
/// arduboy.print(&quot;hello world&quot;) // Prints normal [&amp;str]

View file

@ -244,7 +244,7 @@
/// This automatically saves the given text to the Progmem.
/// ## Example
/// ```
/// arduboy.print(f!(b&quot;Random text to print&quot;))
/// arduboy.print(f!(b&quot;Random text to print\0&quot;))
/// ```
</span><span class="attr">#[macro_export]
</span><span class="macro">macro_rules! </span>f {