Module arduboy_rust::prelude
source · Expand description
This is the important one to use this library effective in your project
Import the module:
use arduboy_rust::prelude::*;
Modules
- Functions given by the ArduboyFX library.
- Consts given by the ArduboyFX library.
- This is the Module to interact in a save way with the Arduino Serial C++ library.
- This is the module to interact in a save way with the Sprites C++ library.
- A list of all tones available and used by the Sounds library Arduboy2Tones
Macros
- This is the way to go if you want print some random text
- Create a
const
raw pointer to a ardvoice tone as u8, without creating an intermediate reference. - Create a
const
raw pointer to a sprite as u8, without creating an intermediate reference. - Create a
const
raw pointer to a [u8;_] that saves text, without creating an intermediate reference. - Create a
const
raw pointer to a tone sequenze as u16, without creating an intermediate reference. - Create a space for Progmem variable
Structs
- This is the struct to interact in a save way with the ArdVoice C++ library.
- 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 ArduboyTones C++ library.
- This struct gives the library a understanding what Buttons on the Arduboy are.
- This is the struct to store and read structs objects to/from eeprom memory.
- Use this struct to store and read single bytes to/from eeprom memory.
- Use this struct to store and read single bytes to/from eeprom memory without using a check digit.
- A fixed capacity map / dictionary that performs lookups via linear search
- This struct is used by a few Arduboy functions.
- This struct is important for the Progmem functionality.
- This struct is used by a few Arduboy functions.
- A fixed capacity
String
- A fixed capacity
Vec
Enums
- This item is to chose between Black or White
Constants
- Just a
const
for the A button - Just a
const
for the any - Just a
const
for the A button - Just a
const
for the B button - Just a
const
for the blue led - Just a
const
for the B button - Just a
const
for the DOWN button - Just a
const
for the DOWN button - The standard font size of the arduboy
- Just a
const
for the green led - The standard height of the arduboy
- Just a
const
for the LEFT button - Just a
const
for the LEFT button - Just a
const
for the red led - Just a
const
for led off - Just a
const
for led on - Just a
const
for the RIGHT button - Just a
const
for the RIGHT button - Just a
const
for the UP button - Just a
const
for the UP button - The standard width of the arduboy
Functions
- A Arduino function to pause the cpu circles for a given amount of ms
- A Arduino function to get a random number between 2 numbers seed based
- A Arduino function to get a random number smaller than the number given seed based
- A C function to get the length of a string
Type Aliases
- c_size_tExperimentalEquivalent to C’s
size_t
type, fromstddef.h
(orcstddef
for C++). - Equivalent to C’s
char
type. - Equivalent to C’s
double
type. - Equivalent to C’s
float
type. - Equivalent to C’s
signed int
(int
) type. - Equivalent to C’s
signed long
(long
) type. - Equivalent to C’s
signed long long
(long long
) type. - Equivalent to C’s
unsigned char
type. - Equivalent to C’s
unsigned int
type. - Equivalent to C’s
unsigned long
type. - Equivalent to C’s
unsigned long long
type.