Module arduboy_rust::prelude

source ·
Expand description

This is the important one to use this library effective in your project

Modules

  • This is the Module to interact in a save way with the Arduboy2 C++ library.
  • This is the Module to interact in a save way with the ArduboyTones C++ library.
  • A list of all six buttons available on the Arduboy
  • A list of all LED variables available
  • This is the module to interact in a save way with the Sprites C++ library.

Macros

  • This is the way to go if you want print some random text
  • 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 sprite as u16, without creating an intermediate reference.
  • Create a space for Progrem variable

Structs

  • 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 Arduboy2Audio C++ library.
  • This struct gives the library a understanding what Buttons on the Arduboy are.
  • This struct to store and read structs objects to eeprom memory.
  • Use this struct to store and read single bytes to/from eeprom memory.
  • This struct is used by a few Arduboy functions.
  • This struct is used by a few Arduboy functions.

Enums

  • This item is to chose between Black or White

Constants

  • Just a const for the A button
  • 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

Traits

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 Definitions

  • c_size_tExperimental
    Equivalent to C’s size_t type, from stddef.h (or cstddef 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.