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
constraw pointer to a ardvoice tone as u8, without creating an intermediate reference. - Create a
constraw pointer to a sprite as u8, without creating an intermediate reference. - Create a
constraw pointer to a [u8;_] that saves text, without creating an intermediate reference. - Create a
constraw 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
constfor the A button - Just a
constfor the any - Just a
constfor the A button - Just a
constfor the B button - Just a
constfor the blue led - Just a
constfor the B button - Just a
constfor the DOWN button - Just a
constfor the DOWN button - The standard font size of the arduboy
- Just a
constfor the green led - The standard height of the arduboy
- Just a
constfor the LEFT button - Just a
constfor the LEFT button - Just a
constfor the red led - Just a
constfor led off - Just a
constfor led on - Just a
constfor the RIGHT button - Just a
constfor the RIGHT button - Just a
constfor the UP button - Just a
constfor 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_ttype, fromstddef.h(orcstddeffor C++). - Equivalent to C’s
chartype. - Equivalent to C’s
doubletype. - Equivalent to C’s
floattype. - 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 chartype. - Equivalent to C’s
unsigned inttype. - Equivalent to C’s
unsigned longtype. - Equivalent to C’s
unsigned long longtype.