2023-08-06 18:34:36 +02:00
|
|
|
#![cfg(target_arch = "avr")]
|
|
|
|
#![no_std]
|
|
|
|
#![feature(c_size_t)]
|
2023-08-15 13:31:46 +02:00
|
|
|
//! This is the arduboy_rust crate
|
|
|
|
//! To get started import the [prelude] to your project.
|
|
|
|
//!
|
|
|
|
//! Import the module:
|
|
|
|
//! ```
|
|
|
|
//! use arduboy_rust::prelude::*;
|
|
|
|
//! ```
|
2023-08-15 15:30:11 +02:00
|
|
|
//! Inside the Wrapper-Project folder is a folder named src.
|
|
|
|
//! You can disable C++ libraries in the main.h file.
|
|
|
|
//! Just comment the unused library definition out.
|
|
|
|
//!
|
|
|
|
//! To get an idea, the ArduboyTones Library needs 2-3% of the flash memory.
|
|
|
|
//!
|
|
|
|
//! [Here is the link to the GitHub Repo](https://github.com/zenndev1337/rust-for-arduboy)
|
2023-08-15 11:34:37 +02:00
|
|
|
|
2023-08-06 18:34:36 +02:00
|
|
|
extern crate panic_halt;
|
2023-08-15 12:41:08 +02:00
|
|
|
pub mod hardware;
|
2023-08-06 18:34:36 +02:00
|
|
|
mod library;
|
|
|
|
pub mod prelude;
|
|
|
|
mod print;
|
2023-08-15 11:34:37 +02:00
|
|
|
pub use crate::library::arduboy2::{self, Arduboy2, Color, FONT_SIZE, HEIGHT, WIDTH};
|
2023-08-15 12:41:08 +02:00
|
|
|
pub use crate::library::arduboy_tone::{self, ArduboyTones};
|
2023-08-14 19:32:34 +02:00
|
|
|
pub use crate::library::eeprom::{EEPROM, EEPROMBYTE};
|
2023-08-15 13:31:46 +02:00
|
|
|
pub use crate::library::{arduino, c, sprites};
|