From 6c70700ad7c0efa92099851baadabcba1432c83c Mon Sep 17 00:00:00 2001 From: ZennDev1337 Date: Mon, 9 Oct 2023 10:15:40 +0200 Subject: [PATCH] added all the examples for the FX library. changes in the Readme.md and updated the docs. --- Examples/ArduboyFX/fxdrawballs/src/lib.rs | 81 ++++++- README.md | 210 +++++++++--------- docs/doc/arduboy_rust/all.html | 2 +- .../arduboy2/constant.FONT_SIZE.html | 2 +- .../arduboy2/constant.HEIGHT.html | 2 +- .../arduboy_rust/arduboy2/constant.WIDTH.html | 2 +- .../doc/arduboy_rust/arduboy2/enum.Color.html | 12 +- docs/doc/arduboy_rust/arduboy2/index.html | 2 +- .../arduboy2/struct.Arduboy2.html | 116 +++++----- .../arduboy_rust/arduboy2/struct.Point.html | 4 +- .../arduboy_rust/arduboy2/struct.Rect.html | 4 +- .../arduboy_rust/arduboyfx/fx/fn.begin.html | 2 +- .../arduboyfx/fx/fn.begin_data.html | 2 +- .../arduboyfx/fx/fn.begin_data_save.html | 2 +- .../arduboy_rust/arduboyfx/fx/fn.display.html | 2 +- .../arduboyfx/fx/fn.display_clear.html | 2 +- .../arduboyfx/fx/fn.draw_bitmap.html | 2 +- .../arduboyfx/fx/fn.draw_char.html | 2 +- .../arduboyfx/fx/fn.draw_frame.html | 2 +- .../arduboyfx/fx/fn.draw_number.html | 2 +- .../arduboyfx/fx/fn.draw_string.html | 2 +- .../arduboyfx/fx/fn.read_data_array.html | 2 +- .../arduboyfx/fx/fn.set_cursor.html | 2 +- .../arduboyfx/fx/fn.set_cursor_range.html | 2 +- .../arduboyfx/fx/fn.set_cursor_x.html | 2 +- .../arduboyfx/fx/fn.set_cursor_y.html | 2 +- .../arduboyfx/fx/fn.set_font.html | 2 +- .../arduboyfx/fx/fn.set_frame.html | 2 +- docs/doc/arduboy_rust/arduboyfx/fx/index.html | 9 +- .../arduboyfx/fx/sidebar-items.js | 2 +- .../arduboyfx/trait.DrawableNumber.html | 2 +- docs/doc/arduboy_rust/constant.FONT_SIZE.html | 2 +- docs/doc/arduboy_rust/constant.HEIGHT.html | 2 +- docs/doc/arduboy_rust/constant.WIDTH.html | 2 +- docs/doc/arduboy_rust/enum.Color.html | 12 +- .../hardware/buttons/constant.A_BUTTON.html | 2 +- .../hardware/buttons/constant.B_BUTTON.html | 2 +- .../buttons/constant.DOWN_BUTTON.html | 2 +- .../buttons/constant.LEFT_BUTTON.html | 2 +- .../buttons/constant.RIGHT_BUTTON.html | 2 +- .../hardware/buttons/constant.UP_BUTTON.html | 2 +- .../arduboy_rust/hardware/buttons/index.html | 4 +- .../hardware/buttons/sidebar-items.js | 2 +- .../hardware/buttons/struct.ButtonSet.html | 12 +- .../arduboy_rust/heapless/struct.String.html | 2 +- .../doc/arduboy_rust/prelude/FX/fn.begin.html | 12 +- .../prelude/FX/fn.begin_data.html | 12 +- .../prelude/FX/fn.begin_data_save.html | 12 +- .../arduboy_rust/prelude/FX/fn.display.html | 12 +- .../prelude/FX/fn.display_clear.html | 12 +- .../prelude/FX/fn.draw_bitmap.html | 12 +- .../arduboy_rust/prelude/FX/fn.draw_char.html | 12 +- .../prelude/FX/fn.draw_frame.html | 12 +- .../prelude/FX/fn.draw_number.html | 12 +- .../prelude/FX/fn.draw_string.html | 12 +- .../prelude/FX/fn.read_data_array.html | 19 +- .../prelude/FX/fn.set_cursor.html | 12 +- .../prelude/FX/fn.set_cursor_range.html | 12 +- .../prelude/FX/fn.set_cursor_x.html | 12 +- .../prelude/FX/fn.set_cursor_y.html | 12 +- .../arduboy_rust/prelude/FX/fn.set_font.html | 12 +- .../arduboy_rust/prelude/FX/fn.set_frame.html | 12 +- .../prelude/arduboy2/constant.FONT_SIZE.html | 2 +- .../prelude/arduboy2/constant.HEIGHT.html | 2 +- .../prelude/arduboy2/constant.WIDTH.html | 2 +- .../prelude/arduboy2/enum.Color.html | 12 +- .../arduboy_rust/prelude/arduboy2/index.html | 2 +- .../prelude/arduboy2/struct.Arduboy2.html | 116 +++++----- .../prelude/arduboy2/struct.Point.html | 4 +- .../prelude/arduboy2/struct.Rect.html | 4 +- .../prelude/arduboyfx/fx/fn.begin.html | 2 +- .../prelude/arduboyfx/fx/fn.begin_data.html | 2 +- .../arduboyfx/fx/fn.begin_data_save.html | 2 +- .../prelude/arduboyfx/fx/fn.display.html | 2 +- .../arduboyfx/fx/fn.display_clear.html | 2 +- .../prelude/arduboyfx/fx/fn.draw_bitmap.html | 2 +- .../prelude/arduboyfx/fx/fn.draw_char.html | 2 +- .../prelude/arduboyfx/fx/fn.draw_frame.html | 2 +- .../prelude/arduboyfx/fx/fn.draw_number.html | 2 +- .../prelude/arduboyfx/fx/fn.draw_string.html | 2 +- .../arduboyfx/fx/fn.read_data_array.html | 2 +- .../prelude/arduboyfx/fx/fn.set_cursor.html | 2 +- .../arduboyfx/fx/fn.set_cursor_range.html | 2 +- .../prelude/arduboyfx/fx/fn.set_cursor_x.html | 2 +- .../prelude/arduboyfx/fx/fn.set_cursor_y.html | 2 +- .../prelude/arduboyfx/fx/fn.set_font.html | 2 +- .../prelude/arduboyfx/fx/fn.set_frame.html | 2 +- .../prelude/arduboyfx/fx/index.html | 9 +- .../prelude/arduboyfx/fx/sidebar-items.js | 2 +- .../arduboyfx/trait.DrawableNumber.html | 2 +- .../prelude/buttons/constant.A_BUTTON.html | 2 +- .../prelude/buttons/constant.B_BUTTON.html | 2 +- .../prelude/buttons/constant.DOWN_BUTTON.html | 2 +- .../prelude/buttons/constant.LEFT_BUTTON.html | 2 +- .../buttons/constant.RIGHT_BUTTON.html | 2 +- .../prelude/buttons/constant.UP_BUTTON.html | 2 +- .../arduboy_rust/prelude/buttons/index.html | 4 +- .../prelude/buttons/sidebar-items.js | 2 +- .../prelude/buttons/struct.ButtonSet.html | 12 +- .../prelude/constant.A_BUTTON.html | 2 +- .../prelude/constant.B_BUTTON.html | 2 +- .../prelude/constant.DOWN_BUTTON.html | 2 +- .../prelude/constant.FONT_SIZE.html | 2 +- .../arduboy_rust/prelude/constant.HEIGHT.html | 2 +- .../prelude/constant.LEFT_BUTTON.html | 2 +- .../prelude/constant.RIGHT_BUTTON.html | 2 +- .../prelude/constant.UP_BUTTON.html | 2 +- .../arduboy_rust/prelude/constant.WIDTH.html | 2 +- docs/doc/arduboy_rust/prelude/enum.Color.html | 12 +- .../arduboy_rust/prelude/fn.constrain.html | 2 +- docs/doc/arduboy_rust/prelude/index.html | 4 +- .../prelude/serial/fn.available.html | 11 +- .../arduboy_rust/prelude/serial/fn.begin.html | 5 +- .../arduboy_rust/prelude/serial/fn.end.html | 2 +- .../arduboy_rust/prelude/serial/fn.print.html | 5 +- .../prelude/serial/fn.println.html | 5 +- .../arduboy_rust/prelude/serial/fn.read.html | 17 +- .../prelude/serial/fn.read_as_utf8_str.html | 11 +- .../arduboy_rust/prelude/serial/index.html | 2 +- .../prelude/serial/trait.Serialprintable.html | 4 +- .../serial/trait.Serialprintlnable.html | 4 +- .../doc/arduboy_rust/prelude/sidebar-items.js | 2 +- .../arduboy_rust/prelude/struct.Arduboy2.html | 116 +++++----- .../prelude/struct.ButtonSet.html | 12 +- .../arduboy_rust/prelude/struct.Point.html | 4 +- .../doc/arduboy_rust/prelude/struct.Rect.html | 4 +- .../arduboy_rust/prelude/struct.String.html | 2 +- .../arduboy_rust/prelude/trait.Printable.html | 2 +- .../serial_print/fn.available.html | 11 +- .../arduboy_rust/serial_print/fn.begin.html | 5 +- .../doc/arduboy_rust/serial_print/fn.end.html | 2 +- .../arduboy_rust/serial_print/fn.print.html | 5 +- .../arduboy_rust/serial_print/fn.println.html | 5 +- .../arduboy_rust/serial_print/fn.read.html | 17 +- .../serial_print/fn.read_as_utf8_str.html | 11 +- docs/doc/arduboy_rust/serial_print/index.html | 2 +- .../serial_print/trait.Serialprintable.html | 4 +- .../serial_print/trait.Serialprintlnable.html | 4 +- docs/doc/arduboy_rust/struct.Arduboy2.html | 116 +++++----- docs/doc/help.html | 2 +- .../implementors/core/clone/trait.Clone.js | 2 +- docs/doc/implementors/core/cmp/trait.Ord.js | 2 +- .../implementors/core/cmp/trait.PartialEq.js | 2 +- .../implementors/core/cmp/trait.PartialOrd.js | 2 +- docs/doc/implementors/core/fmt/trait.Debug.js | 2 +- docs/doc/implementors/core/hash/trait.Hash.js | 2 +- .../implementors/core/marker/trait.Copy.js | 2 +- .../core/marker/trait.StructuralEq.js | 2 +- .../core/marker/trait.StructuralPartialEq.js | 2 +- docs/doc/search-index.js | 2 +- docs/doc/settings.html | 2 +- .../src/arduboy_rust/hardware/buttons.rs.html | 8 + .../src/arduboy_rust/library/arduboy2.rs.html | 74 +++++- .../arduboy_rust/library/arduboyfx/fx.rs.html | 52 ++++- docs/doc/src/arduboy_rust/prelude.rs.html | 12 +- .../doc/src/arduboy_rust/serial_print.rs.html | 42 ++-- import_config.h | 2 +- 157 files changed, 838 insertions(+), 768 deletions(-) diff --git a/Examples/ArduboyFX/fxdrawballs/src/lib.rs b/Examples/ArduboyFX/fxdrawballs/src/lib.rs index 1fa5896..5a4df17 100644 --- a/Examples/ArduboyFX/fxdrawballs/src/lib.rs +++ b/Examples/ArduboyFX/fxdrawballs/src/lib.rs @@ -1,5 +1,7 @@ #![no_std] #![allow(non_upper_case_globals)] + +use arduboy_rust::arduboyfx::fx_consts::{dbmMasked, dbmNormal}; //Include the Arduboy Library //Initialize the arduboy object use arduboy_rust::prelude::*; @@ -119,10 +121,10 @@ static mut circle_points: [Point; CIRCLE_POINTS as usize] = [ static mut camera: Point = Point { x: 0, y: 0 }; static mut map_location: Point = Point { x: 16, y: 16 }; struct Ball { - x: i8, - y: i8, - xspeed: i8, - yspeed: i8, + x: i16, + y: i16, + xspeed: i16, + yspeed: i16, } static mut ball: [Ball; MAX_BALLS as usize] = [ @@ -469,8 +471,8 @@ pub unsafe extern "C" fn setup() { arduboy.set_frame_rate(FRAME_RATE); fx::begin_data(FX_DATA_PAGE); ball.iter_mut().for_each(|b| { - b.x = random_less_than(113) as i8; - b.y = random_less_than(49) as i8; + b.x = random_less_than(113) as i16; + b.y = random_less_than(49) as i16; b.xspeed = 1; if random_less_than(100) > 49 { b.xspeed = -b.xspeed @@ -505,10 +507,75 @@ pub unsafe extern "C" fn loop_() { if arduboy.pressed(LEFT) && map_location.x > 16 { map_location.x -= 1; } - if arduboy.pressed(RIGHT) && map_location.x > 112 { + if arduboy.pressed(RIGHT) && map_location.x < 112 { map_location.x += 1; } camera.x = map_location.x + circle_points[pos as usize].x; camera.y = map_location.y + circle_points[pos as usize].y; + + // Draw tilemap + for y in 0..VISABLE_TILES_PER_COLUMN as i16 { + fx::read_data_array( + FX_DATA_TILEMAP, + (y + camera.y / tileHeight as i16) as u8, + (camera.x / tileWidth as i16) as u8, + tileWidth, + tilemap_buffer.as_ptr(), + VISABLE_TILES_PER_ROW as usize, + ); + + for x in 0..VISABLE_TILES_PER_ROW as i16 { + fx::draw_bitmap( + x * tileWidth as i16 - camera.x % tileWidth as i16, + y * tileHeight as i16 - camera.y % tileHeight as i16, + FX_DATA_TILES, + tilemap_buffer[x as usize], + dbmNormal, + ) + } + } + if !arduboy.not_pressed(UP) + && !arduboy.not_pressed(DOWN) + && !arduboy.not_pressed(LEFT) + && !arduboy.not_pressed(RIGHT) + { + pos += 1 % CIRCLE_POINTS; + if pos > 80 { + pos = 0 + } + } + for i in 0..balls_visible as usize { + fx::draw_bitmap(ball[i].x, ball[i].y, FX_DATA_BALLS, 0, dbmMasked); + } + for i in 0..balls_visible as usize { + if ball[i].xspeed > 0 { + ball[i].x += ball[i].xspeed; + if ball[i].x > WIDTH - ballWidth as i16 { + ball[i].x = WIDTH - ballWidth as i16; + ball[i].xspeed = -ball[i].xspeed; + } + } else { + ball[i].x += ball[i].xspeed; + if ball[i].x < 0 { + ball[i].x = 0; + ball[i].xspeed = -ball[i].xspeed; + } + } + + if ball[i].yspeed > 0 { + ball[i].y += ball[i].yspeed; + if ball[i].y > HEIGHT - ballHeight as i16 { + ball[i].y = HEIGHT - ballHeight as i16; + ball[i].yspeed = -ball[i].yspeed; + } + } else { + ball[i].y += ball[i].yspeed; + if ball[i].y < 0 { + ball[i].y = 0; + ball[i].yspeed = -ball[i].yspeed; + } + } + } + fx::display_clear(); } diff --git a/README.md b/README.md index 6141182..62f6644 100644 --- a/README.md +++ b/README.md @@ -3,13 +3,15 @@ Running Rust on the [Arduboy](https://arduboy.com/) miniature game system. The most important first. -I didn't create this project from scratch, @Seeker14491 the legend has already done a lot in his old project [ArduboyRust](https://github.com/Seeker14491/ArduboyRust) +I didn't create this project from scratch, @Seeker14491 the legend has already done a lot in his old +project [ArduboyRust](https://github.com/Seeker14491/ArduboyRust) I just updated and completed the project. ### What do i mean by completed? -I provided all the important functions from the [Arduboy2](https://github.com/MLXXXp/Arduboy2) library in a safe Rust API. +I provided all the important functions from the [Arduboy2](https://github.com/MLXXXp/Arduboy2) library in a safe Rust +API. Most of the Arduboy2 funktions can be called the same way like in C. @@ -30,19 +32,22 @@ add the following rule to the lsp settings : ```json { - "rust-analyzer.checkOnSave.allTargets": false + "rust-analyzer.checkOnSave.allTargets": false } ``` -If your using Visual Studio Code: Create a folder named `.vscode` and a file named `settings.json` inside. Past the setting above in the new file. (I have excluded my `.vscode` folder because I have many different settings there that you don't need) +If your using Visual Studio Code: Create a folder named `.vscode` and a file named `settings.json` inside. Past the +setting above in the new file. (I have excluded my `.vscode` folder because I have many different settings there that +you don't need) Your game is located in the Project/game folder. This is also the folder you are working in -Inside the game folder you will find a lib.rs file which contains the setup and loop function as you know it from a normal Arduboy C project. +Inside the game folder you will find a lib.rs file which contains the setup and loop function as you know it from a +normal Arduboy C project. You can find the Docs here: -- [arduboy-rust Crate Docs](https://zenndev1337.github.io/Rust-for-Arduboy/) +- [arduboy-rust Crate Docs](https://zenndev1337.github.io/Rust-for-Arduboy/) or you can use the following command to open the arduboy-rust Crate docs locally @@ -53,7 +58,8 @@ cargo doc -p arduboy-rust --open Most of the time you will use the prelude. There is listed witch funktionality you will have. -And last but not least there are multiple examples inside of the Examples folder which shows you how to use the functions. +And last but not least there are multiple examples inside of the Examples folder which shows you how to use the +functions. I will from time to time also upload my projects to the Example folder so you have as much ressurces as possible. ## Usage of the run tool @@ -62,134 +68,118 @@ I will from time to time also upload my projects to the Example folder so you ha requirements: -- [PlatformIO Core](https://docs.platformio.org/en/latest/core/installation/methods/pypi.html) must be installed -- The Arduboy must be plugged in -- You are in the root directory of this project +- [PlatformIO Core](https://docs.platformio.org/en/latest/core/installation/methods/pypi.html) must be installed +- The Arduboy must be plugged in +- You are in the root directory of this project -All builded `.hex` files are saved inside of `arduboy-rust/Wrapper-Project/build/.hex` after you uploaded them to the Arduboy. +All builded `.hex` files are saved inside of `arduboy-rust/Wrapper-Project/build/.hex` after you uploaded them +to the Arduboy. To upload your own game to the Arduboy use: Linux: ```bash -./run +./run ``` Windows: ```ps1 -.\run.bat +.\run.bat ``` -## Play ZennDev1337 Games +## List of all the Example Games: -### Dr. Boy +### ZennDev1337 Games -To upload snake to the Arduboy use: +- drboy -Linux: +### Rust Games -```bash -./run drboy -``` - -Windows: - -```ps1 -.\run.bat drboy -``` - -### Snake - -To upload snake to the Arduboy use: - -Linux: - -```bash -./run snake -``` - -Windows: - -```ps1 -.\run.bat snake -``` - -## Play Rust Games - -### I'm now a Rustacean <3 - -To upload rustacean to the Arduboy use: - -Linux: - -```bash -./run rustacean -``` - -Windows: - -```ps1 -.\run.bat rustacean -``` - -## Play Demo Games +- snake +- rustacean ### The demo games / tutorials from the official Arduboy forum [Rewritten in Rust] -- [Make Your Own Arduboy Game: Part 1 - Setting Up Your Computer](https://community.arduboy.com/t/make-your-own-arduboy-game-part-1-setting-up-your-computer/7924/1) -- [demo2] [Make Your Own Arduboy Game: Part 2 - Printing Text](https://community.arduboy.com/t/make-your-own-arduboy-game-part-2-printing-text/7925) -- [demo3] [Make Your Own Arduboy Game: Part 3 - Storing Data & Loops](https://community.arduboy.com/t/make-your-own-arduboy-game-part-3-storing-data-loops/7926) -- [demo4] [Make Your Own Arduboy Game: Part 4 - Questions & Button Input](https://community.arduboy.com/t/make-your-own-arduboy-game-part-4-questions-button-input/7927) -- [demo5] [Make Your Own Arduboy Game: Part 5 - Your First Game!](https://community.arduboy.com/t/make-your-own-arduboy-game-part-5-your-first-game/7928) -- [demo6] [Make Your Own Arduboy Game: Part 6 - Graphics!](https://community.arduboy.com/t/make-your-own-arduboy-game-part-6-graphics/7929) - Link for the [ZennDev1337 Tile Converter](https://zenndev1337.github.io/Rust-for-Arduboy/tile-converter.html) -- [demo7] [Make Your Own Arduboy Game: Part 7 - Make Pong From Scratch!](https://community.arduboy.com/t/make-your-own-arduboy-game-part-7-make-pong-from-scratch/7930) -- Prepare for demo9 [Make Your Own Arduboy Game: Part 8 - Starting DinoSmasher](https://community.arduboy.com/t/make-your-own-arduboy-game-part-8-starting-dinosmasher/7932) -- [demo9] [Make Your Own Arduboy Game: Part 9 - Mapping DinoSmasher](https://community.arduboy.com/t/make-your-own-arduboy-game-part-9-mapping-dinosmasher/7931) -- [eeprom] [Help, I’m struggling with EEPROM!](https://community.arduboy.com/t/help-im-struggling-with-eeprom/7178) -- [progmem] Usage of the big 28'000 Bytes flash memory for Bitmaps Sound sequeces and Text. -- [tone] [ArduboyTonesTest](https://github.com/MLXXXp/ArduboyTones/blob/master/examples/ArduboyTonesTest/ArduboyTonesTest.ino) +- [Make Your Own Arduboy Game: Part 1 - Setting Up Your Computer](https://community.arduboy.com/t/make-your-own-arduboy-game-part-1-setting-up-your-computer/7924/1) +- [demo2] [Make Your Own Arduboy Game: Part 2 - Printing Text](https://community.arduboy.com/t/make-your-own-arduboy-game-part-2-printing-text/7925) +- [demo3] [Make Your Own Arduboy Game: Part 3 - Storing Data & Loops](https://community.arduboy.com/t/make-your-own-arduboy-game-part-3-storing-data-loops/7926) +- [demo4] [Make Your Own Arduboy Game: Part 4 - Questions & Button Input](https://community.arduboy.com/t/make-your-own-arduboy-game-part-4-questions-button-input/7927) +- [demo5] [Make Your Own Arduboy Game: Part 5 - Your First Game!](https://community.arduboy.com/t/make-your-own-arduboy-game-part-5-your-first-game/7928) +- [demo6] [Make Your Own Arduboy Game: Part 6 - Graphics!](https://community.arduboy.com/t/make-your-own-arduboy-game-part-6-graphics/7929) + Link for the [ZennDev1337 Tile Converter](https://zenndev1337.github.io/Rust-for-Arduboy/tile-converter.html) +- [demo7] [Make Your Own Arduboy Game: Part 7 - Make Pong From Scratch!](https://community.arduboy.com/t/make-your-own-arduboy-game-part-7-make-pong-from-scratch/7930) +- Prepare for + demo9 [Make Your Own Arduboy Game: Part 8 - Starting DinoSmasher](https://community.arduboy.com/t/make-your-own-arduboy-game-part-8-starting-dinosmasher/7932) +- [demo9] [Make Your Own Arduboy Game: Part 9 - Mapping DinoSmasher](https://community.arduboy.com/t/make-your-own-arduboy-game-part-9-mapping-dinosmasher/7931) +- [eeprom] [Help, I’m struggling with EEPROM!](https://community.arduboy.com/t/help-im-struggling-with-eeprom/7178) +- [eeprom-byte] [Help, I’m struggling with EEPROM!](https://community.arduboy.com/t/help-im-struggling-with-eeprom/7178) +- [progmem] Usage of the big 28'000 Bytes flash memory for Bitmaps Sound sequeces and Text. +- [tone] [ArduboyTonesTest](https://github.com/MLXXXp/ArduboyTones/blob/master/examples/ArduboyTonesTest/ArduboyTonesTest.ino) -To upload a demo to the Arduboy use: +## Usage of the FX Chip + +requirements: + +``` +python3 -m pip install pyserial pillow +``` + +You need to create a fxdata folder in your project directory. + +Don't forget to uncomment the `ArduboyFX_Library` line in the `import_config.h` file. + +run Commands: + +``` +|Project_Dir +->fxdata +->src + ->lib.rs +>cargo.toml +``` + +You also need a fxdata.txt file in this new folder. + +See the examples in `Examples/ArduboyFX`. + +More information: + +- [Arduboy-Python-Utilities by MrBlinky](https://github.com/MrBlinky/Arduboy-Python-Utilities) + +run Commands: + +- `fxbuild` is used to build the fxdata.dat file. +- `fxupload` is used to upload the fxdata.dat file. +- `fxall` is used to build and upload the fxdata.dat file and build and upload the game all in one step. Linux: ```bash -./run demo2 -./run demo3 -./run demo4 -./run demo5 -./run demo6 -./run demo7 -./run demo9 -./run eeprom -./run eeprom-byte -./run progmem -./run tone +./run fxbuild +./run fxupload +./run fxall ``` Windows: ```ps1 -.\run.bat demo2 -.\run.bat demo3 -.\run.bat demo4 -.\run.bat demo5 -.\run.bat demo6 -.\run.bat demo7 -.\run.bat eeprom -.\run.bat eeprom-byte -.\run.bat progmem -.\run.bat tone +.\run.bat fxbuild +.\run.bat fxupload +.\run.bat fxall ``` +### Convert the fxdata.h file to Rust + +[FXdata Converter by ZennDev1337](https://zenndev1337.github.io/Rust-for-Arduboy/fxdata-converter.html) + # Create a new project In the root of the repo use the command: -(Don't use "-" in the name because of a cargo feature that takes the "-" and mixes sometimes with a "\_". You will have some weird behavior with the run tool.) +(Don't use "-" in the name because of a cargo feature that takes the "-" and mixes sometimes with a "\_". You will have +some weird behavior with the run tool.) ```bash cargo new --vcs=none --lib ./Project/newproject @@ -215,6 +205,7 @@ Next jump in your lib.rs file and add the following: //Include the Arduboy Library #[allow(unused_imports)] use arduboy_rust::prelude::*; + #[allow(dead_code)] const arduboy: Arduboy2 = Arduboy2::new(); @@ -261,30 +252,35 @@ To run and upload your game use the run tool ## Creating and building an Arduboy crate [Outdated] -You can find instructions on how all build steps work in detail here [ArduboyRust creating and building an arduboy crate](https://github.com/Seeker14491/ArduboyRust#creating-and-building-an-arduboy-crate) +You can find instructions on how all build steps work in detail +here [ArduboyRust creating and building an arduboy crate](https://github.com/Seeker14491/ArduboyRust#creating-and-building-an-arduboy-crate) ## Linking the static library to the Arduino C++ project [Outdated] -Instructions on how to link all the static libraries in the Arduino C++ project can be found here [ArduboyRust linking the static library to the arduino c++ project](https://github.com/Seeker14491/ArduboyRust#linking-the-static-library-to-the-arduino-c-project) +Instructions on how to link all the static libraries in the Arduino C++ project can be found +here [ArduboyRust linking the static library to the arduino c++ project](https://github.com/Seeker14491/ArduboyRust#linking-the-static-library-to-the-arduino-c-project) ## Credits -Thanks to @Seeker14491 who wrote [ArduboyRust](https://github.com/Seeker14491/ArduboyRust), the starting point for me to create my own project based on this project. (you are a hero <3) +Thanks to @Seeker14491 who wrote [ArduboyRust](https://github.com/Seeker14491/ArduboyRust), the starting point for me to +create my own project based on this project. (you are a hero <3) -Thanks to @simon-i1-h who wrote [arduboy-hello-rs](https://github.com/simon-i1-h/arduboy-hello-rs), the proof of concept that inspired me to try Rust on the Arduboy. +Thanks to @simon-i1-h who wrote [arduboy-hello-rs](https://github.com/simon-i1-h/arduboy-hello-rs), the proof of concept +that inspired me to try Rust on the Arduboy. ## License You can license it under either one of those licenses: -- Apache License, Version 2.0 - ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) -- MIT license - ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) +- Apache License, Version 2.0 + ([LICENSE-APACHE](LICENSE-APACHE) or http://www.apache.org/licenses/LICENSE-2.0) +- MIT license + ([LICENSE-MIT](LICENSE-MIT) or http://opensource.org/licenses/MIT) Whichever you may prefer. ## Contribution Unless you explicitly state otherwise, any contribution intentionally submitted -for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions. +for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any +additional terms or conditions. diff --git a/docs/doc/arduboy_rust/all.html b/docs/doc/arduboy_rust/all.html index 9df6359..0c7790b 100644 --- a/docs/doc/arduboy_rust/all.html +++ b/docs/doc/arduboy_rust/all.html @@ -1 +1 @@ -List of all items in this crate

List of all items

Structs

Enums

Traits

Macros

Functions

Type Definitions

Constants

\ No newline at end of file +List of all items in this crate

List of all items

Structs

Enums

Traits

Macros

Functions

Type Definitions

Constants

\ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboy2/constant.FONT_SIZE.html b/docs/doc/arduboy_rust/arduboy2/constant.FONT_SIZE.html index 13366a4..7d72d50 100644 --- a/docs/doc/arduboy_rust/arduboy2/constant.FONT_SIZE.html +++ b/docs/doc/arduboy_rust/arduboy2/constant.FONT_SIZE.html @@ -1,3 +1,3 @@ -FONT_SIZE in arduboy_rust::arduboy2 - Rust
pub const FONT_SIZE: u8 = 6;
Expand description

The standard font size of the arduboy

+FONT_SIZE in arduboy_rust::arduboy2 - Rust
pub const FONT_SIZE: u8 = 6;
Expand description

The standard font size of the arduboy

this is to calculate with it.

\ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboy2/constant.HEIGHT.html b/docs/doc/arduboy_rust/arduboy2/constant.HEIGHT.html index 9ad2f3e..fe19e9c 100644 --- a/docs/doc/arduboy_rust/arduboy2/constant.HEIGHT.html +++ b/docs/doc/arduboy_rust/arduboy2/constant.HEIGHT.html @@ -1,3 +1,3 @@ -HEIGHT in arduboy_rust::arduboy2 - Rust

Constant arduboy_rust::arduboy2::HEIGHT

source ·
pub const HEIGHT: i16 = 64;
Expand description

The standard height of the arduboy

+HEIGHT in arduboy_rust::arduboy2 - Rust

Constant arduboy_rust::arduboy2::HEIGHT

source ·
pub const HEIGHT: i16 = 64;
Expand description

The standard height of the arduboy

this is to calculate with it.

\ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboy2/constant.WIDTH.html b/docs/doc/arduboy_rust/arduboy2/constant.WIDTH.html index 7cd0e0f..62e2079 100644 --- a/docs/doc/arduboy_rust/arduboy2/constant.WIDTH.html +++ b/docs/doc/arduboy_rust/arduboy2/constant.WIDTH.html @@ -1,3 +1,3 @@ -WIDTH in arduboy_rust::arduboy2 - Rust

Constant arduboy_rust::arduboy2::WIDTH

source ·
pub const WIDTH: i16 = 128;
Expand description

The standard width of the arduboy

+WIDTH in arduboy_rust::arduboy2 - Rust

Constant arduboy_rust::arduboy2::WIDTH

source ·
pub const WIDTH: i16 = 128;
Expand description

The standard width of the arduboy

this is to calculate with it.

\ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboy2/enum.Color.html b/docs/doc/arduboy_rust/arduboy2/enum.Color.html index 2a79556..25f498f 100644 --- a/docs/doc/arduboy_rust/arduboy2/enum.Color.html +++ b/docs/doc/arduboy_rust/arduboy2/enum.Color.html @@ -1,19 +1,19 @@ -Color in arduboy_rust::arduboy2 - Rust
#[repr(u8)]
pub enum Color { +Color in arduboy_rust::arduboy2 - Rust
#[repr(u8)]
pub enum Color { Black, White, }
Expand description

This item is to chose between Black or White

Variants§

§

Black

Led is off

§

White

Led is on

-

Trait Implementations§

source§

impl Clone for Color

source§

fn clone(&self) -> Color

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Color

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for Color

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given [Hasher]. Read more
1.3.0§

fn hash_slice<H>(data: &[Self], state: &mut H)where +

Trait Implementations§

source§

impl Clone for Color

source§

fn clone(&self) -> Color

Returns a copy of the value. Read more
1.0.0§

fn clone_from(&mut self, source: &Self)

Performs copy-assignment from source. Read more
source§

impl Debug for Color

source§

fn fmt(&self, f: &mut Formatter<'_>) -> Result

Formats the value using the given formatter. Read more
source§

impl Hash for Color

source§

fn hash<__H: Hasher>(&self, state: &mut __H)

Feeds this value into the given [Hasher]. Read more
1.3.0§

fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, - Self: Sized,

Feeds a slice of this type into the given [Hasher]. Read more
source§

impl Not for Color

§

type Output = Color

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl Ord for Color

source§

fn cmp(&self, other: &Color) -> Ordering

This method returns an [Ordering] between self and other. Read more
1.21.0§

fn max(self, other: Self) -> Selfwhere + Self: Sized,

Feeds a slice of this type into the given [Hasher]. Read more
source§

impl Not for Color

§

type Output = Color

The resulting type after applying the ! operator.
source§

fn not(self) -> Self::Output

Performs the unary ! operation. Read more
source§

impl Ord for Color

source§

fn cmp(&self, other: &Color) -> Ordering

This method returns an [Ordering] between self and other. Read more
1.21.0§

fn max(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the maximum of two values. Read more
1.21.0§

fn min(self, other: Self) -> Selfwhere Self: Sized,

Compares and returns the minimum of two values. Read more
1.50.0§

fn clamp(self, min: Self, max: Self) -> Selfwhere - Self: Sized + PartialOrd<Self>,

Restrict a value to a certain interval. Read more
source§

impl PartialEq<Color> for Color

source§

fn eq(&self, other: &Color) -> bool

This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd<Self>,
Restrict a value to a certain interval. Read more
source§

impl PartialEq<Color> for Color

source§

fn eq(&self, other: &Color) -> bool

This method tests for self and other values to be equal, and is used by ==.
1.0.0§

fn ne(&self, other: &Rhs) -> bool

This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Color> for Color

source§

fn partial_cmp(&self, other: &Color) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
source§

impl PartialOrd<Color> for Color

source§

fn partial_cmp(&self, other: &Color) -> Option<Ordering>

This method returns an ordering between self and other values if one exists. Read more
1.0.0§

fn lt(&self, other: &Rhs) -> bool

This method tests less than (for self and other) and is used by the < operator. Read more
1.0.0§

fn le(&self, other: &Rhs) -> bool

This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
1.0.0§

fn gt(&self, other: &Rhs) -> bool

This method tests greater than (for self and other) and is used by the > operator. Read more
1.0.0§

fn ge(&self, other: &Rhs) -> bool

This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
source§

impl Copy for Color

source§

impl Eq for Color

source§

impl StructuralEq for Color

source§

impl StructuralPartialEq for Color

Auto Trait Implementations§

§

impl RefUnwindSafe for Color

§

impl Send for Color

§

impl Sync for Color

§

impl Unpin for Color

§

impl UnwindSafe for Color

Blanket Implementations§

§

impl<T> Any for Twhere +operator. Read more

source§

impl Copy for Color

source§

impl Eq for Color

source§

impl StructuralEq for Color

source§

impl StructuralPartialEq for Color

Auto Trait Implementations§

§

impl RefUnwindSafe for Color

§

impl Send for Color

§

impl Sync for Color

§

impl Unpin for Color

§

impl UnwindSafe for Color

Blanket Implementations§

§

impl<T> Any for Twhere T: 'static + ?Sized,

§

fn type_id(&self) -> TypeId

Gets the TypeId of self. Read more
§

impl<T> Borrow<T> for Twhere T: ?Sized,

§

fn borrow(&self) -> &T

Immutably borrows from an owned value. Read more
§

impl<T> BorrowMut<T> for Twhere T: ?Sized,

§

fn borrow_mut(&mut self) -> &mut T

Mutably borrows from an owned value. Read more
§

impl<T> From<T> for T

§

fn from(t: T) -> T

Returns the argument unchanged.

diff --git a/docs/doc/arduboy_rust/arduboy2/index.html b/docs/doc/arduboy_rust/arduboy2/index.html index 3cb29c1..eb9cd96 100644 --- a/docs/doc/arduboy_rust/arduboy2/index.html +++ b/docs/doc/arduboy_rust/arduboy2/index.html @@ -1,3 +1,3 @@ -arduboy_rust::arduboy2 - Rust

Module arduboy_rust::arduboy2

source ·
Expand description

This is the Module to interact in a save way with the Arduboy2 C++ library.

+arduboy_rust::arduboy2 - Rust

Module arduboy_rust::arduboy2

source ·
Expand description

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.

Structs

  • This is the struct to interact in a save way with the Arduboy2 C++ library.
  • 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

  • The standard font size of the arduboy
  • The standard height of the arduboy
  • The standard width of the arduboy
\ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboy2/struct.Arduboy2.html b/docs/doc/arduboy_rust/arduboy2/struct.Arduboy2.html index 8914634..894f1a6 100644 --- a/docs/doc/arduboy_rust/arduboy2/struct.Arduboy2.html +++ b/docs/doc/arduboy_rust/arduboy2/struct.Arduboy2.html @@ -1,17 +1,17 @@ -Arduboy2 in arduboy_rust::arduboy2 - Rust
pub struct Arduboy2 {}
Expand description

This is the struct to interact in a save way with the Arduboy2 C++ library.

-

Implementations§

source§

impl Arduboy2

source

pub const fn new() -> Self

gives you a new instance of the Arduboy2

+Arduboy2 in arduboy_rust::arduboy2 - Rust
pub struct Arduboy2 {}
Expand description

This is the struct to interact in a save way with the Arduboy2 C++ library.

+

Implementations§

source§

impl Arduboy2

source

pub const fn new() -> Self

gives you a new instance of the Arduboy2

Example
#![allow(non_upper_case_globals)]
 use arduboy_rust::prelude::*;
 const arduboy: Arduboy2 = Arduboy2::new();
-
source

pub fn begin(&self)

Initialize the hardware, display the boot logo, provide boot utilities, etc. +

source

pub fn begin(&self)

Initialize the hardware, display the boot logo, provide boot utilities, etc. This function should be called once near the start of the sketch, usually in setup(), before using any other functions in this class. It initializes the display, displays the boot logo, provides “flashlight” and system control features and initializes audio control.

-
source

pub fn clear(&self)

Clear the display buffer and set the text cursor to location 0, 0.

-
source

pub fn display(&self)

Copy the contents of the display buffer to the display. +

source

pub fn clear(&self)

Clear the display buffer and set the text cursor to location 0, 0.

+
source

pub fn display(&self)

Copy the contents of the display buffer to the display. The contents of the display buffer in RAM are copied to the display and will appear on the screen.

-
source

pub fn display_and_clear_buffer(&self)

Copy the contents of the display buffer to the display. The display buffer will be cleared to zero.

+
source

pub fn display_and_clear_buffer(&self)

Copy the contents of the display buffer to the display. The display buffer will be cleared to zero.

Operation is the same as calling display() without parameters except additionally the display buffer will be cleared.

-
source

pub fn draw_fast_hline(&self, x: i16, y: i16, w: u8, color: Color)

Draw a horizontal line.

+
source

pub fn draw_fast_hline(&self, x: i16, y: i16, w: u8, color: Color)

Draw a horizontal line.

Parameters:
  • x The X coordinate of the left start point.
  • @@ -19,7 +19,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • w The width of the line.

color The color of the line (optional; defaults to WHITE).

-
source

pub fn draw_fast_vline(&self, x: i16, y: i16, h: u8, color: Color)

Draw a vertical line.

+
source

pub fn draw_fast_vline(&self, x: i16, y: i16, h: u8, color: Color)

Draw a vertical line.

Parameters:
  • x The X coordinate of the left start point.
  • @@ -27,7 +27,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • h The height of the line.

color The color of the line (optional; defaults to WHITE).

-
source

pub fn draw_pixel(&self, x: i16, y: i16, color: Color)

Set a single pixel in the display buffer to the specified color.

+
source

pub fn draw_pixel(&self, x: i16, y: i16, color: Color)

Set a single pixel in the display buffer to the specified color.

Parameters
  • x The X coordinate of the pixel.
  • @@ -35,7 +35,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • color The color of the pixel (optional; defaults to WHITE).

The single pixel specified location in the display buffer is set to the specified color. The values WHITE or BLACK can be used for the color. If the color parameter isn’t included, the pixel will be set to WHITE.

-
source

pub fn fill_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

Draw a filled-in rectangle of a specified width and height.

+
source

pub fn fill_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

Draw a filled-in rectangle of a specified width and height.

Parameters
  • x The X coordinate of the upper left corner.
  • @@ -44,7 +44,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • h The height of the rectangle.

color The color of the pixel (optional; defaults to WHITE).

-
source

pub fn draw_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

Draw a rectangle of a specified width and height.

+
source

pub fn draw_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

Draw a rectangle of a specified width and height.

Parameters

  • x The X coordinate of the upper left corner.
  • @@ -53,7 +53,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • h The height of the rectangle.
  • color The color of the pixel (optional; defaults to WHITE).
-
source

pub fn draw_circle(&self, x: i16, y: i16, r: u8, color: Color)

Draw a circle of a given radius.

+
source

pub fn draw_circle(&self, x: i16, y: i16, r: u8, color: Color)

Draw a circle of a given radius.

Parameters

  • x0 The X coordinate of the circle’s center.
  • @@ -61,7 +61,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • r The radius of the circle in pixels.
  • color The circle’s color (optional; defaults to WHITE).
-
source

pub fn fill_circle(&self, x: i16, y: i16, r: u8, color: Color)

Draw a filled-in circle of a given radius.

+
source

pub fn fill_circle(&self, x: i16, y: i16, r: u8, color: Color)

Draw a filled-in circle of a given radius.

Parameters
  • x The X coordinate of the circle’s center.
  • @@ -69,7 +69,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • r The radius of the circle in pixels.

color The circle’s color (optional; defaults to WHITE).

-
source

pub fn fill_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

Draw a filled-in rectangle with rounded corners.

+
source

pub fn fill_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

Draw a filled-in rectangle with rounded corners.

Parameters

  • x The X coordinate of the left edge.
  • @@ -79,7 +79,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • r The radius of the semicircles forming the corners.
  • color The color of the rectangle (optional; defaults to WHITE).
-
source

pub fn draw_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

Draw a rectangle with rounded corners.

+
source

pub fn draw_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

Draw a rectangle with rounded corners.

Parameters

  • x The X coordinate of the left edge.
  • @@ -89,7 +89,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • r The radius of the semicircles forming the corners.
  • color The color of the rectangle (optional; defaults to WHITE).
-
source

pub fn draw_triangle( +

source

pub fn draw_triangle( &self, x0: i16, y0: i16, @@ -106,7 +106,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • color The triangle’s color (optional; defaults to WHITE).
  • A triangle is drawn by specifying each of the three corner locations. The corners can be at any position with respect to the others.

    -

    source

    pub fn fill_triangle( +

    source

    pub fn fill_triangle( &self, x0: i16, y0: i16, @@ -123,7 +123,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • color The triangle’s color (optional; defaults to WHITE).
  • A triangle is drawn by specifying each of the three corner locations. The corners can be at any position with respect to the others.

    -

    source

    pub fn get_pixel(&self, x: u8, y: u8) -> Color

    Returns the state of the given pixel in the screen buffer.

    +
    source

    pub fn get_pixel(&self, x: u8, y: u8) -> Color

    Returns the state of the given pixel in the screen buffer.

    Parameters
    • x The X coordinate of the pixel.
    • @@ -131,9 +131,9 @@ The contents of the display buffer in RAM are copied to the display and will app
    Returns

    WHITE if the pixel is on or BLACK if the pixel is off.

    -
    source

    pub fn init_random_seed(&self)

    Seed the random number generator with a random value.

    +
    source

    pub fn init_random_seed(&self)

    Seed the random number generator with a random value.

    The Arduino pseudorandom number generator is seeded with the random value returned from a call to generateRandomSeed().

    -
    source

    pub fn just_pressed(&self, button: ButtonSet) -> bool

    Check if a button has just been pressed.

    +
    source

    pub fn just_pressed(&self, button: ButtonSet) -> bool

    Check if a button has just been pressed.

    Parameters
    • button The button to test for. Only one button should be specified.
    • @@ -143,7 +143,7 @@ The contents of the display buffer in RAM are copied to the display and will app

      Return true if the given button was pressed between the latest call to pollButtons() and previous call to pollButtons(). If the button has been held down over multiple polls, this function will return false.

      There is no need to check for the release of the button since it must have been released for this function to return true when pressed again.

      This function should only be used to test a single button.

      -
    source

    pub fn just_released(&self, button: ButtonSet) -> bool

    Check if a button has just been released.

    +
    source

    pub fn just_released(&self, button: ButtonSet) -> bool

    Check if a button has just been released.

    Parameters
    • button The button to test for. Only one button should be specified.
    • @@ -153,7 +153,7 @@ The contents of the display buffer in RAM are copied to the display and will app

      Return true if the given button was released between the latest call to pollButtons() and previous call to pollButtons(). If the button has been held down over multiple polls, this function will return false.

      There is no need to check for the released of the button since it must have been pressed for this function to return true when pressed again.

      This function should only be used to test a single button.

      -
    source

    pub fn not_pressed(&self, button: ButtonSet) -> bool

    Test if the specified buttons are not pressed.

    +
    source

    pub fn not_pressed(&self, button: ButtonSet) -> bool

    Test if the specified buttons are not pressed.

    Parameters
    • buttons A bit mask indicating which buttons to test. (Can be a single button)
    • @@ -161,16 +161,16 @@ The contents of the display buffer in RAM are copied to the display and will app
      Returns

      True if all buttons in the provided mask are currently released.

      Read the state of the buttons and return true if all the buttons in the specified mask are currently released.

      -
    source

    pub fn next_frame(&self) -> bool

    Indicate that it’s time to render the next frame.

    +
    source

    pub fn next_frame(&self) -> bool

    Indicate that it’s time to render the next frame.

    Returns

    true if it’s time for the next frame.

    When this function returns true, the amount of time has elapsed to display the next frame, as specified by setFrameRate() or setFrameDuration().

    This function will normally be called at the start of the rendering loop which would wait for true to be returned before rendering and displaying the next frame.

    -
    source

    pub fn poll_buttons(&self)

    Poll the buttons and track their state over time.

    +
    source

    pub fn poll_buttons(&self)

    Poll the buttons and track their state over time.

    Read and save the current state of the buttons and also keep track of the button state when this function was previously called. These states are used by the justPressed() and justReleased() functions to determine if a button has changed state between now and the previous call to pollButtons().

    This function should be called once at the start of each new frame.

    The justPressed() and justReleased() functions rely on this function.

    -
    source

    pub fn pressed(&self, button: ButtonSet) -> bool

    Test if the all of the specified buttons are pressed.

    +
    source

    pub fn pressed(&self, button: ButtonSet) -> bool

    Test if the all of the specified buttons are pressed.

    Parameters
    • buttons A bit mask indicating which buttons to test. (Can be a single button)
    • @@ -178,7 +178,7 @@ The contents of the display buffer in RAM are copied to the display and will app
      Returns

      true if all buttons in the provided mask are currently pressed.

      Read the state of the buttons and return true if all of the buttons in the specified mask are being pressed.

      -
    source

    pub fn print(&self, x: impl Printable)

    The Arduino Print class is available for writing text to the screen buffer.

    +
    source

    pub fn print(&self, x: impl Printable)

    The Arduino Print class is available for writing text to the screen buffer.

    For an Arduboy2 class object, functions provided by the Arduino Print class can be used to write text to the screen buffer, in the same manner as the Arduino Serial.print(), etc., functions.

    Print will use the write() function to actually draw each character in the screen buffer, using the library’s font5x7 font. Two character values are handled specially:

      @@ -188,7 +188,7 @@ The contents of the display buffer in RAM are copied to the display and will app
      Example
      #![allow(non_upper_case_globals)]
       use arduboy_rust::prelude::*;
      -const arduboy:Arduboy2 =Arduboy2::new();
      +const arduboy: Arduboy2 = Arduboy2::new();
       let value: i16 = 42;
       
       arduboy.print(b"Hello World\n\0"[..]); // Prints "Hello World" and then sets the
      @@ -197,7 +197,7 @@ arduboy.print(b"Hello World\n\0"[..]); arduboy.print(value); // Prints "42"
       arduboy.print("\n\0"); // Sets the text cursor to the start of the next line
       arduboy.print("hello world") // Prints normal [&str]
      -
    source

    pub fn set_cursor(&self, x: i16, y: i16)

    Set the location of the text cursor.

    +
    source

    pub fn set_cursor(&self, x: i16, y: i16)

    Set the location of the text cursor.

    Parameters
    • @@ -208,41 +208,41 @@ arduboy.print(b"Hello World\n\0"[..]);

    The location of the text cursor is set the the specified coordinates. The coordinates are in pixels. Since the coordinates can specify any pixel location, the text does not have to be placed on specific rows. As with all drawing functions, location 0, 0 is the top left corner of the display. The cursor location represents the top left corner of the next character written.

    -
    source

    pub fn set_frame_rate(&self, rate: u8)

    Set the frame rate used by the frame control functions.

    +
    source

    pub fn set_frame_rate(&self, rate: u8)

    Set the frame rate used by the frame control functions.

    Parameters
    • rate The desired frame rate in frames per second.

    Normally, the frame rate would be set to the desired value once, at the start of the game, but it can be changed at any time to alter the frame update rate.

    -
    source

    pub fn set_text_size(&self, size: u8)

    Set the text character size.

    +
    source

    pub fn set_text_size(&self, size: u8)

    Set the text character size.

    Parameters
    • s The text size multiplier. Must be 1 or higher.

    Setting a text size of 1 will result in standard size characters with one pixel for each bit in the bitmap for a character. The value specified is a multiplier. A value of 2 will double the width and height. A value of 3 will triple the dimensions, etc.

    -
    source

    pub fn audio_on(&self)

    Turn sound on.

    +
    source

    pub fn audio_on(&self)

    Turn sound on.

    The system is configured to generate sound. This function sets the sound mode only until the unit is powered off.

    -
    source

    pub fn audio_off(&self)

    Turn sound off (mute).

    +
    source

    pub fn audio_off(&self)

    Turn sound off (mute).

    The system is configured to not produce sound (mute). This function sets the sound mode only until the unit is powered off.

    -
    source

    pub fn audio_save_on_off(&self)

    Save the current sound state in EEPROM.

    +
    source

    pub fn audio_save_on_off(&self)

    Save the current sound state in EEPROM.

    The current sound state, set by on() or off(), is saved to the reserved system area in EEPROM. This allows the state to carry over between power cycles and after uploading a different sketch.

    Note EEPROM is limited in the number of times it can be written to. Sketches should not continuously change and then save the state rapidly.

    -
    source

    pub fn audio_toggle(&self)

    Toggle the sound on/off state.

    +
    source

    pub fn audio_toggle(&self)

    Toggle the sound on/off state.

    If the system is configured for sound on, it will be changed to sound off (mute). If sound is off, it will be changed to on. This function sets the sound mode only until the unit is powered off. To save the current mode use saveOnOff().

    -
    source

    pub fn audio_on_and_save(&self)

    Combines the use function of audio_on() and audio_save_on_off()

    -
    source

    pub fn audio_enabled(&self) -> bool

    Get the current sound state.

    +
    source

    pub fn audio_on_and_save(&self)

    Combines the use function of audio_on() and audio_save_on_off()

    +
    source

    pub fn audio_enabled(&self) -> bool

    Get the current sound state.

    Returns

    true if sound is currently enabled (not muted).

    This function should be used by code that actually generates sound. If true is returned, sound can be produced. If false is returned, sound should be muted.

    -
    source

    pub fn invert(&self, inverse: bool)

    Invert the entire display or set it back to normal.

    +
    source

    pub fn invert(&self, inverse: bool)

    Invert the entire display or set it back to normal.

    Parameters
    • inverse true will invert the display. false will set the display to no-inverted.

    Calling this function with a value of true will set the display to inverted mode. A pixel with a value of 0 will be on and a pixel set to 1 will be off.

    Once in inverted mode, the display will remain this way until it is set back to non-inverted mode by calling this function with false.

    -
    source

    pub fn collide_point(&self, point: Point, rect: Rect) -> bool

    Test if a point falls within a rectangle.

    +
    source

    pub fn collide_point(&self, point: Point, rect: Rect) -> bool

    Test if a point falls within a rectangle.

    Parameters

    • point A structure describing the location of the point.
    • @@ -251,7 +251,7 @@ EEPROM is limited in the number of times it can be written to. Sketches should n

      Returns true if the specified point is within the specified rectangle.

      This function is intended to detemine if an object, whose boundaries are defined by the given rectangle, is in contact with the given point.

      -
    source

    pub fn collide_rect(&self, rect1: Rect, rect2: Rect) -> bool

    Test if a rectangle is intersecting with another rectangle.

    +
    source

    pub fn collide_rect(&self, rect1: Rect, rect2: Rect) -> bool

    Test if a rectangle is intersecting with another rectangle.

    Parameters

    • rect1,rect2 Structures describing the size and locations of the rectangles.
    • @@ -259,14 +259,14 @@ true if the specified point is within the specified rectangle.

      Returns true if the first rectangle is intersecting the second.

      This function is intended to detemine if an object, whose boundaries are defined by the given rectangle, is in contact with another rectangular object.

      -
    source

    pub fn digital_write_rgb_single(&self, color: u8, val: u8)

    Set one of the RGB LEDs digitally, to either fully on or fully off.

    +
    source

    pub fn digital_write_rgb_single(&self, color: u8, val: u8)

    Set one of the RGB LEDs digitally, to either fully on or fully off.

    Parameters

    • color The name of the LED to set. The value given should be one of RED_LED, GREEN_LED or BLUE_LED.
    • val Indicates whether to turn the specified LED on or off. The value given should be RGB_ON or RGB_OFF.

    This 2 parameter version of the function will set a single LED within the RGB LED either fully on or fully off. See the description of the 3 parameter version of this function for more details on the RGB LED.

    -
    source

    pub fn digital_write_rgb(&self, red: u8, green: u8, blue: u8)

    Set the RGB LEDs digitally, to either fully on or fully off.

    +
    source

    pub fn digital_write_rgb(&self, red: u8, green: u8, blue: u8)

    Set the RGB LEDs digitally, to either fully on or fully off.

    Parameters

    • red,green,blue Use value RGB_ON or RGB_OFF to set each LED.
    • @@ -282,7 +282,7 @@ true if the first rectangle is intersecting the second.

      RGB_ON RGB_OFF RGB_ON Magenta RGB_ON RGB_ON RGB_OFF Yellow RGB_ON RGB_ON RGB_ON White -
    source

    pub fn set_rgb_led_single(&self, color: u8, val: u8)

    Set the brightness of one of the RGB LEDs without affecting the others.

    +
    source

    pub fn set_rgb_led_single(&self, color: u8, val: u8)

    Set the brightness of one of the RGB LEDs without affecting the others.

    Parameters

    • color The name of the LED to set. The value given should be one of RED_LED, GREEN_LED or BLUE_LED.
    • @@ -293,7 +293,7 @@ true if the first rectangle is intersecting the second.

      In order to use this function, the 3 parameter version must first be called at least once, in order to initialize the hardware.

      This 2 parameter version of the function will set the brightness of a single LED within the RGB LED without affecting the current brightness of the other two. See the description of the 3 parameter version of this function for more details on the RGB LED.

      -
    source

    pub fn set_rgb_led(&self, red: u8, green: u8, blue: u8)

    Set the light output of the RGB LED.

    +
    source

    pub fn set_rgb_led(&self, red: u8, green: u8, blue: u8)

    Set the light output of the RGB LED.

    Parameters

    • red,green,blue The brightness value for each LED.
    • @@ -307,7 +307,7 @@ true if the first rectangle is intersecting the second.

      Many of the Kickstarter Arduboys were accidentally shipped with the RGB LED installed incorrectly. For these units, the green LED cannot be lit. As long as the green led is set to off, setting the red LED will actually control the blue LED and setting the blue LED will actually control the red LED. If the green LED is turned fully on, none of the LEDs will light.

      -
    source

    pub fn every_x_frames(&self, frames: u8) -> bool

    Indicate if the specified number of frames has elapsed.

    +
    source

    pub fn every_x_frames(&self, frames: u8) -> bool

    Indicate if the specified number of frames has elapsed.

    Parameters

    • frames The desired number of elapsed frames.
    • @@ -320,60 +320,70 @@ true if the specified number of frames has elapsed.

       #![allow(non_upper_case_globals)]
        use arduboy_rust::prelude::*;
      - const arduboy:Arduboy2 =Arduboy2::new();
      + const arduboy: Arduboy2 = Arduboy2::new();
       
        if arduboy.everyXFrames(5) {
            if arduboy.pressed(A_BUTTON) {
                //fireShot(); // just some example
            }
        }
      -
    source

    pub fn flip_vertical(&self, flipped: bool)

    Flip the display vertically or set it back to normal.

    +
    source

    pub fn flip_vertical(&self, flipped: bool)

    Flip the display vertically or set it back to normal.

    Parameters

    • flipped true will set vertical flip mode. false will set normal vertical orientation.

    Calling this function with a value of true will cause the Y coordinate to start at the bottom edge of the display instead of the top, effectively flipping the display vertically.

    Once in vertical flip mode, it will remain this way until normal vertical mode is set by calling this function with a value of false.

    -
    source

    pub fn flip_horizontal(&self, flipped: bool)

    Flip the display horizontally or set it back to normal.

    +
    source

    pub fn flip_horizontal(&self, flipped: bool)

    Flip the display horizontally or set it back to normal.

    Parameters

    • flipped true will set horizontal flip mode. false will set normal horizontal orientation.

    Calling this function with a value of true will cause the X coordinate to start at the left edge of the display instead of the right, effectively flipping the display horizontally.

    Once in horizontal flip mode, it will remain this way until normal horizontal mode is set by calling this function with a value of false.

    -
    source

    pub fn set_text_color(&self, color: Color)

    Set the text foreground color.

    +
    source

    pub fn set_text_color(&self, color: Color)

    Set the text foreground color.

    Parameters

    • color The color to be used for following text. The values WHITE or BLACK should be used.
    -
    source

    pub fn set_text_background_color(&self, color: Color)

    Set the text background color.

    +
    source

    pub fn set_text_background_color(&self, color: Color)

    Set the text background color.

    Parameters

    • color The background color to be used for following text. The values WHITE or BLACK should be used.

    The background pixels of following characters will be set to the specified color.

    However, if the background color is set to be the same as the text color, the background will be transparent. Only the foreground pixels will be drawn. The background pixels will remain as they were before the character was drawn.

    -
    source

    pub fn set_cursor_x(&self, x: i16)

    Set the X coordinate of the text cursor location.

    +
    source

    pub fn set_cursor_x(&self, x: i16)

    Set the X coordinate of the text cursor location.

    Parameters

    • x The X (horizontal) coordinate, in pixels, for the new location of the text cursor.

    The X coordinate for the location of the text cursor is set to the specified value, leaving the Y coordinate unchanged. For more details about the text cursor, see the setCursor() function.

    -
    source

    pub fn set_cursor_y(&self, y: i16)

    Set the Y coordinate of the text cursor location.

    +
    source

    pub fn set_cursor_y(&self, y: i16)

    Set the Y coordinate of the text cursor location.

    Parameters

    • y The Y (vertical) coordinate, in pixels, for the new location of the text cursor.

    The Y coordinate for the location of the text cursor is set to the specified value, leaving the X coordinate unchanged. For more details about the text cursor, see the setCursor() function.

    -
    source

    pub fn set_text_wrap(&self, w: bool)

    Set or disable text wrap mode.

    +
    source

    pub fn set_text_wrap(&self, w: bool)

    Set or disable text wrap mode.

    Parameters

    • w true enables text wrap mode. false disables it.

    Text wrap mode is enabled by specifying true. In wrap mode, if a character to be drawn would end up partially or fully past the right edge of the screen (based on the current text size), it will be placed at the start of the next line. The text cursor will be adjusted accordingly.

    If wrap mode is disabled, characters will always be written at the current text cursor position. A character near the right edge of the screen may only be partially displayed and characters drawn at a position past the right edge of the screen will remain off screen.

    -
    source

    pub fn idle(&self)

    Idle the CPU to save power.

    +
    source

    pub fn idle(&self)

    Idle the CPU to save power.

    This puts the CPU in idle sleep mode. You should call this as often as you can for the best power savings. The timer 0 overflow interrupt will wake up the chip every 1ms, so even at 60 FPS a well written app should be able to sleep maybe half the time in between rendering it’s own frames.

    +
    source

    pub fn buttons_state(&self) -> u8

    Get the current state of all buttons as a bitmask.

    +
    Returns
    +

    A bitmask of the state of all the buttons.

    +

    The returned mask contains a bit for each button. For any pressed button, its bit will be 1. For released buttons their associated bits will be 0.

    +

    The following defined mask values should be used for the buttons: +LEFT_BUTTON, RIGHT_BUTTON, UP_BUTTON, DOWN_BUTTON, A_BUTTON, B_BUTTON

    +
    source

    pub fn exit_to_bootloader(&self)

    Exit the sketch and start the bootloader.

    +

    The sketch will exit and the bootloader will be started in command mode. The effect will be similar to pressing the reset button.

    +

    This function is intended to be used to allow uploading a new sketch, when the USB code has been removed to gain more code space. Ideally, the sketch would present a “New Sketch Upload” menu or prompt telling the user to “Press and hold the DOWN button when the procedure to upload a new sketch has been initiated”. +The sketch would then wait for the DOWN button to be pressed and then call this function.

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Arduboy2

    §

    impl Send for Arduboy2

    §

    impl Sync for Arduboy2

    §

    impl Unpin for Arduboy2

    §

    impl UnwindSafe for Arduboy2

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere diff --git a/docs/doc/arduboy_rust/arduboy2/struct.Point.html b/docs/doc/arduboy_rust/arduboy2/struct.Point.html index dd76069..a59887a 100644 --- a/docs/doc/arduboy_rust/arduboy2/struct.Point.html +++ b/docs/doc/arduboy_rust/arduboy2/struct.Point.html @@ -1,10 +1,10 @@ -Point in arduboy_rust::arduboy2 - Rust
    pub struct Point {
    +Point in arduboy_rust::arduboy2 - Rust
    pub struct Point {
         pub x: i16,
         pub y: i16,
     }
    Expand description

    This struct is used by a few Arduboy functions.

    Fields§

    §x: i16

    Position X

    §y: i16

    Position Y

    -

    Trait Implementations§

    source§

    impl Clone for Point

    source§

    fn clone(&self) -> Point

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Point

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Copy for Point

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Point

    §

    impl Send for Point

    §

    impl Sync for Point

    §

    impl Unpin for Point

    §

    impl UnwindSafe for Point

    Blanket Implementations§

    §

    impl<T> Any for Twhere +

    Trait Implementations§

    source§

    impl Clone for Point

    source§

    fn clone(&self) -> Point

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Point

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Copy for Point

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Point

    §

    impl Send for Point

    §

    impl Sync for Point

    §

    impl Unpin for Point

    §

    impl UnwindSafe for Point

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    §

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> From<T> for T

    §

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/doc/arduboy_rust/arduboy2/struct.Rect.html b/docs/doc/arduboy_rust/arduboy2/struct.Rect.html index 935ae34..37aa3c2 100644 --- a/docs/doc/arduboy_rust/arduboy2/struct.Rect.html +++ b/docs/doc/arduboy_rust/arduboy2/struct.Rect.html @@ -1,4 +1,4 @@ -Rect in arduboy_rust::arduboy2 - Rust

    Struct arduboy_rust::arduboy2::Rect

    source ·
    pub struct Rect {
    +Rect in arduboy_rust::arduboy2 - Rust

    Struct arduboy_rust::arduboy2::Rect

    source ·
    pub struct Rect {
         pub x: i16,
         pub y: i16,
         pub width: u8,
    @@ -8,7 +8,7 @@
     
    §y: i16

    Position Y

    §width: u8

    Rect width

    §height: u8

    Rect height

    -

    Trait Implementations§

    source§

    impl Clone for Rect

    source§

    fn clone(&self) -> Rect

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Rect

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Copy for Rect

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Rect

    §

    impl Send for Rect

    §

    impl Sync for Rect

    §

    impl Unpin for Rect

    §

    impl UnwindSafe for Rect

    Blanket Implementations§

    §

    impl<T> Any for Twhere +

    Trait Implementations§

    source§

    impl Clone for Rect

    source§

    fn clone(&self) -> Rect

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Rect

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Copy for Rect

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Rect

    §

    impl Send for Rect

    §

    impl Sync for Rect

    §

    impl Unpin for Rect

    §

    impl UnwindSafe for Rect

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    §

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> From<T> for T

    §

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.begin.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.begin.html index 5418ee8..2b2cadd 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.begin.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.begin.html @@ -1 +1 @@ -begin in arduboy_rust::arduboyfx::fx - Rust

    Function arduboy_rust::arduboyfx::fx::begin

    source ·
    pub fn begin()
    \ No newline at end of file +begin in arduboy_rust::arduboyfx::fx - Rust

    Function arduboy_rust::arduboyfx::fx::begin

    source ·
    pub fn begin()
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.begin_data.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.begin_data.html index 56a8a94..a326ac6 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.begin_data.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.begin_data.html @@ -1 +1 @@ -begin_data in arduboy_rust::arduboyfx::fx - Rust
    pub fn begin_data(datapage: u16)
    \ No newline at end of file +begin_data in arduboy_rust::arduboyfx::fx - Rust
    pub fn begin_data(datapage: u16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.begin_data_save.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.begin_data_save.html index 20dec78..26a51df 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.begin_data_save.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.begin_data_save.html @@ -1 +1 @@ -begin_data_save in arduboy_rust::arduboyfx::fx - Rust
    pub fn begin_data_save(datapage: u16, savepage: u16)
    \ No newline at end of file +begin_data_save in arduboy_rust::arduboyfx::fx - Rust
    pub fn begin_data_save(datapage: u16, savepage: u16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.display.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.display.html index ec1ed4c..7fc3843 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.display.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.display.html @@ -1 +1 @@ -display in arduboy_rust::arduboyfx::fx - Rust

    Function arduboy_rust::arduboyfx::fx::display

    source ·
    pub fn display()
    \ No newline at end of file +display in arduboy_rust::arduboyfx::fx - Rust

    Function arduboy_rust::arduboyfx::fx::display

    source ·
    pub fn display()
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.display_clear.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.display_clear.html index 813b063..442a366 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.display_clear.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.display_clear.html @@ -1 +1 @@ -display_clear in arduboy_rust::arduboyfx::fx - Rust
    pub fn display_clear()
    \ No newline at end of file +display_clear in arduboy_rust::arduboyfx::fx - Rust
    pub fn display_clear()
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_bitmap.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_bitmap.html index 1ac87b8..c6b0f40 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_bitmap.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_bitmap.html @@ -1 +1 @@ -draw_bitmap in arduboy_rust::arduboyfx::fx - Rust
    pub fn draw_bitmap(x: i16, y: i16, address: u32, frame: u8, mode: u8)
    \ No newline at end of file +draw_bitmap in arduboy_rust::arduboyfx::fx - Rust
    pub fn draw_bitmap(x: i16, y: i16, address: u32, frame: u8, mode: u8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_char.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_char.html index 70a96d4..7c0af1a 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_char.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_char.html @@ -1 +1 @@ -draw_char in arduboy_rust::arduboyfx::fx - Rust
    pub fn draw_char(c: u8)
    \ No newline at end of file +draw_char in arduboy_rust::arduboyfx::fx - Rust
    pub fn draw_char(c: u8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_frame.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_frame.html index 4ca2759..ff09282 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_frame.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_frame.html @@ -1 +1 @@ -draw_frame in arduboy_rust::arduboyfx::fx - Rust
    pub fn draw_frame(address: u32) -> u32
    \ No newline at end of file +draw_frame in arduboy_rust::arduboyfx::fx - Rust
    pub fn draw_frame(address: u32) -> u32
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_number.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_number.html index 04efe3b..f02565b 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_number.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_number.html @@ -1 +1 @@ -draw_number in arduboy_rust::arduboyfx::fx - Rust
    pub fn draw_number(n: impl DrawableNumber, digits: i8)
    \ No newline at end of file +draw_number in arduboy_rust::arduboyfx::fx - Rust
    pub fn draw_number(n: impl DrawableNumber, digits: i8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_string.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_string.html index c75060a..79e250b 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_string.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.draw_string.html @@ -1 +1 @@ -draw_string in arduboy_rust::arduboyfx::fx - Rust
    pub fn draw_string(string: impl DrawableString)
    \ No newline at end of file +draw_string in arduboy_rust::arduboyfx::fx - Rust
    pub fn draw_string(string: impl DrawableString)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.read_data_array.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.read_data_array.html index 9b41a3b..b4a156c 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.read_data_array.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.read_data_array.html @@ -1,4 +1,4 @@ -read_data_array in arduboy_rust::arduboyfx::fx - Rust
    pub fn read_data_array(
    +read_data_array in arduboy_rust::arduboyfx::fx - Rust
    pub fn read_data_array(
         address: u32,
         index: u8,
         offset: u8,
    diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor.html
    index 85b8417..e5cb15e 100644
    --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor.html
    +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor.html
    @@ -1 +1 @@
    -set_cursor in arduboy_rust::arduboyfx::fx - Rust
    pub fn set_cursor(x: i16, y: i16)
    \ No newline at end of file +set_cursor in arduboy_rust::arduboyfx::fx - Rust
    pub fn set_cursor(x: i16, y: i16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor_range.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor_range.html index 8e768b0..f82ee74 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor_range.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor_range.html @@ -1 +1 @@ -set_cursor_range in arduboy_rust::arduboyfx::fx - Rust
    pub fn set_cursor_range(left: i32, wrap: i32)
    \ No newline at end of file +set_cursor_range in arduboy_rust::arduboyfx::fx - Rust
    pub fn set_cursor_range(left: i16, wrap: i16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor_x.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor_x.html index 0c3160b..8a0e072 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor_x.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor_x.html @@ -1 +1 @@ -set_cursor_x in arduboy_rust::arduboyfx::fx - Rust
    pub fn set_cursor_x(x: i16)
    \ No newline at end of file +set_cursor_x in arduboy_rust::arduboyfx::fx - Rust
    pub fn set_cursor_x(x: i16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor_y.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor_y.html index dba5379..119be6a 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor_y.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_cursor_y.html @@ -1 +1 @@ -set_cursor_y in arduboy_rust::arduboyfx::fx - Rust
    pub fn set_cursor_y(y: i16)
    \ No newline at end of file +set_cursor_y in arduboy_rust::arduboyfx::fx - Rust
    pub fn set_cursor_y(y: i16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_font.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_font.html index 0472aa6..b690c20 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_font.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_font.html @@ -1 +1 @@ -set_font in arduboy_rust::arduboyfx::fx - Rust
    pub fn set_font(address: u32, mode: u8)
    \ No newline at end of file +set_font in arduboy_rust::arduboyfx::fx - Rust
    pub fn set_font(address: u32, mode: u8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_frame.html b/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_frame.html index cbb21cf..72c4c04 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_frame.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/fn.set_frame.html @@ -1 +1 @@ -set_frame in arduboy_rust::arduboyfx::fx - Rust
    pub fn set_frame(frame: u32, repeat: u8)
    \ No newline at end of file +set_frame in arduboy_rust::arduboyfx::fx - Rust
    pub fn set_frame(frame: u32, repeat: u8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/index.html b/docs/doc/arduboy_rust/arduboyfx/fx/index.html index ef5a521..fb3c199 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/index.html +++ b/docs/doc/arduboy_rust/arduboyfx/fx/index.html @@ -1,11 +1,10 @@ -arduboy_rust::arduboyfx::fx - Rust

    Module arduboy_rust::arduboyfx::fx

    source ·
    Expand description

    Functions given by the ArduboyFX library.

    +arduboy_rust::arduboyfx::fx - Rust

    Module arduboy_rust::arduboyfx::fx

    source ·
    Expand description

    Functions given by the ArduboyFX library.

    You can use the ‘FX::’ module to access the functions after the import of the prelude

    use arduboy_rust::prelude::*;
     
    -fn setup(){
    +fn setup() {
         FX::begin()
    -}
    -
    +}

    You will need to uncomment the ArduboyFX_Library in the import_config.h file.

    -

    Functions

    \ No newline at end of file +

    Functions

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/fx/sidebar-items.js b/docs/doc/arduboy_rust/arduboyfx/fx/sidebar-items.js index e1fd60d..9b9af4e 100644 --- a/docs/doc/arduboy_rust/arduboyfx/fx/sidebar-items.js +++ b/docs/doc/arduboy_rust/arduboyfx/fx/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":["begin","begin_data","begin_data_save","display","display_clear","draw_bitmap","draw_char","draw_frame","draw_number","draw_string","read_data_array","set_cursor","set_cursor_range","set_cursor_x","set_cursor_y","set_font","set_frame"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["begin","begin_data","begin_data_save","display","display_clear","draw_bitmap","draw_char","draw_frame","draw_number","draw_string","load_game_state","read_data_array","save_game_state","set_cursor","set_cursor_range","set_cursor_x","set_cursor_y","set_font","set_font_mode","set_frame"]}; \ No newline at end of file diff --git a/docs/doc/arduboy_rust/arduboyfx/trait.DrawableNumber.html b/docs/doc/arduboy_rust/arduboyfx/trait.DrawableNumber.html index fdbe0a8..1e71fb2 100644 --- a/docs/doc/arduboy_rust/arduboyfx/trait.DrawableNumber.html +++ b/docs/doc/arduboy_rust/arduboyfx/trait.DrawableNumber.html @@ -2,4 +2,4 @@ Self: Sized,{ // Required method fn draw(self, digits: i8); -}

    Required Methods§

    source

    fn draw(self, digits: i8)

    Implementations on Foreign Types§

    source§

    impl DrawableNumber for i16

    source§

    fn draw(self, digits: i8)

    source§

    impl DrawableNumber for u16

    source§

    fn draw(self, digits: i8)

    source§

    impl DrawableNumber for i32

    source§

    fn draw(self, digits: i8)

    source§

    impl DrawableNumber for u32

    source§

    fn draw(self, digits: i8)

    Implementors§

    \ No newline at end of file +}

    Required Methods§

    source

    fn draw(self, digits: i8)

    Implementations on Foreign Types§

    source§

    impl DrawableNumber for u16

    source§

    fn draw(self, digits: i8)

    source§

    impl DrawableNumber for i16

    source§

    fn draw(self, digits: i8)

    source§

    impl DrawableNumber for i32

    source§

    fn draw(self, digits: i8)

    source§

    impl DrawableNumber for u32

    source§

    fn draw(self, digits: i8)

    Implementors§

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/constant.FONT_SIZE.html b/docs/doc/arduboy_rust/constant.FONT_SIZE.html index aabfa17..70c367c 100644 --- a/docs/doc/arduboy_rust/constant.FONT_SIZE.html +++ b/docs/doc/arduboy_rust/constant.FONT_SIZE.html @@ -1,3 +1,3 @@ -FONT_SIZE in arduboy_rust - Rust

    Constant arduboy_rust::FONT_SIZE

    source ·
    pub const FONT_SIZE: u8 = 6;
    Expand description

    The standard font size of the arduboy

    +FONT_SIZE in arduboy_rust - Rust

    Constant arduboy_rust::FONT_SIZE

    source ·
    pub const FONT_SIZE: u8 = 6;
    Expand description

    The standard font size of the arduboy

    this is to calculate with it.

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/constant.HEIGHT.html b/docs/doc/arduboy_rust/constant.HEIGHT.html index 775d830..a0b3250 100644 --- a/docs/doc/arduboy_rust/constant.HEIGHT.html +++ b/docs/doc/arduboy_rust/constant.HEIGHT.html @@ -1,3 +1,3 @@ -HEIGHT in arduboy_rust - Rust

    Constant arduboy_rust::HEIGHT

    source ·
    pub const HEIGHT: i16 = 64;
    Expand description

    The standard height of the arduboy

    +HEIGHT in arduboy_rust - Rust

    Constant arduboy_rust::HEIGHT

    source ·
    pub const HEIGHT: i16 = 64;
    Expand description

    The standard height of the arduboy

    this is to calculate with it.

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/constant.WIDTH.html b/docs/doc/arduboy_rust/constant.WIDTH.html index 038bec6..0646384 100644 --- a/docs/doc/arduboy_rust/constant.WIDTH.html +++ b/docs/doc/arduboy_rust/constant.WIDTH.html @@ -1,3 +1,3 @@ -WIDTH in arduboy_rust - Rust

    Constant arduboy_rust::WIDTH

    source ·
    pub const WIDTH: i16 = 128;
    Expand description

    The standard width of the arduboy

    +WIDTH in arduboy_rust - Rust

    Constant arduboy_rust::WIDTH

    source ·
    pub const WIDTH: i16 = 128;
    Expand description

    The standard width of the arduboy

    this is to calculate with it.

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/enum.Color.html b/docs/doc/arduboy_rust/enum.Color.html index 7374c46..cfc1c8d 100644 --- a/docs/doc/arduboy_rust/enum.Color.html +++ b/docs/doc/arduboy_rust/enum.Color.html @@ -1,19 +1,19 @@ -Color in arduboy_rust - Rust

    Enum arduboy_rust::Color

    source ·
    #[repr(u8)]
    pub enum Color { +Color in arduboy_rust - Rust

    Enum arduboy_rust::Color

    source ·
    #[repr(u8)]
    pub enum Color { Black, White, }
    Expand description

    This item is to chose between Black or White

    Variants§

    §

    Black

    Led is off

    §

    White

    Led is on

    -

    Trait Implementations§

    source§

    impl Clone for Color

    source§

    fn clone(&self) -> Color

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Color

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for Color

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given [Hasher]. Read more
    1.3.0§

    fn hash_slice<H>(data: &[Self], state: &mut H)where +

    Trait Implementations§

    source§

    impl Clone for Color

    source§

    fn clone(&self) -> Color

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Color

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for Color

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given [Hasher]. Read more
    1.3.0§

    fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given [Hasher]. Read more
    source§

    impl Not for Color

    §

    type Output = Color

    The resulting type after applying the ! operator.
    source§

    fn not(self) -> Self::Output

    Performs the unary ! operation. Read more
    source§

    impl Ord for Color

    source§

    fn cmp(&self, other: &Color) -> Ordering

    This method returns an [Ordering] between self and other. Read more
    1.21.0§

    fn max(self, other: Self) -> Selfwhere + Self: Sized,

    Feeds a slice of this type into the given [Hasher]. Read more
    source§

    impl Not for Color

    §

    type Output = Color

    The resulting type after applying the ! operator.
    source§

    fn not(self) -> Self::Output

    Performs the unary ! operation. Read more
    source§

    impl Ord for Color

    source§

    fn cmp(&self, other: &Color) -> Ordering

    This method returns an [Ordering] between self and other. Read more
    1.21.0§

    fn max(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0§

    fn min(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0§

    fn clamp(self, min: Self, max: Self) -> Selfwhere - Self: Sized + PartialOrd<Self>,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<Color> for Color

    source§

    fn eq(&self, other: &Color) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd<Self>,
    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<Color> for Color

    source§

    fn eq(&self, other: &Color) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd<Color> for Color

    source§

    fn partial_cmp(&self, other: &Color) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd<Color> for Color

    source§

    fn partial_cmp(&self, other: &Color) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Copy for Color

    source§

    impl Eq for Color

    source§

    impl StructuralEq for Color

    source§

    impl StructuralPartialEq for Color

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Color

    §

    impl Send for Color

    §

    impl Sync for Color

    §

    impl Unpin for Color

    §

    impl UnwindSafe for Color

    Blanket Implementations§

    §

    impl<T> Any for Twhere +operator. Read more

    source§

    impl Copy for Color

    source§

    impl Eq for Color

    source§

    impl StructuralEq for Color

    source§

    impl StructuralPartialEq for Color

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Color

    §

    impl Send for Color

    §

    impl Sync for Color

    §

    impl Unpin for Color

    §

    impl UnwindSafe for Color

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    §

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> From<T> for T

    §

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/doc/arduboy_rust/hardware/buttons/constant.A_BUTTON.html b/docs/doc/arduboy_rust/hardware/buttons/constant.A_BUTTON.html index d630d74..0d7a2cf 100644 --- a/docs/doc/arduboy_rust/hardware/buttons/constant.A_BUTTON.html +++ b/docs/doc/arduboy_rust/hardware/buttons/constant.A_BUTTON.html @@ -1,2 +1,2 @@ -A_BUTTON in arduboy_rust::hardware::buttons - Rust
    pub const A_BUTTON: ButtonSet;
    Expand description

    Just a const for the A button

    +A_BUTTON in arduboy_rust::hardware::buttons - Rust
    pub const A_BUTTON: ButtonSet;
    Expand description

    Just a const for the A button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/hardware/buttons/constant.B_BUTTON.html b/docs/doc/arduboy_rust/hardware/buttons/constant.B_BUTTON.html index 7e77162..9a82ef8 100644 --- a/docs/doc/arduboy_rust/hardware/buttons/constant.B_BUTTON.html +++ b/docs/doc/arduboy_rust/hardware/buttons/constant.B_BUTTON.html @@ -1,2 +1,2 @@ -B_BUTTON in arduboy_rust::hardware::buttons - Rust
    pub const B_BUTTON: ButtonSet;
    Expand description

    Just a const for the B button

    +B_BUTTON in arduboy_rust::hardware::buttons - Rust
    pub const B_BUTTON: ButtonSet;
    Expand description

    Just a const for the B button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/hardware/buttons/constant.DOWN_BUTTON.html b/docs/doc/arduboy_rust/hardware/buttons/constant.DOWN_BUTTON.html index 183ab42..fd42455 100644 --- a/docs/doc/arduboy_rust/hardware/buttons/constant.DOWN_BUTTON.html +++ b/docs/doc/arduboy_rust/hardware/buttons/constant.DOWN_BUTTON.html @@ -1,2 +1,2 @@ -DOWN_BUTTON in arduboy_rust::hardware::buttons - Rust
    pub const DOWN_BUTTON: ButtonSet;
    Expand description

    Just a const for the DOWN button

    +DOWN_BUTTON in arduboy_rust::hardware::buttons - Rust
    pub const DOWN_BUTTON: ButtonSet;
    Expand description

    Just a const for the DOWN button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/hardware/buttons/constant.LEFT_BUTTON.html b/docs/doc/arduboy_rust/hardware/buttons/constant.LEFT_BUTTON.html index 6e62b0d..798221d 100644 --- a/docs/doc/arduboy_rust/hardware/buttons/constant.LEFT_BUTTON.html +++ b/docs/doc/arduboy_rust/hardware/buttons/constant.LEFT_BUTTON.html @@ -1,2 +1,2 @@ -LEFT_BUTTON in arduboy_rust::hardware::buttons - Rust
    pub const LEFT_BUTTON: ButtonSet;
    Expand description

    Just a const for the LEFT button

    +LEFT_BUTTON in arduboy_rust::hardware::buttons - Rust
    pub const LEFT_BUTTON: ButtonSet;
    Expand description

    Just a const for the LEFT button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/hardware/buttons/constant.RIGHT_BUTTON.html b/docs/doc/arduboy_rust/hardware/buttons/constant.RIGHT_BUTTON.html index cb3832b..f8b700a 100644 --- a/docs/doc/arduboy_rust/hardware/buttons/constant.RIGHT_BUTTON.html +++ b/docs/doc/arduboy_rust/hardware/buttons/constant.RIGHT_BUTTON.html @@ -1,2 +1,2 @@ -RIGHT_BUTTON in arduboy_rust::hardware::buttons - Rust
    pub const RIGHT_BUTTON: ButtonSet;
    Expand description

    Just a const for the RIGHT button

    +RIGHT_BUTTON in arduboy_rust::hardware::buttons - Rust
    pub const RIGHT_BUTTON: ButtonSet;
    Expand description

    Just a const for the RIGHT button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/hardware/buttons/constant.UP_BUTTON.html b/docs/doc/arduboy_rust/hardware/buttons/constant.UP_BUTTON.html index c0d7dc5..b80ac9f 100644 --- a/docs/doc/arduboy_rust/hardware/buttons/constant.UP_BUTTON.html +++ b/docs/doc/arduboy_rust/hardware/buttons/constant.UP_BUTTON.html @@ -1,2 +1,2 @@ -UP_BUTTON in arduboy_rust::hardware::buttons - Rust
    pub const UP_BUTTON: ButtonSet;
    Expand description

    Just a const for the UP button

    +UP_BUTTON in arduboy_rust::hardware::buttons - Rust
    pub const UP_BUTTON: ButtonSet;
    Expand description

    Just a const for the UP button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/hardware/buttons/index.html b/docs/doc/arduboy_rust/hardware/buttons/index.html index 5380238..e83c17d 100644 --- a/docs/doc/arduboy_rust/hardware/buttons/index.html +++ b/docs/doc/arduboy_rust/hardware/buttons/index.html @@ -1,2 +1,2 @@ -arduboy_rust::hardware::buttons - Rust
    Expand description

    A list of all six buttons available on the Arduboy

    -

    Structs

    • This struct gives the library a understanding what Buttons on the Arduboy are.

    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 B button
    • Just a const for the DOWN button
    • Just a const for the DOWN button
    • Just a const for the LEFT button
    • Just a const for the LEFT button
    • 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
    \ No newline at end of file +arduboy_rust::hardware::buttons - Rust
    Expand description

    A list of all six buttons available on the Arduboy

    +

    Structs

    • This struct gives the library a understanding what Buttons on the Arduboy are.

    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 B button
    • Just a const for the DOWN button
    • Just a const for the DOWN button
    • Just a const for the LEFT button
    • Just a const for the LEFT button
    • 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
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/hardware/buttons/sidebar-items.js b/docs/doc/arduboy_rust/hardware/buttons/sidebar-items.js index 0e791b6..896beb1 100644 --- a/docs/doc/arduboy_rust/hardware/buttons/sidebar-items.js +++ b/docs/doc/arduboy_rust/hardware/buttons/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":["A","A_BUTTON","B","B_BUTTON","DOWN","DOWN_BUTTON","LEFT","LEFT_BUTTON","RIGHT","RIGHT_BUTTON","UP","UP_BUTTON"],"struct":["ButtonSet"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["A","ANY_BUTTON","A_BUTTON","B","B_BUTTON","DOWN","DOWN_BUTTON","LEFT","LEFT_BUTTON","RIGHT","RIGHT_BUTTON","UP","UP_BUTTON"],"struct":["ButtonSet"]}; \ No newline at end of file diff --git a/docs/doc/arduboy_rust/hardware/buttons/struct.ButtonSet.html b/docs/doc/arduboy_rust/hardware/buttons/struct.ButtonSet.html index ee03487..a7e9706 100644 --- a/docs/doc/arduboy_rust/hardware/buttons/struct.ButtonSet.html +++ b/docs/doc/arduboy_rust/hardware/buttons/struct.ButtonSet.html @@ -1,16 +1,16 @@ -ButtonSet in arduboy_rust::hardware::buttons - Rust
    pub struct ButtonSet {
    +ButtonSet in arduboy_rust::hardware::buttons - Rust
    pub struct ButtonSet {
         pub flag_set: u8,
     }
    Expand description

    This struct gives the library a understanding what Buttons on the Arduboy are.

    -

    Fields§

    §flag_set: u8

    Implementations§

    source§

    impl ButtonSet

    source

    pub unsafe fn pressed(&self) -> bool

    source

    pub unsafe fn just_pressed(&self) -> bool

    source

    pub unsafe fn just_released(&self) -> bool

    source

    pub unsafe fn not_pressed(&self) -> bool

    Trait Implementations§

    source§

    impl BitOr<ButtonSet> for ButtonSet

    §

    type Output = ButtonSet

    The resulting type after applying the | operator.
    source§

    fn bitor(self, other: Self) -> Self

    Performs the | operation. Read more
    source§

    impl Clone for ButtonSet

    source§

    fn clone(&self) -> ButtonSet

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ButtonSet

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for ButtonSet

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given [Hasher]. Read more
    1.3.0§

    fn hash_slice<H>(data: &[Self], state: &mut H)where +

    Fields§

    §flag_set: u8

    Implementations§

    source§

    impl ButtonSet

    source

    pub unsafe fn pressed(&self) -> bool

    source

    pub unsafe fn just_pressed(&self) -> bool

    source

    pub unsafe fn just_released(&self) -> bool

    source

    pub unsafe fn not_pressed(&self) -> bool

    Trait Implementations§

    source§

    impl BitOr<ButtonSet> for ButtonSet

    §

    type Output = ButtonSet

    The resulting type after applying the | operator.
    source§

    fn bitor(self, other: Self) -> Self

    Performs the | operation. Read more
    source§

    impl Clone for ButtonSet

    source§

    fn clone(&self) -> ButtonSet

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ButtonSet

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for ButtonSet

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given [Hasher]. Read more
    1.3.0§

    fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given [Hasher]. Read more
    source§

    impl Ord for ButtonSet

    source§

    fn cmp(&self, other: &ButtonSet) -> Ordering

    This method returns an [Ordering] between self and other. Read more
    1.21.0§

    fn max(self, other: Self) -> Selfwhere + Self: Sized,

    Feeds a slice of this type into the given [Hasher]. Read more
    source§

    impl Ord for ButtonSet

    source§

    fn cmp(&self, other: &ButtonSet) -> Ordering

    This method returns an [Ordering] between self and other. Read more
    1.21.0§

    fn max(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0§

    fn min(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0§

    fn clamp(self, min: Self, max: Self) -> Selfwhere - Self: Sized + PartialOrd<Self>,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<ButtonSet> for ButtonSet

    source§

    fn eq(&self, other: &ButtonSet) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd<Self>,
    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<ButtonSet> for ButtonSet

    source§

    fn eq(&self, other: &ButtonSet) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd<ButtonSet> for ButtonSet

    source§

    fn partial_cmp(&self, other: &ButtonSet) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd<ButtonSet> for ButtonSet

    source§

    fn partial_cmp(&self, other: &ButtonSet) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Copy for ButtonSet

    source§

    impl Eq for ButtonSet

    source§

    impl StructuralEq for ButtonSet

    source§

    impl StructuralPartialEq for ButtonSet

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for ButtonSet

    §

    impl Send for ButtonSet

    §

    impl Sync for ButtonSet

    §

    impl Unpin for ButtonSet

    §

    impl UnwindSafe for ButtonSet

    Blanket Implementations§

    §

    impl<T> Any for Twhere +operator. Read more

    source§

    impl Copy for ButtonSet

    source§

    impl Eq for ButtonSet

    source§

    impl StructuralEq for ButtonSet

    source§

    impl StructuralPartialEq for ButtonSet

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for ButtonSet

    §

    impl Send for ButtonSet

    §

    impl Sync for ButtonSet

    §

    impl Unpin for ButtonSet

    §

    impl UnwindSafe for ButtonSet

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    §

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> From<T> for T

    §

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/doc/arduboy_rust/heapless/struct.String.html b/docs/doc/arduboy_rust/heapless/struct.String.html index 73aa0c8..f026cc4 100644 --- a/docs/doc/arduboy_rust/heapless/struct.String.html +++ b/docs/doc/arduboy_rust/heapless/struct.String.html @@ -1363,7 +1363,7 @@ sufficient, and should not be overridden without very good reason.
    ==.
    source§

    fn ne(&self, other: &str) -> bool

    This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
    source§

    impl<const N1: usize, const N2: usize> PartialOrd<String<N2>> for String<N1>

    source§

    fn partial_cmp(&self, other: &String<N2>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl<const N: usize> Printable for String<N>

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    fn print(self)

    source§

    impl<const N: usize> Serialprintable for String<N>

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    fn print(self)

    source§

    impl<const N: usize> Serialprintlnable for String<N>

    §

    type Parameters = ()

    source§

    fn println_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    fn println(self)

    source§

    impl<const N: usize> Write for String<N>

    source§

    fn write_str(&mut self, s: &str) -> Result<(), Error>

    Writes a string slice into this writer, returning whether the write +operator. Read more
    source§

    impl<const N: usize> Printable for String<N>

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    fn print(self)

    source§

    impl<const N: usize> Serialprintable for String<N>

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    fn print(self)

    source§

    impl<const N: usize> Serialprintlnable for String<N>

    §

    type Parameters = ()

    source§

    fn println_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    fn println(self)

    source§

    impl<const N: usize> Write for String<N>

    source§

    fn write_str(&mut self, s: &str) -> Result<(), Error>

    Writes a string slice into this writer, returning whether the write succeeded. Read more
    source§

    fn write_char(&mut self, c: char) -> Result<(), Error>

    Writes a [char] into this writer, returning whether the write succeeded. Read more
    1.0.0§

    fn write_fmt(&mut self, args: Arguments<'_>) -> Result<(), Error>

    Glue for usage of the [write!] macro with implementors of this trait. Read more
    source§

    impl<const N: usize> Eq for String<N>

    Auto Trait Implementations§

    §

    impl<const N: usize> RefUnwindSafe for String<N>

    §

    impl<const N: usize> Send for String<N>

    §

    impl<const N: usize> Sync for String<N>

    §

    impl<const N: usize> Unpin for String<N>

    §

    impl<const N: usize> UnwindSafe for String<N>

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.begin.html b/docs/doc/arduboy_rust/prelude/FX/fn.begin.html index 95ce591..edc5642 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.begin.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.begin.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.begin.html...

    - - - \ No newline at end of file +begin in arduboy_rust::prelude::fx - Rust

    Function arduboy_rust::prelude::fx::begin

    source ·
    pub fn begin()
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.begin_data.html b/docs/doc/arduboy_rust/prelude/FX/fn.begin_data.html index 4380519..1f7acc9 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.begin_data.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.begin_data.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.begin_data.html...

    - - - \ No newline at end of file +begin_data in arduboy_rust::prelude::fx - Rust
    pub fn begin_data(datapage: u16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.begin_data_save.html b/docs/doc/arduboy_rust/prelude/FX/fn.begin_data_save.html index 578972f..6968ec1 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.begin_data_save.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.begin_data_save.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.begin_data_save.html...

    - - - \ No newline at end of file +begin_data_save in arduboy_rust::prelude::fx - Rust
    pub fn begin_data_save(datapage: u16, savepage: u16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.display.html b/docs/doc/arduboy_rust/prelude/FX/fn.display.html index 2947865..9ab3c13 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.display.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.display.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.display.html...

    - - - \ No newline at end of file +display in arduboy_rust::prelude::fx - Rust

    Function arduboy_rust::prelude::fx::display

    source ·
    pub fn display()
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.display_clear.html b/docs/doc/arduboy_rust/prelude/FX/fn.display_clear.html index dcc8437..a56f3ea 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.display_clear.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.display_clear.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.display_clear.html...

    - - - \ No newline at end of file +display_clear in arduboy_rust::prelude::fx - Rust
    pub fn display_clear()
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.draw_bitmap.html b/docs/doc/arduboy_rust/prelude/FX/fn.draw_bitmap.html index 86cc1f3..fad0d1c 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.draw_bitmap.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.draw_bitmap.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.draw_bitmap.html...

    - - - \ No newline at end of file +draw_bitmap in arduboy_rust::prelude::fx - Rust
    pub fn draw_bitmap(x: i16, y: i16, address: u32, frame: u8, mode: u8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.draw_char.html b/docs/doc/arduboy_rust/prelude/FX/fn.draw_char.html index c6c0367..0147d37 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.draw_char.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.draw_char.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.draw_char.html...

    - - - \ No newline at end of file +draw_char in arduboy_rust::prelude::fx - Rust

    Function arduboy_rust::prelude::fx::draw_char

    source ·
    pub fn draw_char(c: u8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.draw_frame.html b/docs/doc/arduboy_rust/prelude/FX/fn.draw_frame.html index ac059d3..05a7960 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.draw_frame.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.draw_frame.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.draw_frame.html...

    - - - \ No newline at end of file +draw_frame in arduboy_rust::prelude::fx - Rust
    pub fn draw_frame(address: u32) -> u32
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.draw_number.html b/docs/doc/arduboy_rust/prelude/FX/fn.draw_number.html index a1ce6d2..9c050d3 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.draw_number.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.draw_number.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.draw_number.html...

    - - - \ No newline at end of file +draw_number in arduboy_rust::prelude::fx - Rust
    pub fn draw_number(n: impl DrawableNumber, digits: i8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.draw_string.html b/docs/doc/arduboy_rust/prelude/FX/fn.draw_string.html index a6f2ae3..4a6e311 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.draw_string.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.draw_string.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.draw_string.html...

    - - - \ No newline at end of file +draw_string in arduboy_rust::prelude::fx - Rust
    pub fn draw_string(string: impl DrawableString)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.read_data_array.html b/docs/doc/arduboy_rust/prelude/FX/fn.read_data_array.html index 726fed5..b77582d 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.read_data_array.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.read_data_array.html @@ -1,11 +1,8 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.read_data_array.html...

    - - - \ No newline at end of file +read_data_array in arduboy_rust::prelude::fx - Rust
    pub fn read_data_array(
    +    address: u32,
    +    index: u8,
    +    offset: u8,
    +    element_size: u8,
    +    buffer: *const u8,
    +    length: usize
    +)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor.html b/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor.html index 3a44991..5a38519 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor.html...

    - - - \ No newline at end of file +set_cursor in arduboy_rust::prelude::fx - Rust
    pub fn set_cursor(x: i16, y: i16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor_range.html b/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor_range.html index 3274b45..25ef0c0 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor_range.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor_range.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_range.html...

    - - - \ No newline at end of file +set_cursor_range in arduboy_rust::prelude::fx - Rust
    pub fn set_cursor_range(left: i16, wrap: i16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor_x.html b/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor_x.html index c1b2241..ac9d6c3 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor_x.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor_x.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_x.html...

    - - - \ No newline at end of file +set_cursor_x in arduboy_rust::prelude::fx - Rust
    pub fn set_cursor_x(x: i16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor_y.html b/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor_y.html index 17abbc6..59e74d0 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor_y.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.set_cursor_y.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_y.html...

    - - - \ No newline at end of file +set_cursor_y in arduboy_rust::prelude::fx - Rust
    pub fn set_cursor_y(y: i16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.set_font.html b/docs/doc/arduboy_rust/prelude/FX/fn.set_font.html index 73af700..6c73879 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.set_font.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.set_font.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.set_font.html...

    - - - \ No newline at end of file +set_font in arduboy_rust::prelude::fx - Rust

    Function arduboy_rust::prelude::fx::set_font

    source ·
    pub fn set_font(address: u32, mode: u8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/FX/fn.set_frame.html b/docs/doc/arduboy_rust/prelude/FX/fn.set_frame.html index d56eaf7..5f9d084 100644 --- a/docs/doc/arduboy_rust/prelude/FX/fn.set_frame.html +++ b/docs/doc/arduboy_rust/prelude/FX/fn.set_frame.html @@ -1,11 +1 @@ - - - - - Redirection - - -

    Redirecting to ../../../arduboy_rust/prelude/arduboyfx/fx/fn.set_frame.html...

    - - - \ No newline at end of file +set_frame in arduboy_rust::prelude::fx - Rust

    Function arduboy_rust::prelude::fx::set_frame

    source ·
    pub fn set_frame(frame: u32, repeat: u8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboy2/constant.FONT_SIZE.html b/docs/doc/arduboy_rust/prelude/arduboy2/constant.FONT_SIZE.html index 5522c3f..2e0a077 100644 --- a/docs/doc/arduboy_rust/prelude/arduboy2/constant.FONT_SIZE.html +++ b/docs/doc/arduboy_rust/prelude/arduboy2/constant.FONT_SIZE.html @@ -1,3 +1,3 @@ -FONT_SIZE in arduboy_rust::prelude::arduboy2 - Rust
    pub const FONT_SIZE: u8 = 6;
    Expand description

    The standard font size of the arduboy

    +FONT_SIZE in arduboy_rust::prelude::arduboy2 - Rust
    pub const FONT_SIZE: u8 = 6;
    Expand description

    The standard font size of the arduboy

    this is to calculate with it.

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboy2/constant.HEIGHT.html b/docs/doc/arduboy_rust/prelude/arduboy2/constant.HEIGHT.html index 34784fe..bc12f09 100644 --- a/docs/doc/arduboy_rust/prelude/arduboy2/constant.HEIGHT.html +++ b/docs/doc/arduboy_rust/prelude/arduboy2/constant.HEIGHT.html @@ -1,3 +1,3 @@ -HEIGHT in arduboy_rust::prelude::arduboy2 - Rust
    pub const HEIGHT: i16 = 64;
    Expand description

    The standard height of the arduboy

    +HEIGHT in arduboy_rust::prelude::arduboy2 - Rust
    pub const HEIGHT: i16 = 64;
    Expand description

    The standard height of the arduboy

    this is to calculate with it.

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboy2/constant.WIDTH.html b/docs/doc/arduboy_rust/prelude/arduboy2/constant.WIDTH.html index 57cfe67..1442594 100644 --- a/docs/doc/arduboy_rust/prelude/arduboy2/constant.WIDTH.html +++ b/docs/doc/arduboy_rust/prelude/arduboy2/constant.WIDTH.html @@ -1,3 +1,3 @@ -WIDTH in arduboy_rust::prelude::arduboy2 - Rust
    pub const WIDTH: i16 = 128;
    Expand description

    The standard width of the arduboy

    +WIDTH in arduboy_rust::prelude::arduboy2 - Rust
    pub const WIDTH: i16 = 128;
    Expand description

    The standard width of the arduboy

    this is to calculate with it.

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboy2/enum.Color.html b/docs/doc/arduboy_rust/prelude/arduboy2/enum.Color.html index 35207bc..be0785a 100644 --- a/docs/doc/arduboy_rust/prelude/arduboy2/enum.Color.html +++ b/docs/doc/arduboy_rust/prelude/arduboy2/enum.Color.html @@ -1,19 +1,19 @@ -Color in arduboy_rust::prelude::arduboy2 - Rust
    #[repr(u8)]
    pub enum Color { +Color in arduboy_rust::prelude::arduboy2 - Rust
    #[repr(u8)]
    pub enum Color { Black, White, }
    Expand description

    This item is to chose between Black or White

    Variants§

    §

    Black

    Led is off

    §

    White

    Led is on

    -

    Trait Implementations§

    source§

    impl Clone for Color

    source§

    fn clone(&self) -> Color

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Color

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for Color

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given [Hasher]. Read more
    1.3.0§

    fn hash_slice<H>(data: &[Self], state: &mut H)where +

    Trait Implementations§

    source§

    impl Clone for Color

    source§

    fn clone(&self) -> Color

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Color

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for Color

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given [Hasher]. Read more
    1.3.0§

    fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given [Hasher]. Read more
    source§

    impl Not for Color

    §

    type Output = Color

    The resulting type after applying the ! operator.
    source§

    fn not(self) -> Self::Output

    Performs the unary ! operation. Read more
    source§

    impl Ord for Color

    source§

    fn cmp(&self, other: &Color) -> Ordering

    This method returns an [Ordering] between self and other. Read more
    1.21.0§

    fn max(self, other: Self) -> Selfwhere + Self: Sized,

    Feeds a slice of this type into the given [Hasher]. Read more
    source§

    impl Not for Color

    §

    type Output = Color

    The resulting type after applying the ! operator.
    source§

    fn not(self) -> Self::Output

    Performs the unary ! operation. Read more
    source§

    impl Ord for Color

    source§

    fn cmp(&self, other: &Color) -> Ordering

    This method returns an [Ordering] between self and other. Read more
    1.21.0§

    fn max(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0§

    fn min(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0§

    fn clamp(self, min: Self, max: Self) -> Selfwhere - Self: Sized + PartialOrd<Self>,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<Color> for Color

    source§

    fn eq(&self, other: &Color) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd<Self>,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<Color> for Color

    source§

    fn eq(&self, other: &Color) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd<Color> for Color

    source§

    fn partial_cmp(&self, other: &Color) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd<Color> for Color

    source§

    fn partial_cmp(&self, other: &Color) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Copy for Color

    source§

    impl Eq for Color

    source§

    impl StructuralEq for Color

    source§

    impl StructuralPartialEq for Color

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Color

    §

    impl Send for Color

    §

    impl Sync for Color

    §

    impl Unpin for Color

    §

    impl UnwindSafe for Color

    Blanket Implementations§

    §

    impl<T> Any for Twhere +operator. Read more

    source§

    impl Copy for Color

    source§

    impl Eq for Color

    source§

    impl StructuralEq for Color

    source§

    impl StructuralPartialEq for Color

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Color

    §

    impl Send for Color

    §

    impl Sync for Color

    §

    impl Unpin for Color

    §

    impl UnwindSafe for Color

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    §

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> From<T> for T

    §

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/doc/arduboy_rust/prelude/arduboy2/index.html b/docs/doc/arduboy_rust/prelude/arduboy2/index.html index eda5fee..0261b08 100644 --- a/docs/doc/arduboy_rust/prelude/arduboy2/index.html +++ b/docs/doc/arduboy_rust/prelude/arduboy2/index.html @@ -1,3 +1,3 @@ -arduboy_rust::prelude::arduboy2 - Rust
    Expand description

    This is the Module to interact in a save way with the Arduboy2 C++ library.

    +arduboy_rust::prelude::arduboy2 - Rust
    Expand description

    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.

    Structs

    • This is the struct to interact in a save way with the Arduboy2 C++ library.
    • 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

    • The standard font size of the arduboy
    • The standard height of the arduboy
    • The standard width of the arduboy
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboy2/struct.Arduboy2.html b/docs/doc/arduboy_rust/prelude/arduboy2/struct.Arduboy2.html index 2a18c03..a565555 100644 --- a/docs/doc/arduboy_rust/prelude/arduboy2/struct.Arduboy2.html +++ b/docs/doc/arduboy_rust/prelude/arduboy2/struct.Arduboy2.html @@ -1,17 +1,17 @@ -Arduboy2 in arduboy_rust::prelude::arduboy2 - Rust
    pub struct Arduboy2 {}
    Expand description

    This is the struct to interact in a save way with the Arduboy2 C++ library.

    -

    Implementations§

    source§

    impl Arduboy2

    source

    pub const fn new() -> Self

    gives you a new instance of the Arduboy2

    +Arduboy2 in arduboy_rust::prelude::arduboy2 - Rust
    pub struct Arduboy2 {}
    Expand description

    This is the struct to interact in a save way with the Arduboy2 C++ library.

    +

    Implementations§

    source§

    impl Arduboy2

    source

    pub const fn new() -> Self

    gives you a new instance of the Arduboy2

    Example
    #![allow(non_upper_case_globals)]
     use arduboy_rust::prelude::*;
     const arduboy: Arduboy2 = Arduboy2::new();
    -
    source

    pub fn begin(&self)

    Initialize the hardware, display the boot logo, provide boot utilities, etc. +

    source

    pub fn begin(&self)

    Initialize the hardware, display the boot logo, provide boot utilities, etc. This function should be called once near the start of the sketch, usually in setup(), before using any other functions in this class. It initializes the display, displays the boot logo, provides “flashlight” and system control features and initializes audio control.

    -
    source

    pub fn clear(&self)

    Clear the display buffer and set the text cursor to location 0, 0.

    -
    source

    pub fn display(&self)

    Copy the contents of the display buffer to the display. +

    source

    pub fn clear(&self)

    Clear the display buffer and set the text cursor to location 0, 0.

    +
    source

    pub fn display(&self)

    Copy the contents of the display buffer to the display. The contents of the display buffer in RAM are copied to the display and will appear on the screen.

    -
    source

    pub fn display_and_clear_buffer(&self)

    Copy the contents of the display buffer to the display. The display buffer will be cleared to zero.

    +
    source

    pub fn display_and_clear_buffer(&self)

    Copy the contents of the display buffer to the display. The display buffer will be cleared to zero.

    Operation is the same as calling display() without parameters except additionally the display buffer will be cleared.

    -
    source

    pub fn draw_fast_hline(&self, x: i16, y: i16, w: u8, color: Color)

    Draw a horizontal line.

    +
    source

    pub fn draw_fast_hline(&self, x: i16, y: i16, w: u8, color: Color)

    Draw a horizontal line.

    Parameters:
    • x The X coordinate of the left start point.
    • @@ -19,7 +19,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • w The width of the line.

    color The color of the line (optional; defaults to WHITE).

    -
    source

    pub fn draw_fast_vline(&self, x: i16, y: i16, h: u8, color: Color)

    Draw a vertical line.

    +
    source

    pub fn draw_fast_vline(&self, x: i16, y: i16, h: u8, color: Color)

    Draw a vertical line.

    Parameters:
    • x The X coordinate of the left start point.
    • @@ -27,7 +27,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • h The height of the line.

    color The color of the line (optional; defaults to WHITE).

    -
    source

    pub fn draw_pixel(&self, x: i16, y: i16, color: Color)

    Set a single pixel in the display buffer to the specified color.

    +
    source

    pub fn draw_pixel(&self, x: i16, y: i16, color: Color)

    Set a single pixel in the display buffer to the specified color.

    Parameters
    • x The X coordinate of the pixel.
    • @@ -35,7 +35,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • color The color of the pixel (optional; defaults to WHITE).

    The single pixel specified location in the display buffer is set to the specified color. The values WHITE or BLACK can be used for the color. If the color parameter isn’t included, the pixel will be set to WHITE.

    -
    source

    pub fn fill_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

    Draw a filled-in rectangle of a specified width and height.

    +
    source

    pub fn fill_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

    Draw a filled-in rectangle of a specified width and height.

    Parameters
    • x The X coordinate of the upper left corner.
    • @@ -44,7 +44,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • h The height of the rectangle.

    color The color of the pixel (optional; defaults to WHITE).

    -
    source

    pub fn draw_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

    Draw a rectangle of a specified width and height.

    +
    source

    pub fn draw_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

    Draw a rectangle of a specified width and height.

    Parameters

    • x The X coordinate of the upper left corner.
    • @@ -53,7 +53,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • h The height of the rectangle.
    • color The color of the pixel (optional; defaults to WHITE).
    -
    source

    pub fn draw_circle(&self, x: i16, y: i16, r: u8, color: Color)

    Draw a circle of a given radius.

    +
    source

    pub fn draw_circle(&self, x: i16, y: i16, r: u8, color: Color)

    Draw a circle of a given radius.

    Parameters

    • x0 The X coordinate of the circle’s center.
    • @@ -61,7 +61,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • r The radius of the circle in pixels.
    • color The circle’s color (optional; defaults to WHITE).
    -
    source

    pub fn fill_circle(&self, x: i16, y: i16, r: u8, color: Color)

    Draw a filled-in circle of a given radius.

    +
    source

    pub fn fill_circle(&self, x: i16, y: i16, r: u8, color: Color)

    Draw a filled-in circle of a given radius.

    Parameters
    • x The X coordinate of the circle’s center.
    • @@ -69,7 +69,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • r The radius of the circle in pixels.

    color The circle’s color (optional; defaults to WHITE).

    -
    source

    pub fn fill_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

    Draw a filled-in rectangle with rounded corners.

    +
    source

    pub fn fill_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

    Draw a filled-in rectangle with rounded corners.

    Parameters

    • x The X coordinate of the left edge.
    • @@ -79,7 +79,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • r The radius of the semicircles forming the corners.
    • color The color of the rectangle (optional; defaults to WHITE).
    -
    source

    pub fn draw_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

    Draw a rectangle with rounded corners.

    +
    source

    pub fn draw_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

    Draw a rectangle with rounded corners.

    Parameters

    • x The X coordinate of the left edge.
    • @@ -89,7 +89,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • r The radius of the semicircles forming the corners.
    • color The color of the rectangle (optional; defaults to WHITE).
    -
    source

    pub fn draw_triangle( +

    source

    pub fn draw_triangle( &self, x0: i16, y0: i16, @@ -106,7 +106,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • color The triangle’s color (optional; defaults to WHITE).
  • A triangle is drawn by specifying each of the three corner locations. The corners can be at any position with respect to the others.

    -

    source

    pub fn fill_triangle( +

    source

    pub fn fill_triangle( &self, x0: i16, y0: i16, @@ -123,7 +123,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • color The triangle’s color (optional; defaults to WHITE).
  • A triangle is drawn by specifying each of the three corner locations. The corners can be at any position with respect to the others.

    -

    source

    pub fn get_pixel(&self, x: u8, y: u8) -> Color

    Returns the state of the given pixel in the screen buffer.

    +
    source

    pub fn get_pixel(&self, x: u8, y: u8) -> Color

    Returns the state of the given pixel in the screen buffer.

    Parameters
    • x The X coordinate of the pixel.
    • @@ -131,9 +131,9 @@ The contents of the display buffer in RAM are copied to the display and will app
    Returns

    WHITE if the pixel is on or BLACK if the pixel is off.

    -
    source

    pub fn init_random_seed(&self)

    Seed the random number generator with a random value.

    +
    source

    pub fn init_random_seed(&self)

    Seed the random number generator with a random value.

    The Arduino pseudorandom number generator is seeded with the random value returned from a call to generateRandomSeed().

    -
    source

    pub fn just_pressed(&self, button: ButtonSet) -> bool

    Check if a button has just been pressed.

    +
    source

    pub fn just_pressed(&self, button: ButtonSet) -> bool

    Check if a button has just been pressed.

    Parameters
    • button The button to test for. Only one button should be specified.
    • @@ -143,7 +143,7 @@ The contents of the display buffer in RAM are copied to the display and will app

      Return true if the given button was pressed between the latest call to pollButtons() and previous call to pollButtons(). If the button has been held down over multiple polls, this function will return false.

      There is no need to check for the release of the button since it must have been released for this function to return true when pressed again.

      This function should only be used to test a single button.

      -
    source

    pub fn just_released(&self, button: ButtonSet) -> bool

    Check if a button has just been released.

    +
    source

    pub fn just_released(&self, button: ButtonSet) -> bool

    Check if a button has just been released.

    Parameters
    • button The button to test for. Only one button should be specified.
    • @@ -153,7 +153,7 @@ The contents of the display buffer in RAM are copied to the display and will app

      Return true if the given button was released between the latest call to pollButtons() and previous call to pollButtons(). If the button has been held down over multiple polls, this function will return false.

      There is no need to check for the released of the button since it must have been pressed for this function to return true when pressed again.

      This function should only be used to test a single button.

      -
    source

    pub fn not_pressed(&self, button: ButtonSet) -> bool

    Test if the specified buttons are not pressed.

    +
    source

    pub fn not_pressed(&self, button: ButtonSet) -> bool

    Test if the specified buttons are not pressed.

    Parameters
    • buttons A bit mask indicating which buttons to test. (Can be a single button)
    • @@ -161,16 +161,16 @@ The contents of the display buffer in RAM are copied to the display and will app
      Returns

      True if all buttons in the provided mask are currently released.

      Read the state of the buttons and return true if all the buttons in the specified mask are currently released.

      -
    source

    pub fn next_frame(&self) -> bool

    Indicate that it’s time to render the next frame.

    +
    source

    pub fn next_frame(&self) -> bool

    Indicate that it’s time to render the next frame.

    Returns

    true if it’s time for the next frame.

    When this function returns true, the amount of time has elapsed to display the next frame, as specified by setFrameRate() or setFrameDuration().

    This function will normally be called at the start of the rendering loop which would wait for true to be returned before rendering and displaying the next frame.

    -
    source

    pub fn poll_buttons(&self)

    Poll the buttons and track their state over time.

    +
    source

    pub fn poll_buttons(&self)

    Poll the buttons and track their state over time.

    Read and save the current state of the buttons and also keep track of the button state when this function was previously called. These states are used by the justPressed() and justReleased() functions to determine if a button has changed state between now and the previous call to pollButtons().

    This function should be called once at the start of each new frame.

    The justPressed() and justReleased() functions rely on this function.

    -
    source

    pub fn pressed(&self, button: ButtonSet) -> bool

    Test if the all of the specified buttons are pressed.

    +
    source

    pub fn pressed(&self, button: ButtonSet) -> bool

    Test if the all of the specified buttons are pressed.

    Parameters
    • buttons A bit mask indicating which buttons to test. (Can be a single button)
    • @@ -178,7 +178,7 @@ The contents of the display buffer in RAM are copied to the display and will app
      Returns

      true if all buttons in the provided mask are currently pressed.

      Read the state of the buttons and return true if all of the buttons in the specified mask are being pressed.

      -
    source

    pub fn print(&self, x: impl Printable)

    The Arduino Print class is available for writing text to the screen buffer.

    +
    source

    pub fn print(&self, x: impl Printable)

    The Arduino Print class is available for writing text to the screen buffer.

    For an Arduboy2 class object, functions provided by the Arduino Print class can be used to write text to the screen buffer, in the same manner as the Arduino Serial.print(), etc., functions.

    Print will use the write() function to actually draw each character in the screen buffer, using the library’s font5x7 font. Two character values are handled specially:

      @@ -188,7 +188,7 @@ The contents of the display buffer in RAM are copied to the display and will app
      Example
      #![allow(non_upper_case_globals)]
       use arduboy_rust::prelude::*;
      -const arduboy:Arduboy2 =Arduboy2::new();
      +const arduboy: Arduboy2 = Arduboy2::new();
       let value: i16 = 42;
       
       arduboy.print(b"Hello World\n\0"[..]); // Prints "Hello World" and then sets the
      @@ -197,7 +197,7 @@ arduboy.print(b"Hello World\n\0"[..]); arduboy.print(value); // Prints "42"
       arduboy.print("\n\0"); // Sets the text cursor to the start of the next line
       arduboy.print("hello world") // Prints normal [&str]
      -
    source

    pub fn set_cursor(&self, x: i16, y: i16)

    Set the location of the text cursor.

    +
    source

    pub fn set_cursor(&self, x: i16, y: i16)

    Set the location of the text cursor.

    Parameters
    • @@ -208,41 +208,41 @@ arduboy.print(b"Hello World\n\0"[..]);

    The location of the text cursor is set the the specified coordinates. The coordinates are in pixels. Since the coordinates can specify any pixel location, the text does not have to be placed on specific rows. As with all drawing functions, location 0, 0 is the top left corner of the display. The cursor location represents the top left corner of the next character written.

    -
    source

    pub fn set_frame_rate(&self, rate: u8)

    Set the frame rate used by the frame control functions.

    +
    source

    pub fn set_frame_rate(&self, rate: u8)

    Set the frame rate used by the frame control functions.

    Parameters
    • rate The desired frame rate in frames per second.

    Normally, the frame rate would be set to the desired value once, at the start of the game, but it can be changed at any time to alter the frame update rate.

    -
    source

    pub fn set_text_size(&self, size: u8)

    Set the text character size.

    +
    source

    pub fn set_text_size(&self, size: u8)

    Set the text character size.

    Parameters
    • s The text size multiplier. Must be 1 or higher.

    Setting a text size of 1 will result in standard size characters with one pixel for each bit in the bitmap for a character. The value specified is a multiplier. A value of 2 will double the width and height. A value of 3 will triple the dimensions, etc.

    -
    source

    pub fn audio_on(&self)

    Turn sound on.

    +
    source

    pub fn audio_on(&self)

    Turn sound on.

    The system is configured to generate sound. This function sets the sound mode only until the unit is powered off.

    -
    source

    pub fn audio_off(&self)

    Turn sound off (mute).

    +
    source

    pub fn audio_off(&self)

    Turn sound off (mute).

    The system is configured to not produce sound (mute). This function sets the sound mode only until the unit is powered off.

    -
    source

    pub fn audio_save_on_off(&self)

    Save the current sound state in EEPROM.

    +
    source

    pub fn audio_save_on_off(&self)

    Save the current sound state in EEPROM.

    The current sound state, set by on() or off(), is saved to the reserved system area in EEPROM. This allows the state to carry over between power cycles and after uploading a different sketch.

    Note EEPROM is limited in the number of times it can be written to. Sketches should not continuously change and then save the state rapidly.

    -
    source

    pub fn audio_toggle(&self)

    Toggle the sound on/off state.

    +
    source

    pub fn audio_toggle(&self)

    Toggle the sound on/off state.

    If the system is configured for sound on, it will be changed to sound off (mute). If sound is off, it will be changed to on. This function sets the sound mode only until the unit is powered off. To save the current mode use saveOnOff().

    -
    source

    pub fn audio_on_and_save(&self)

    Combines the use function of audio_on() and audio_save_on_off()

    -
    source

    pub fn audio_enabled(&self) -> bool

    Get the current sound state.

    +
    source

    pub fn audio_on_and_save(&self)

    Combines the use function of audio_on() and audio_save_on_off()

    +
    source

    pub fn audio_enabled(&self) -> bool

    Get the current sound state.

    Returns

    true if sound is currently enabled (not muted).

    This function should be used by code that actually generates sound. If true is returned, sound can be produced. If false is returned, sound should be muted.

    -
    source

    pub fn invert(&self, inverse: bool)

    Invert the entire display or set it back to normal.

    +
    source

    pub fn invert(&self, inverse: bool)

    Invert the entire display or set it back to normal.

    Parameters
    • inverse true will invert the display. false will set the display to no-inverted.

    Calling this function with a value of true will set the display to inverted mode. A pixel with a value of 0 will be on and a pixel set to 1 will be off.

    Once in inverted mode, the display will remain this way until it is set back to non-inverted mode by calling this function with false.

    -
    source

    pub fn collide_point(&self, point: Point, rect: Rect) -> bool

    Test if a point falls within a rectangle.

    +
    source

    pub fn collide_point(&self, point: Point, rect: Rect) -> bool

    Test if a point falls within a rectangle.

    Parameters

    • point A structure describing the location of the point.
    • @@ -251,7 +251,7 @@ EEPROM is limited in the number of times it can be written to. Sketches should n

      Returns true if the specified point is within the specified rectangle.

      This function is intended to detemine if an object, whose boundaries are defined by the given rectangle, is in contact with the given point.

      -
    source

    pub fn collide_rect(&self, rect1: Rect, rect2: Rect) -> bool

    Test if a rectangle is intersecting with another rectangle.

    +
    source

    pub fn collide_rect(&self, rect1: Rect, rect2: Rect) -> bool

    Test if a rectangle is intersecting with another rectangle.

    Parameters

    • rect1,rect2 Structures describing the size and locations of the rectangles.
    • @@ -259,14 +259,14 @@ true if the specified point is within the specified rectangle.

      Returns true if the first rectangle is intersecting the second.

      This function is intended to detemine if an object, whose boundaries are defined by the given rectangle, is in contact with another rectangular object.

      -
    source

    pub fn digital_write_rgb_single(&self, color: u8, val: u8)

    Set one of the RGB LEDs digitally, to either fully on or fully off.

    +
    source

    pub fn digital_write_rgb_single(&self, color: u8, val: u8)

    Set one of the RGB LEDs digitally, to either fully on or fully off.

    Parameters

    • color The name of the LED to set. The value given should be one of RED_LED, GREEN_LED or BLUE_LED.
    • val Indicates whether to turn the specified LED on or off. The value given should be RGB_ON or RGB_OFF.

    This 2 parameter version of the function will set a single LED within the RGB LED either fully on or fully off. See the description of the 3 parameter version of this function for more details on the RGB LED.

    -
    source

    pub fn digital_write_rgb(&self, red: u8, green: u8, blue: u8)

    Set the RGB LEDs digitally, to either fully on or fully off.

    +
    source

    pub fn digital_write_rgb(&self, red: u8, green: u8, blue: u8)

    Set the RGB LEDs digitally, to either fully on or fully off.

    Parameters

    • red,green,blue Use value RGB_ON or RGB_OFF to set each LED.
    • @@ -282,7 +282,7 @@ true if the first rectangle is intersecting the second.

      RGB_ON RGB_OFF RGB_ON Magenta RGB_ON RGB_ON RGB_OFF Yellow RGB_ON RGB_ON RGB_ON White -
    source

    pub fn set_rgb_led_single(&self, color: u8, val: u8)

    Set the brightness of one of the RGB LEDs without affecting the others.

    +
    source

    pub fn set_rgb_led_single(&self, color: u8, val: u8)

    Set the brightness of one of the RGB LEDs without affecting the others.

    Parameters

    • color The name of the LED to set. The value given should be one of RED_LED, GREEN_LED or BLUE_LED.
    • @@ -293,7 +293,7 @@ true if the first rectangle is intersecting the second.

      In order to use this function, the 3 parameter version must first be called at least once, in order to initialize the hardware.

      This 2 parameter version of the function will set the brightness of a single LED within the RGB LED without affecting the current brightness of the other two. See the description of the 3 parameter version of this function for more details on the RGB LED.

      -
    source

    pub fn set_rgb_led(&self, red: u8, green: u8, blue: u8)

    Set the light output of the RGB LED.

    +
    source

    pub fn set_rgb_led(&self, red: u8, green: u8, blue: u8)

    Set the light output of the RGB LED.

    Parameters

    • red,green,blue The brightness value for each LED.
    • @@ -307,7 +307,7 @@ true if the first rectangle is intersecting the second.

      Many of the Kickstarter Arduboys were accidentally shipped with the RGB LED installed incorrectly. For these units, the green LED cannot be lit. As long as the green led is set to off, setting the red LED will actually control the blue LED and setting the blue LED will actually control the red LED. If the green LED is turned fully on, none of the LEDs will light.

      -
    source

    pub fn every_x_frames(&self, frames: u8) -> bool

    Indicate if the specified number of frames has elapsed.

    +
    source

    pub fn every_x_frames(&self, frames: u8) -> bool

    Indicate if the specified number of frames has elapsed.

    Parameters

    • frames The desired number of elapsed frames.
    • @@ -320,60 +320,70 @@ true if the specified number of frames has elapsed.

       #![allow(non_upper_case_globals)]
        use arduboy_rust::prelude::*;
      - const arduboy:Arduboy2 =Arduboy2::new();
      + const arduboy: Arduboy2 = Arduboy2::new();
       
        if arduboy.everyXFrames(5) {
            if arduboy.pressed(A_BUTTON) {
                //fireShot(); // just some example
            }
        }
      -
    source

    pub fn flip_vertical(&self, flipped: bool)

    Flip the display vertically or set it back to normal.

    +
    source

    pub fn flip_vertical(&self, flipped: bool)

    Flip the display vertically or set it back to normal.

    Parameters

    • flipped true will set vertical flip mode. false will set normal vertical orientation.

    Calling this function with a value of true will cause the Y coordinate to start at the bottom edge of the display instead of the top, effectively flipping the display vertically.

    Once in vertical flip mode, it will remain this way until normal vertical mode is set by calling this function with a value of false.

    -
    source

    pub fn flip_horizontal(&self, flipped: bool)

    Flip the display horizontally or set it back to normal.

    +
    source

    pub fn flip_horizontal(&self, flipped: bool)

    Flip the display horizontally or set it back to normal.

    Parameters

    • flipped true will set horizontal flip mode. false will set normal horizontal orientation.

    Calling this function with a value of true will cause the X coordinate to start at the left edge of the display instead of the right, effectively flipping the display horizontally.

    Once in horizontal flip mode, it will remain this way until normal horizontal mode is set by calling this function with a value of false.

    -
    source

    pub fn set_text_color(&self, color: Color)

    Set the text foreground color.

    +
    source

    pub fn set_text_color(&self, color: Color)

    Set the text foreground color.

    Parameters

    • color The color to be used for following text. The values WHITE or BLACK should be used.
    -
    source

    pub fn set_text_background_color(&self, color: Color)

    Set the text background color.

    +
    source

    pub fn set_text_background_color(&self, color: Color)

    Set the text background color.

    Parameters

    • color The background color to be used for following text. The values WHITE or BLACK should be used.

    The background pixels of following characters will be set to the specified color.

    However, if the background color is set to be the same as the text color, the background will be transparent. Only the foreground pixels will be drawn. The background pixels will remain as they were before the character was drawn.

    -
    source

    pub fn set_cursor_x(&self, x: i16)

    Set the X coordinate of the text cursor location.

    +
    source

    pub fn set_cursor_x(&self, x: i16)

    Set the X coordinate of the text cursor location.

    Parameters

    • x The X (horizontal) coordinate, in pixels, for the new location of the text cursor.

    The X coordinate for the location of the text cursor is set to the specified value, leaving the Y coordinate unchanged. For more details about the text cursor, see the setCursor() function.

    -
    source

    pub fn set_cursor_y(&self, y: i16)

    Set the Y coordinate of the text cursor location.

    +
    source

    pub fn set_cursor_y(&self, y: i16)

    Set the Y coordinate of the text cursor location.

    Parameters

    • y The Y (vertical) coordinate, in pixels, for the new location of the text cursor.

    The Y coordinate for the location of the text cursor is set to the specified value, leaving the X coordinate unchanged. For more details about the text cursor, see the setCursor() function.

    -
    source

    pub fn set_text_wrap(&self, w: bool)

    Set or disable text wrap mode.

    +
    source

    pub fn set_text_wrap(&self, w: bool)

    Set or disable text wrap mode.

    Parameters

    • w true enables text wrap mode. false disables it.

    Text wrap mode is enabled by specifying true. In wrap mode, if a character to be drawn would end up partially or fully past the right edge of the screen (based on the current text size), it will be placed at the start of the next line. The text cursor will be adjusted accordingly.

    If wrap mode is disabled, characters will always be written at the current text cursor position. A character near the right edge of the screen may only be partially displayed and characters drawn at a position past the right edge of the screen will remain off screen.

    -
    source

    pub fn idle(&self)

    Idle the CPU to save power.

    +
    source

    pub fn idle(&self)

    Idle the CPU to save power.

    This puts the CPU in idle sleep mode. You should call this as often as you can for the best power savings. The timer 0 overflow interrupt will wake up the chip every 1ms, so even at 60 FPS a well written app should be able to sleep maybe half the time in between rendering it’s own frames.

    +
    source

    pub fn buttons_state(&self) -> u8

    Get the current state of all buttons as a bitmask.

    +
    Returns
    +

    A bitmask of the state of all the buttons.

    +

    The returned mask contains a bit for each button. For any pressed button, its bit will be 1. For released buttons their associated bits will be 0.

    +

    The following defined mask values should be used for the buttons: +LEFT_BUTTON, RIGHT_BUTTON, UP_BUTTON, DOWN_BUTTON, A_BUTTON, B_BUTTON

    +
    source

    pub fn exit_to_bootloader(&self)

    Exit the sketch and start the bootloader.

    +

    The sketch will exit and the bootloader will be started in command mode. The effect will be similar to pressing the reset button.

    +

    This function is intended to be used to allow uploading a new sketch, when the USB code has been removed to gain more code space. Ideally, the sketch would present a “New Sketch Upload” menu or prompt telling the user to “Press and hold the DOWN button when the procedure to upload a new sketch has been initiated”. +The sketch would then wait for the DOWN button to be pressed and then call this function.

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Arduboy2

    §

    impl Send for Arduboy2

    §

    impl Sync for Arduboy2

    §

    impl Unpin for Arduboy2

    §

    impl UnwindSafe for Arduboy2

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere diff --git a/docs/doc/arduboy_rust/prelude/arduboy2/struct.Point.html b/docs/doc/arduboy_rust/prelude/arduboy2/struct.Point.html index 78d80d3..346ed2c 100644 --- a/docs/doc/arduboy_rust/prelude/arduboy2/struct.Point.html +++ b/docs/doc/arduboy_rust/prelude/arduboy2/struct.Point.html @@ -1,10 +1,10 @@ -Point in arduboy_rust::prelude::arduboy2 - Rust
    pub struct Point {
    +Point in arduboy_rust::prelude::arduboy2 - Rust
    pub struct Point {
         pub x: i16,
         pub y: i16,
     }
    Expand description

    This struct is used by a few Arduboy functions.

    Fields§

    §x: i16

    Position X

    §y: i16

    Position Y

    -

    Trait Implementations§

    source§

    impl Clone for Point

    source§

    fn clone(&self) -> Point

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Point

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Copy for Point

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Point

    §

    impl Send for Point

    §

    impl Sync for Point

    §

    impl Unpin for Point

    §

    impl UnwindSafe for Point

    Blanket Implementations§

    §

    impl<T> Any for Twhere +

    Trait Implementations§

    source§

    impl Clone for Point

    source§

    fn clone(&self) -> Point

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Point

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Copy for Point

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Point

    §

    impl Send for Point

    §

    impl Sync for Point

    §

    impl Unpin for Point

    §

    impl UnwindSafe for Point

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    §

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> From<T> for T

    §

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/doc/arduboy_rust/prelude/arduboy2/struct.Rect.html b/docs/doc/arduboy_rust/prelude/arduboy2/struct.Rect.html index c837799..3891987 100644 --- a/docs/doc/arduboy_rust/prelude/arduboy2/struct.Rect.html +++ b/docs/doc/arduboy_rust/prelude/arduboy2/struct.Rect.html @@ -1,4 +1,4 @@ -Rect in arduboy_rust::prelude::arduboy2 - Rust
    pub struct Rect {
    +Rect in arduboy_rust::prelude::arduboy2 - Rust
    pub struct Rect {
         pub x: i16,
         pub y: i16,
         pub width: u8,
    @@ -8,7 +8,7 @@
     
    §y: i16

    Position Y

    §width: u8

    Rect width

    §height: u8

    Rect height

    -

    Trait Implementations§

    source§

    impl Clone for Rect

    source§

    fn clone(&self) -> Rect

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Rect

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Copy for Rect

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Rect

    §

    impl Send for Rect

    §

    impl Sync for Rect

    §

    impl Unpin for Rect

    §

    impl UnwindSafe for Rect

    Blanket Implementations§

    §

    impl<T> Any for Twhere +

    Trait Implementations§

    source§

    impl Clone for Rect

    source§

    fn clone(&self) -> Rect

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Rect

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Copy for Rect

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Rect

    §

    impl Send for Rect

    §

    impl Sync for Rect

    §

    impl Unpin for Rect

    §

    impl UnwindSafe for Rect

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    §

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> From<T> for T

    §

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.begin.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.begin.html index 070829d..9762650 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.begin.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.begin.html @@ -1 +1 @@ -begin in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn begin()
    \ No newline at end of file +begin in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn begin()
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.begin_data.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.begin_data.html index 7d01e34..5217c56 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.begin_data.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.begin_data.html @@ -1 +1 @@ -begin_data in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn begin_data(datapage: u16)
    \ No newline at end of file +begin_data in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn begin_data(datapage: u16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.begin_data_save.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.begin_data_save.html index 00e4650..fa2bf8d 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.begin_data_save.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.begin_data_save.html @@ -1 +1 @@ -begin_data_save in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn begin_data_save(datapage: u16, savepage: u16)
    \ No newline at end of file +begin_data_save in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn begin_data_save(datapage: u16, savepage: u16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.display.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.display.html index c3274ca..a748adc 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.display.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.display.html @@ -1 +1 @@ -display in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn display()
    \ No newline at end of file +display in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn display()
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.display_clear.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.display_clear.html index bebb382..8d008a4 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.display_clear.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.display_clear.html @@ -1 +1 @@ -display_clear in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn display_clear()
    \ No newline at end of file +display_clear in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn display_clear()
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_bitmap.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_bitmap.html index 903e99e..02aad4d 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_bitmap.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_bitmap.html @@ -1 +1 @@ -draw_bitmap in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn draw_bitmap(x: i16, y: i16, address: u32, frame: u8, mode: u8)
    \ No newline at end of file +draw_bitmap in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn draw_bitmap(x: i16, y: i16, address: u32, frame: u8, mode: u8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_char.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_char.html index 304885f..1d3fbbb 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_char.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_char.html @@ -1 +1 @@ -draw_char in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn draw_char(c: u8)
    \ No newline at end of file +draw_char in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn draw_char(c: u8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_frame.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_frame.html index 3d50735..c7d9159 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_frame.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_frame.html @@ -1 +1 @@ -draw_frame in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn draw_frame(address: u32) -> u32
    \ No newline at end of file +draw_frame in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn draw_frame(address: u32) -> u32
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_number.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_number.html index f755ce3..6180daf 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_number.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_number.html @@ -1 +1 @@ -draw_number in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn draw_number(n: impl DrawableNumber, digits: i8)
    \ No newline at end of file +draw_number in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn draw_number(n: impl DrawableNumber, digits: i8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_string.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_string.html index 1c79099..c7d8aed 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_string.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.draw_string.html @@ -1 +1 @@ -draw_string in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn draw_string(string: impl DrawableString)
    \ No newline at end of file +draw_string in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn draw_string(string: impl DrawableString)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.read_data_array.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.read_data_array.html index 30ba021..2a52300 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.read_data_array.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.read_data_array.html @@ -1,4 +1,4 @@ -read_data_array in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn read_data_array(
    +read_data_array in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn read_data_array(
         address: u32,
         index: u8,
         offset: u8,
    diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor.html
    index 5d13d5a..edb0c0b 100644
    --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor.html
    +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor.html
    @@ -1 +1 @@
    -set_cursor in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn set_cursor(x: i16, y: i16)
    \ No newline at end of file +set_cursor in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn set_cursor(x: i16, y: i16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_range.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_range.html index 46b4b80..7a35cc9 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_range.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_range.html @@ -1 +1 @@ -set_cursor_range in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn set_cursor_range(left: i32, wrap: i32)
    \ No newline at end of file +set_cursor_range in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn set_cursor_range(left: i16, wrap: i16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_x.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_x.html index a4af9a0..2a5e13e 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_x.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_x.html @@ -1 +1 @@ -set_cursor_x in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn set_cursor_x(x: i16)
    \ No newline at end of file +set_cursor_x in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn set_cursor_x(x: i16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_y.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_y.html index 0c97c65..f5ab299 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_y.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_cursor_y.html @@ -1 +1 @@ -set_cursor_y in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn set_cursor_y(y: i16)
    \ No newline at end of file +set_cursor_y in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn set_cursor_y(y: i16)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_font.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_font.html index 6a8cc92..05f33a9 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_font.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_font.html @@ -1 +1 @@ -set_font in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn set_font(address: u32, mode: u8)
    \ No newline at end of file +set_font in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn set_font(address: u32, mode: u8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_frame.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_frame.html index 95584c0..e5322c3 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_frame.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/fn.set_frame.html @@ -1 +1 @@ -set_frame in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn set_frame(frame: u32, repeat: u8)
    \ No newline at end of file +set_frame in arduboy_rust::prelude::arduboyfx::fx - Rust
    pub fn set_frame(frame: u32, repeat: u8)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/index.html b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/index.html index ef911d1..5f3649b 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/index.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/index.html @@ -1,11 +1,10 @@ -arduboy_rust::prelude::arduboyfx::fx - Rust
    Expand description

    Functions given by the ArduboyFX library.

    +arduboy_rust::prelude::arduboyfx::fx - Rust
    Expand description

    Functions given by the ArduboyFX library.

    You can use the ‘FX::’ module to access the functions after the import of the prelude

    use arduboy_rust::prelude::*;
     
    -fn setup(){
    +fn setup() {
         FX::begin()
    -}
    -
    +}

    You will need to uncomment the ArduboyFX_Library in the import_config.h file.

    -

    Functions

    \ No newline at end of file +

    Functions

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/sidebar-items.js b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/sidebar-items.js index e1fd60d..9b9af4e 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/fx/sidebar-items.js +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/fx/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"fn":["begin","begin_data","begin_data_save","display","display_clear","draw_bitmap","draw_char","draw_frame","draw_number","draw_string","read_data_array","set_cursor","set_cursor_range","set_cursor_x","set_cursor_y","set_font","set_frame"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"fn":["begin","begin_data","begin_data_save","display","display_clear","draw_bitmap","draw_char","draw_frame","draw_number","draw_string","load_game_state","read_data_array","save_game_state","set_cursor","set_cursor_range","set_cursor_x","set_cursor_y","set_font","set_font_mode","set_frame"]}; \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/arduboyfx/trait.DrawableNumber.html b/docs/doc/arduboy_rust/prelude/arduboyfx/trait.DrawableNumber.html index 2610eb5..7e00fb3 100644 --- a/docs/doc/arduboy_rust/prelude/arduboyfx/trait.DrawableNumber.html +++ b/docs/doc/arduboy_rust/prelude/arduboyfx/trait.DrawableNumber.html @@ -2,4 +2,4 @@ Self: Sized,{ // Required method fn draw(self, digits: i8); -}

    Required Methods§

    source

    fn draw(self, digits: i8)

    Implementations on Foreign Types§

    source§

    impl DrawableNumber for i16

    source§

    fn draw(self, digits: i8)

    source§

    impl DrawableNumber for u16

    source§

    fn draw(self, digits: i8)

    source§

    impl DrawableNumber for i32

    source§

    fn draw(self, digits: i8)

    source§

    impl DrawableNumber for u32

    source§

    fn draw(self, digits: i8)

    Implementors§

    \ No newline at end of file +}

    Required Methods§

    source

    fn draw(self, digits: i8)

    Implementations on Foreign Types§

    source§

    impl DrawableNumber for u16

    source§

    fn draw(self, digits: i8)

    source§

    impl DrawableNumber for i16

    source§

    fn draw(self, digits: i8)

    source§

    impl DrawableNumber for i32

    source§

    fn draw(self, digits: i8)

    source§

    impl DrawableNumber for u32

    source§

    fn draw(self, digits: i8)

    Implementors§

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/buttons/constant.A_BUTTON.html b/docs/doc/arduboy_rust/prelude/buttons/constant.A_BUTTON.html index 9669b2d..b845792 100644 --- a/docs/doc/arduboy_rust/prelude/buttons/constant.A_BUTTON.html +++ b/docs/doc/arduboy_rust/prelude/buttons/constant.A_BUTTON.html @@ -1,2 +1,2 @@ -A_BUTTON in arduboy_rust::prelude::buttons - Rust
    pub const A_BUTTON: ButtonSet;
    Expand description

    Just a const for the A button

    +A_BUTTON in arduboy_rust::prelude::buttons - Rust
    pub const A_BUTTON: ButtonSet;
    Expand description

    Just a const for the A button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/buttons/constant.B_BUTTON.html b/docs/doc/arduboy_rust/prelude/buttons/constant.B_BUTTON.html index 20e6dec..18d6b54 100644 --- a/docs/doc/arduboy_rust/prelude/buttons/constant.B_BUTTON.html +++ b/docs/doc/arduboy_rust/prelude/buttons/constant.B_BUTTON.html @@ -1,2 +1,2 @@ -B_BUTTON in arduboy_rust::prelude::buttons - Rust
    pub const B_BUTTON: ButtonSet;
    Expand description

    Just a const for the B button

    +B_BUTTON in arduboy_rust::prelude::buttons - Rust
    pub const B_BUTTON: ButtonSet;
    Expand description

    Just a const for the B button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/buttons/constant.DOWN_BUTTON.html b/docs/doc/arduboy_rust/prelude/buttons/constant.DOWN_BUTTON.html index a84a9f3..960116b 100644 --- a/docs/doc/arduboy_rust/prelude/buttons/constant.DOWN_BUTTON.html +++ b/docs/doc/arduboy_rust/prelude/buttons/constant.DOWN_BUTTON.html @@ -1,2 +1,2 @@ -DOWN_BUTTON in arduboy_rust::prelude::buttons - Rust
    pub const DOWN_BUTTON: ButtonSet;
    Expand description

    Just a const for the DOWN button

    +DOWN_BUTTON in arduboy_rust::prelude::buttons - Rust
    pub const DOWN_BUTTON: ButtonSet;
    Expand description

    Just a const for the DOWN button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/buttons/constant.LEFT_BUTTON.html b/docs/doc/arduboy_rust/prelude/buttons/constant.LEFT_BUTTON.html index 7d16e6d..92caba1 100644 --- a/docs/doc/arduboy_rust/prelude/buttons/constant.LEFT_BUTTON.html +++ b/docs/doc/arduboy_rust/prelude/buttons/constant.LEFT_BUTTON.html @@ -1,2 +1,2 @@ -LEFT_BUTTON in arduboy_rust::prelude::buttons - Rust
    pub const LEFT_BUTTON: ButtonSet;
    Expand description

    Just a const for the LEFT button

    +LEFT_BUTTON in arduboy_rust::prelude::buttons - Rust
    pub const LEFT_BUTTON: ButtonSet;
    Expand description

    Just a const for the LEFT button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/buttons/constant.RIGHT_BUTTON.html b/docs/doc/arduboy_rust/prelude/buttons/constant.RIGHT_BUTTON.html index 6c1ceef..3195c73 100644 --- a/docs/doc/arduboy_rust/prelude/buttons/constant.RIGHT_BUTTON.html +++ b/docs/doc/arduboy_rust/prelude/buttons/constant.RIGHT_BUTTON.html @@ -1,2 +1,2 @@ -RIGHT_BUTTON in arduboy_rust::prelude::buttons - Rust
    pub const RIGHT_BUTTON: ButtonSet;
    Expand description

    Just a const for the RIGHT button

    +RIGHT_BUTTON in arduboy_rust::prelude::buttons - Rust
    pub const RIGHT_BUTTON: ButtonSet;
    Expand description

    Just a const for the RIGHT button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/buttons/constant.UP_BUTTON.html b/docs/doc/arduboy_rust/prelude/buttons/constant.UP_BUTTON.html index 612ec57..c491755 100644 --- a/docs/doc/arduboy_rust/prelude/buttons/constant.UP_BUTTON.html +++ b/docs/doc/arduboy_rust/prelude/buttons/constant.UP_BUTTON.html @@ -1,2 +1,2 @@ -UP_BUTTON in arduboy_rust::prelude::buttons - Rust
    pub const UP_BUTTON: ButtonSet;
    Expand description

    Just a const for the UP button

    +UP_BUTTON in arduboy_rust::prelude::buttons - Rust
    pub const UP_BUTTON: ButtonSet;
    Expand description

    Just a const for the UP button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/buttons/index.html b/docs/doc/arduboy_rust/prelude/buttons/index.html index e5524ac..79ca5f7 100644 --- a/docs/doc/arduboy_rust/prelude/buttons/index.html +++ b/docs/doc/arduboy_rust/prelude/buttons/index.html @@ -1,2 +1,2 @@ -arduboy_rust::prelude::buttons - Rust
    Expand description

    A list of all six buttons available on the Arduboy

    -

    Structs

    • This struct gives the library a understanding what Buttons on the Arduboy are.

    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 B button
    • Just a const for the DOWN button
    • Just a const for the DOWN button
    • Just a const for the LEFT button
    • Just a const for the LEFT button
    • 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
    \ No newline at end of file +arduboy_rust::prelude::buttons - Rust
    Expand description

    A list of all six buttons available on the Arduboy

    +

    Structs

    • This struct gives the library a understanding what Buttons on the Arduboy are.

    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 B button
    • Just a const for the DOWN button
    • Just a const for the DOWN button
    • Just a const for the LEFT button
    • Just a const for the LEFT button
    • 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
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/buttons/sidebar-items.js b/docs/doc/arduboy_rust/prelude/buttons/sidebar-items.js index 0e791b6..896beb1 100644 --- a/docs/doc/arduboy_rust/prelude/buttons/sidebar-items.js +++ b/docs/doc/arduboy_rust/prelude/buttons/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":["A","A_BUTTON","B","B_BUTTON","DOWN","DOWN_BUTTON","LEFT","LEFT_BUTTON","RIGHT","RIGHT_BUTTON","UP","UP_BUTTON"],"struct":["ButtonSet"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["A","ANY_BUTTON","A_BUTTON","B","B_BUTTON","DOWN","DOWN_BUTTON","LEFT","LEFT_BUTTON","RIGHT","RIGHT_BUTTON","UP","UP_BUTTON"],"struct":["ButtonSet"]}; \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/buttons/struct.ButtonSet.html b/docs/doc/arduboy_rust/prelude/buttons/struct.ButtonSet.html index 34865c2..cd2ec1b 100644 --- a/docs/doc/arduboy_rust/prelude/buttons/struct.ButtonSet.html +++ b/docs/doc/arduboy_rust/prelude/buttons/struct.ButtonSet.html @@ -1,16 +1,16 @@ -ButtonSet in arduboy_rust::prelude::buttons - Rust
    pub struct ButtonSet {
    +ButtonSet in arduboy_rust::prelude::buttons - Rust
    pub struct ButtonSet {
         pub flag_set: u8,
     }
    Expand description

    This struct gives the library a understanding what Buttons on the Arduboy are.

    -

    Fields§

    §flag_set: u8

    Implementations§

    source§

    impl ButtonSet

    source

    pub unsafe fn pressed(&self) -> bool

    source

    pub unsafe fn just_pressed(&self) -> bool

    source

    pub unsafe fn just_released(&self) -> bool

    source

    pub unsafe fn not_pressed(&self) -> bool

    Trait Implementations§

    source§

    impl BitOr<ButtonSet> for ButtonSet

    §

    type Output = ButtonSet

    The resulting type after applying the | operator.
    source§

    fn bitor(self, other: Self) -> Self

    Performs the | operation. Read more
    source§

    impl Clone for ButtonSet

    source§

    fn clone(&self) -> ButtonSet

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ButtonSet

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for ButtonSet

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given [Hasher]. Read more
    1.3.0§

    fn hash_slice<H>(data: &[Self], state: &mut H)where +

    Fields§

    §flag_set: u8

    Implementations§

    source§

    impl ButtonSet

    source

    pub unsafe fn pressed(&self) -> bool

    source

    pub unsafe fn just_pressed(&self) -> bool

    source

    pub unsafe fn just_released(&self) -> bool

    source

    pub unsafe fn not_pressed(&self) -> bool

    Trait Implementations§

    source§

    impl BitOr<ButtonSet> for ButtonSet

    §

    type Output = ButtonSet

    The resulting type after applying the | operator.
    source§

    fn bitor(self, other: Self) -> Self

    Performs the | operation. Read more
    source§

    impl Clone for ButtonSet

    source§

    fn clone(&self) -> ButtonSet

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ButtonSet

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for ButtonSet

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given [Hasher]. Read more
    1.3.0§

    fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given [Hasher]. Read more
    source§

    impl Ord for ButtonSet

    source§

    fn cmp(&self, other: &ButtonSet) -> Ordering

    This method returns an [Ordering] between self and other. Read more
    1.21.0§

    fn max(self, other: Self) -> Selfwhere + Self: Sized,

    Feeds a slice of this type into the given [Hasher]. Read more
    source§

    impl Ord for ButtonSet

    source§

    fn cmp(&self, other: &ButtonSet) -> Ordering

    This method returns an [Ordering] between self and other. Read more
    1.21.0§

    fn max(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0§

    fn min(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0§

    fn clamp(self, min: Self, max: Self) -> Selfwhere - Self: Sized + PartialOrd<Self>,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<ButtonSet> for ButtonSet

    source§

    fn eq(&self, other: &ButtonSet) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd<Self>,
    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<ButtonSet> for ButtonSet

    source§

    fn eq(&self, other: &ButtonSet) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd<ButtonSet> for ButtonSet

    source§

    fn partial_cmp(&self, other: &ButtonSet) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd<ButtonSet> for ButtonSet

    source§

    fn partial_cmp(&self, other: &ButtonSet) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Copy for ButtonSet

    source§

    impl Eq for ButtonSet

    source§

    impl StructuralEq for ButtonSet

    source§

    impl StructuralPartialEq for ButtonSet

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for ButtonSet

    §

    impl Send for ButtonSet

    §

    impl Sync for ButtonSet

    §

    impl Unpin for ButtonSet

    §

    impl UnwindSafe for ButtonSet

    Blanket Implementations§

    §

    impl<T> Any for Twhere +operator. Read more

    source§

    impl Copy for ButtonSet

    source§

    impl Eq for ButtonSet

    source§

    impl StructuralEq for ButtonSet

    source§

    impl StructuralPartialEq for ButtonSet

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for ButtonSet

    §

    impl Send for ButtonSet

    §

    impl Sync for ButtonSet

    §

    impl Unpin for ButtonSet

    §

    impl UnwindSafe for ButtonSet

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    §

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> From<T> for T

    §

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/doc/arduboy_rust/prelude/constant.A_BUTTON.html b/docs/doc/arduboy_rust/prelude/constant.A_BUTTON.html index 5dca1fe..0681717 100644 --- a/docs/doc/arduboy_rust/prelude/constant.A_BUTTON.html +++ b/docs/doc/arduboy_rust/prelude/constant.A_BUTTON.html @@ -1,2 +1,2 @@ -A_BUTTON in arduboy_rust::prelude - Rust

    Constant arduboy_rust::prelude::A_BUTTON

    source ·
    pub const A_BUTTON: ButtonSet;
    Expand description

    Just a const for the A button

    +A_BUTTON in arduboy_rust::prelude - Rust

    Constant arduboy_rust::prelude::A_BUTTON

    source ·
    pub const A_BUTTON: ButtonSet;
    Expand description

    Just a const for the A button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/constant.B_BUTTON.html b/docs/doc/arduboy_rust/prelude/constant.B_BUTTON.html index 796946c..a46a113 100644 --- a/docs/doc/arduboy_rust/prelude/constant.B_BUTTON.html +++ b/docs/doc/arduboy_rust/prelude/constant.B_BUTTON.html @@ -1,2 +1,2 @@ -B_BUTTON in arduboy_rust::prelude - Rust

    Constant arduboy_rust::prelude::B_BUTTON

    source ·
    pub const B_BUTTON: ButtonSet;
    Expand description

    Just a const for the B button

    +B_BUTTON in arduboy_rust::prelude - Rust

    Constant arduboy_rust::prelude::B_BUTTON

    source ·
    pub const B_BUTTON: ButtonSet;
    Expand description

    Just a const for the B button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/constant.DOWN_BUTTON.html b/docs/doc/arduboy_rust/prelude/constant.DOWN_BUTTON.html index 03cd998..a36d53f 100644 --- a/docs/doc/arduboy_rust/prelude/constant.DOWN_BUTTON.html +++ b/docs/doc/arduboy_rust/prelude/constant.DOWN_BUTTON.html @@ -1,2 +1,2 @@ -DOWN_BUTTON in arduboy_rust::prelude - Rust
    pub const DOWN_BUTTON: ButtonSet;
    Expand description

    Just a const for the DOWN button

    +DOWN_BUTTON in arduboy_rust::prelude - Rust
    pub const DOWN_BUTTON: ButtonSet;
    Expand description

    Just a const for the DOWN button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/constant.FONT_SIZE.html b/docs/doc/arduboy_rust/prelude/constant.FONT_SIZE.html index 6e598ce..71f895d 100644 --- a/docs/doc/arduboy_rust/prelude/constant.FONT_SIZE.html +++ b/docs/doc/arduboy_rust/prelude/constant.FONT_SIZE.html @@ -1,3 +1,3 @@ -FONT_SIZE in arduboy_rust::prelude - Rust
    pub const FONT_SIZE: u8 = 6;
    Expand description

    The standard font size of the arduboy

    +FONT_SIZE in arduboy_rust::prelude - Rust
    pub const FONT_SIZE: u8 = 6;
    Expand description

    The standard font size of the arduboy

    this is to calculate with it.

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/constant.HEIGHT.html b/docs/doc/arduboy_rust/prelude/constant.HEIGHT.html index 9849211..0dddddb 100644 --- a/docs/doc/arduboy_rust/prelude/constant.HEIGHT.html +++ b/docs/doc/arduboy_rust/prelude/constant.HEIGHT.html @@ -1,3 +1,3 @@ -HEIGHT in arduboy_rust::prelude - Rust

    Constant arduboy_rust::prelude::HEIGHT

    source ·
    pub const HEIGHT: i16 = 64;
    Expand description

    The standard height of the arduboy

    +HEIGHT in arduboy_rust::prelude - Rust

    Constant arduboy_rust::prelude::HEIGHT

    source ·
    pub const HEIGHT: i16 = 64;
    Expand description

    The standard height of the arduboy

    this is to calculate with it.

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/constant.LEFT_BUTTON.html b/docs/doc/arduboy_rust/prelude/constant.LEFT_BUTTON.html index 8ca1137..1c0226b 100644 --- a/docs/doc/arduboy_rust/prelude/constant.LEFT_BUTTON.html +++ b/docs/doc/arduboy_rust/prelude/constant.LEFT_BUTTON.html @@ -1,2 +1,2 @@ -LEFT_BUTTON in arduboy_rust::prelude - Rust
    pub const LEFT_BUTTON: ButtonSet;
    Expand description

    Just a const for the LEFT button

    +LEFT_BUTTON in arduboy_rust::prelude - Rust
    pub const LEFT_BUTTON: ButtonSet;
    Expand description

    Just a const for the LEFT button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/constant.RIGHT_BUTTON.html b/docs/doc/arduboy_rust/prelude/constant.RIGHT_BUTTON.html index 8736a15..16ed272 100644 --- a/docs/doc/arduboy_rust/prelude/constant.RIGHT_BUTTON.html +++ b/docs/doc/arduboy_rust/prelude/constant.RIGHT_BUTTON.html @@ -1,2 +1,2 @@ -RIGHT_BUTTON in arduboy_rust::prelude - Rust
    pub const RIGHT_BUTTON: ButtonSet;
    Expand description

    Just a const for the RIGHT button

    +RIGHT_BUTTON in arduboy_rust::prelude - Rust
    pub const RIGHT_BUTTON: ButtonSet;
    Expand description

    Just a const for the RIGHT button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/constant.UP_BUTTON.html b/docs/doc/arduboy_rust/prelude/constant.UP_BUTTON.html index 5f80163..3ad3fd3 100644 --- a/docs/doc/arduboy_rust/prelude/constant.UP_BUTTON.html +++ b/docs/doc/arduboy_rust/prelude/constant.UP_BUTTON.html @@ -1,2 +1,2 @@ -UP_BUTTON in arduboy_rust::prelude - Rust
    pub const UP_BUTTON: ButtonSet;
    Expand description

    Just a const for the UP button

    +UP_BUTTON in arduboy_rust::prelude - Rust
    pub const UP_BUTTON: ButtonSet;
    Expand description

    Just a const for the UP button

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/constant.WIDTH.html b/docs/doc/arduboy_rust/prelude/constant.WIDTH.html index a4c896c..ae1befa 100644 --- a/docs/doc/arduboy_rust/prelude/constant.WIDTH.html +++ b/docs/doc/arduboy_rust/prelude/constant.WIDTH.html @@ -1,3 +1,3 @@ -WIDTH in arduboy_rust::prelude - Rust

    Constant arduboy_rust::prelude::WIDTH

    source ·
    pub const WIDTH: i16 = 128;
    Expand description

    The standard width of the arduboy

    +WIDTH in arduboy_rust::prelude - Rust

    Constant arduboy_rust::prelude::WIDTH

    source ·
    pub const WIDTH: i16 = 128;
    Expand description

    The standard width of the arduboy

    this is to calculate with it.

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/enum.Color.html b/docs/doc/arduboy_rust/prelude/enum.Color.html index a8546e4..bd1ccac 100644 --- a/docs/doc/arduboy_rust/prelude/enum.Color.html +++ b/docs/doc/arduboy_rust/prelude/enum.Color.html @@ -1,19 +1,19 @@ -Color in arduboy_rust::prelude - Rust
    #[repr(u8)]
    pub enum Color { +Color in arduboy_rust::prelude - Rust
    #[repr(u8)]
    pub enum Color { Black, White, }
    Expand description

    This item is to chose between Black or White

    Variants§

    §

    Black

    Led is off

    §

    White

    Led is on

    -

    Trait Implementations§

    source§

    impl Clone for Color

    source§

    fn clone(&self) -> Color

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Color

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for Color

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given [Hasher]. Read more
    1.3.0§

    fn hash_slice<H>(data: &[Self], state: &mut H)where +

    Trait Implementations§

    source§

    impl Clone for Color

    source§

    fn clone(&self) -> Color

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Color

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for Color

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given [Hasher]. Read more
    1.3.0§

    fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given [Hasher]. Read more
    source§

    impl Not for Color

    §

    type Output = Color

    The resulting type after applying the ! operator.
    source§

    fn not(self) -> Self::Output

    Performs the unary ! operation. Read more
    source§

    impl Ord for Color

    source§

    fn cmp(&self, other: &Color) -> Ordering

    This method returns an [Ordering] between self and other. Read more
    1.21.0§

    fn max(self, other: Self) -> Selfwhere + Self: Sized,

    Feeds a slice of this type into the given [Hasher]. Read more
    source§

    impl Not for Color

    §

    type Output = Color

    The resulting type after applying the ! operator.
    source§

    fn not(self) -> Self::Output

    Performs the unary ! operation. Read more
    source§

    impl Ord for Color

    source§

    fn cmp(&self, other: &Color) -> Ordering

    This method returns an [Ordering] between self and other. Read more
    1.21.0§

    fn max(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0§

    fn min(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0§

    fn clamp(self, min: Self, max: Self) -> Selfwhere - Self: Sized + PartialOrd<Self>,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<Color> for Color

    source§

    fn eq(&self, other: &Color) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd<Self>,
    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<Color> for Color

    source§

    fn eq(&self, other: &Color) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd<Color> for Color

    source§

    fn partial_cmp(&self, other: &Color) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd<Color> for Color

    source§

    fn partial_cmp(&self, other: &Color) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Copy for Color

    source§

    impl Eq for Color

    source§

    impl StructuralEq for Color

    source§

    impl StructuralPartialEq for Color

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Color

    §

    impl Send for Color

    §

    impl Sync for Color

    §

    impl Unpin for Color

    §

    impl UnwindSafe for Color

    Blanket Implementations§

    §

    impl<T> Any for Twhere +operator. Read more

    source§

    impl Copy for Color

    source§

    impl Eq for Color

    source§

    impl StructuralEq for Color

    source§

    impl StructuralPartialEq for Color

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Color

    §

    impl Send for Color

    §

    impl Sync for Color

    §

    impl Unpin for Color

    §

    impl UnwindSafe for Color

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    §

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> From<T> for T

    §

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/doc/arduboy_rust/prelude/fn.constrain.html b/docs/doc/arduboy_rust/prelude/fn.constrain.html index 88f6557..309240a 100644 --- a/docs/doc/arduboy_rust/prelude/fn.constrain.html +++ b/docs/doc/arduboy_rust/prelude/fn.constrain.html @@ -1 +1 @@ -constrain in arduboy_rust::prelude - Rust
    pub fn constrain<T: Ord>(x: T, a: T, b: T) -> T
    \ No newline at end of file +constrain in arduboy_rust::prelude - Rust
    pub fn constrain<T: Ord>(x: T, a: T, b: T) -> T
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/index.html b/docs/doc/arduboy_rust/prelude/index.html index eb0ed6b..a735be6 100644 --- a/docs/doc/arduboy_rust/prelude/index.html +++ b/docs/doc/arduboy_rust/prelude/index.html @@ -1,7 +1,7 @@ -arduboy_rust::prelude - Rust

    Module arduboy_rust::prelude

    source ·
    Expand description

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

    +arduboy_rust::prelude - Rust

    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

    • 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.
    • This is the Module to interact in a save way with the ArduboyFX C++ library.
    • This is the Module to interact in a save way with the ArdVoice 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 Arduino Serial C++ library.
    • 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 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 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 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 +

    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.
    • This is the Module to interact in a save way with the ArduboyFX C++ library.
    • This is the Module to interact in a save way with the ArdVoice C++ library.
    • A list of all six buttons available on the Arduboy
    • Functions given by the ArduboyFX library.
    • A list of all LED variables available
    • 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.

    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 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

    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.
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/serial/fn.available.html b/docs/doc/arduboy_rust/prelude/serial/fn.available.html index f9b20f8..360f31a 100644 --- a/docs/doc/arduboy_rust/prelude/serial/fn.available.html +++ b/docs/doc/arduboy_rust/prelude/serial/fn.available.html @@ -1,11 +1,12 @@ -available in arduboy_rust::prelude::serial - Rust
    pub fn available() -> i16
    Expand description

    Get the number of bytes (characters) available for reading from the serial port. This is data that’s already arrived and stored in the serial receive buffer (which holds 64 bytes).

    +available in arduboy_rust::prelude::serial - Rust
    pub fn available() -> i16
    Expand description

    Get the number of bytes (characters) available for reading from the serial port. This is data that’s already arrived and stored in the serial receive buffer (which holds 64 bytes).

    Example

    -
    if (Serial::available() > 0) {
    +
    use arduboy_rust::prelude::*;
    +if serial::available() > 0 {
         // read the incoming byte:
    -    incomingByte = Serial::read();
    +    let incoming_byte = serial::read();
     
         // say what you got:
    -    Serial::print("I received: ");
    -    Serial::println(incomingByte);
    +    serial::print("I received: ");
    +    serial::println(incoming_byte);
     }
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/serial/fn.begin.html b/docs/doc/arduboy_rust/prelude/serial/fn.begin.html index 73f0972..a35e645 100644 --- a/docs/doc/arduboy_rust/prelude/serial/fn.begin.html +++ b/docs/doc/arduboy_rust/prelude/serial/fn.begin.html @@ -1,4 +1,5 @@ -begin in arduboy_rust::prelude::serial - Rust

    Function arduboy_rust::prelude::serial::begin

    source ·
    pub fn begin(baud_rates: u32)
    Expand description

    Sets the data rate in bits per second (baud) for serial data transmission. For communicating with Serial Monitor, make sure to use one of the baud rates listed in the menu at the bottom right corner of its screen. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate.

    +begin in arduboy_rust::prelude::serial - Rust

    Function arduboy_rust::prelude::serial::begin

    source ·
    pub fn begin(baud_rates: u32)
    Expand description

    Sets the data rate in bits per second (baud) for serial data transmission. For communicating with Serial Monitor, make sure to use one of the baud rates listed in the menu at the bottom right corner of its screen. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate.

    Example

    -
    serial::begin(9600)
    +
    use arduboy_rust::prelude::*;
    +serial::begin(9600)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/serial/fn.end.html b/docs/doc/arduboy_rust/prelude/serial/fn.end.html index faa3002..4ec19e1 100644 --- a/docs/doc/arduboy_rust/prelude/serial/fn.end.html +++ b/docs/doc/arduboy_rust/prelude/serial/fn.end.html @@ -1,2 +1,2 @@ -end in arduboy_rust::prelude::serial - Rust

    Function arduboy_rust::prelude::serial::end

    source ·
    pub fn end()
    Expand description

    Disables serial communication, allowing the RX and TX pins to be used for general input and output. To re-enable serial communication, call begin().

    +end in arduboy_rust::prelude::serial - Rust

    Function arduboy_rust::prelude::serial::end

    source ·
    pub fn end()
    Expand description

    Disables serial communication, allowing the RX and TX pins to be used for general input and output. To re-enable serial communication, call begin().

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/serial/fn.print.html b/docs/doc/arduboy_rust/prelude/serial/fn.print.html index f235b10..d61f204 100644 --- a/docs/doc/arduboy_rust/prelude/serial/fn.print.html +++ b/docs/doc/arduboy_rust/prelude/serial/fn.print.html @@ -1,8 +1,9 @@ -print in arduboy_rust::prelude::serial - Rust

    Function arduboy_rust::prelude::serial::print

    source ·
    pub fn print(x: impl Serialprintable)
    Expand description

    The Arduino Serial Print class is available for writing text to the screen buffer.

    +print in arduboy_rust::prelude::serial - Rust

    Function arduboy_rust::prelude::serial::print

    source ·
    pub fn print(x: impl Serialprintable)
    Expand description

    The Arduino Serial Print class is available for writing text to the screen buffer.

    In the same manner as the Arduino arduboy.print(), etc., functions.

    Example

    -
    let value: i16 = 42;
    +
    use arduboy_rust::prelude::*;
    +let value: i16 = 42;
     
     serial::print(b"Hello World\n\0"[..]); // Prints "Hello World" and then sets the
                                            // text cursor to the start of the next line
    diff --git a/docs/doc/arduboy_rust/prelude/serial/fn.println.html b/docs/doc/arduboy_rust/prelude/serial/fn.println.html
    index 9a15bf0..5a03e3b 100644
    --- a/docs/doc/arduboy_rust/prelude/serial/fn.println.html
    +++ b/docs/doc/arduboy_rust/prelude/serial/fn.println.html
    @@ -1,8 +1,9 @@
    -println in arduboy_rust::prelude::serial - Rust
    pub fn println(x: impl Serialprintlnable)
    Expand description

    The Arduino Serial Print class is available for writing text to the screen buffer.

    +println in arduboy_rust::prelude::serial - Rust
    pub fn println(x: impl Serialprintlnable)
    Expand description

    The Arduino Serial Print class is available for writing text to the screen buffer.

    In the same manner as the Arduino arduboy.print(), etc., functions.

    Example

    -
    let value: i16 = 42;
    +
    use arduboy_rust::prelude::*;
    +let value: i16 = 42;
     
     serial::print(b"Hello World\n\0"[..]); // Prints "Hello World" and then sets the
                                            // text cursor to the start of the next line
    diff --git a/docs/doc/arduboy_rust/prelude/serial/fn.read.html b/docs/doc/arduboy_rust/prelude/serial/fn.read.html
    index 26f16cd..a81bd35 100644
    --- a/docs/doc/arduboy_rust/prelude/serial/fn.read.html
    +++ b/docs/doc/arduboy_rust/prelude/serial/fn.read.html
    @@ -1,14 +1,15 @@
    -read in arduboy_rust::prelude::serial - Rust

    Function arduboy_rust::prelude::serial::read

    source ·
    pub fn read() -> i16
    Expand description

    Reads incoming serial data. +read in arduboy_rust::prelude::serial - Rust

    Function arduboy_rust::prelude::serial::read

    source ·
    pub fn read() -> i16
    Expand description

    Reads incoming serial data. Use only inside of available():

    -
    if (serial::available() > 0) {
    -    // read the incoming byte:
    -    let incoming_byte: i16 = Serial::read();
    +
     use arduboy_rust::prelude::*;
    + if serial::available() > 0 {
    +     // read the incoming byte:
    +     let incoming_byte: i16 = serial::read();
     
    -    // say what you got:
    -    serial::print("I received: ");
    -    serial::println(incoming_byte);
    -}
    + // say what you got: + serial::print("I received: "); + serial::println(incoming_byte); + }

    Returns

    The first byte of incoming serial data available (or -1 if no data is available). Data type: int.

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/serial/fn.read_as_utf8_str.html b/docs/doc/arduboy_rust/prelude/serial/fn.read_as_utf8_str.html index 377a750..a0d051e 100644 --- a/docs/doc/arduboy_rust/prelude/serial/fn.read_as_utf8_str.html +++ b/docs/doc/arduboy_rust/prelude/serial/fn.read_as_utf8_str.html @@ -1,13 +1,14 @@ -read_as_utf8_str in arduboy_rust::prelude::serial - Rust
    pub fn read_as_utf8_str() -> &'static str
    Expand description

    Reads incoming serial data.

    +read_as_utf8_str in arduboy_rust::prelude::serial - Rust
    pub fn read_as_utf8_str() -> &'static str
    Expand description

    Reads incoming serial data.

    Use only inside of available():

    -
    if (Serial::available() > 0) {
    +
    use arduboy_rust::prelude::*;
    +if serial::available() > 0 {
         // read the incoming byte:
    -    let incomingByte: &str = Serial::read_as_utf8_str();
    +    let incoming_byte: &str = serial::read_as_utf8_str();
     
         // say what you got:
    -    Serial::print("I received: ");
    -    Serial::println(incomingByte);
    +    serial::print("I received: ");
    +    serial::println(incoming_byte);
     }

    Returns

    The first byte of incoming serial data available (or -1 if no data is available). Data type: &str.

    diff --git a/docs/doc/arduboy_rust/prelude/serial/index.html b/docs/doc/arduboy_rust/prelude/serial/index.html index 20b09e9..40733af 100644 --- a/docs/doc/arduboy_rust/prelude/serial/index.html +++ b/docs/doc/arduboy_rust/prelude/serial/index.html @@ -1,4 +1,4 @@ -arduboy_rust::prelude::serial - Rust
    Expand description

    This is the Module to interact in a save way with the Arduino Serial C++ library.

    +arduboy_rust::prelude::serial - Rust
    Expand description

    This is the Module to interact in a save way with the Arduino Serial C++ library.

    You will need to uncomment the Arduino_Serial_Library in the import_config.h file.

    Traits

    Functions

    • Get the number of bytes (characters) available for reading from the serial port. This is data that’s already arrived and stored in the serial receive buffer (which holds 64 bytes).
    • Sets the data rate in bits per second (baud) for serial data transmission. For communicating with Serial Monitor, make sure to use one of the baud rates listed in the menu at the bottom right corner of its screen. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate.
    • Disables serial communication, allowing the RX and TX pins to be used for general input and output. To re-enable serial communication, call begin().
    • The Arduino Serial Print class is available for writing text to the screen buffer.
    • The Arduino Serial Print class is available for writing text to the screen buffer.
    • Reads incoming serial data. Use only inside of available():
    • Reads incoming serial data.
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/serial/trait.Serialprintable.html b/docs/doc/arduboy_rust/prelude/serial/trait.Serialprintable.html index b5c1d4b..c719948 100644 --- a/docs/doc/arduboy_rust/prelude/serial/trait.Serialprintable.html +++ b/docs/doc/arduboy_rust/prelude/serial/trait.Serialprintable.html @@ -1,4 +1,4 @@ -Serialprintable in arduboy_rust::prelude::serial - Rust
    pub trait Serialprintablewhere
    +Serialprintable in arduboy_rust::prelude::serial - Rust
    pub trait Serialprintablewhere
         Self: Sized,{
         type Parameters;
     
    @@ -8,4 +8,4 @@
     
         // Provided method
         fn print(self) { ... }
    -}

    Required Associated Types§

    Required Methods§

    source

    fn print_2(self, params: Self::Parameters)

    source

    fn default_parameters() -> Self::Parameters

    Provided Methods§

    source

    fn print(self)

    Implementations on Foreign Types§

    source§

    impl Serialprintable for u16

    source§

    impl Serialprintable for u32

    source§

    impl Serialprintable for i32

    source§

    impl Serialprintable for i16

    source§

    impl Serialprintable for &str

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Serialprintable for &[u8]

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    Implementors§

    source§

    impl<const N: usize> Serialprintable for String<N>

    §

    type Parameters = ()

    \ No newline at end of file +}

    Required Associated Types§

    Required Methods§

    source

    fn print_2(self, params: Self::Parameters)

    source

    fn default_parameters() -> Self::Parameters

    Provided Methods§

    source

    fn print(self)

    Implementations on Foreign Types§

    source§

    impl Serialprintable for &[u8]

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Serialprintable for i16

    source§

    impl Serialprintable for i32

    source§

    impl Serialprintable for u32

    source§

    impl Serialprintable for &str

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Serialprintable for u16

    Implementors§

    source§

    impl<const N: usize> Serialprintable for String<N>

    §

    type Parameters = ()

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/serial/trait.Serialprintlnable.html b/docs/doc/arduboy_rust/prelude/serial/trait.Serialprintlnable.html index eaea498..1e97afb 100644 --- a/docs/doc/arduboy_rust/prelude/serial/trait.Serialprintlnable.html +++ b/docs/doc/arduboy_rust/prelude/serial/trait.Serialprintlnable.html @@ -1,4 +1,4 @@ -Serialprintlnable in arduboy_rust::prelude::serial - Rust
    pub trait Serialprintlnablewhere
    +Serialprintlnable in arduboy_rust::prelude::serial - Rust
    pub trait Serialprintlnablewhere
         Self: Sized,{
         type Parameters;
     
    @@ -8,4 +8,4 @@
     
         // Provided method
         fn println(self) { ... }
    -}

    Required Associated Types§

    Required Methods§

    source

    fn println_2(self, params: Self::Parameters)

    source

    fn default_parameters() -> Self::Parameters

    Provided Methods§

    source

    fn println(self)

    Implementations on Foreign Types§

    source§

    impl Serialprintlnable for i16

    source§

    impl Serialprintlnable for u16

    source§

    impl Serialprintlnable for &str

    §

    type Parameters = ()

    source§

    fn println_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Serialprintlnable for u32

    source§

    impl Serialprintlnable for i32

    source§

    impl Serialprintlnable for &[u8]

    §

    type Parameters = ()

    source§

    fn println_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    Implementors§

    source§

    impl<const N: usize> Serialprintlnable for String<N>

    §

    type Parameters = ()

    \ No newline at end of file +}

    Required Associated Types§

    Required Methods§

    source

    fn println_2(self, params: Self::Parameters)

    source

    fn default_parameters() -> Self::Parameters

    Provided Methods§

    source

    fn println(self)

    Implementations on Foreign Types§

    source§

    impl Serialprintlnable for &str

    §

    type Parameters = ()

    source§

    fn println_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Serialprintlnable for &[u8]

    §

    type Parameters = ()

    source§

    fn println_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Serialprintlnable for i16

    source§

    impl Serialprintlnable for u16

    source§

    impl Serialprintlnable for i32

    source§

    impl Serialprintlnable for u32

    Implementors§

    source§

    impl<const N: usize> Serialprintlnable for String<N>

    §

    type Parameters = ()

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/sidebar-items.js b/docs/doc/arduboy_rust/prelude/sidebar-items.js index f835ae7..b6c61fd 100644 --- a/docs/doc/arduboy_rust/prelude/sidebar-items.js +++ b/docs/doc/arduboy_rust/prelude/sidebar-items.js @@ -1 +1 @@ -window.SIDEBAR_ITEMS = {"constant":["A","A_BUTTON","B","BLUE_LED","B_BUTTON","DOWN","DOWN_BUTTON","FONT_SIZE","GREEN_LED","HEIGHT","LEFT","LEFT_BUTTON","RED_LED","RGB_OFF","RGB_ON","RIGHT","RIGHT_BUTTON","UP","UP_BUTTON","WIDTH"],"enum":["Base","Color"],"fn":["constrain","delay","random_between","random_less_than","strlen"],"macro":["f","get_ardvoice_tone_addr","get_sprite_addr","get_string_addr","get_tones_addr","progmem"],"mod":["arduboy2","arduboy_tones","arduboyfx","ardvoice","buttons","led","serial","sprites"],"struct":["ArdVoice","Arduboy2","ArduboyTones","ButtonSet","EEPROM","EEPROMBYTE","EEPROMBYTECHECKLESS","LinearMap","Point","Rect","String","Vec"],"trait":["Printable"],"type":["c_char","c_double","c_float","c_int","c_long","c_longlong","c_size_t","c_uchar","c_uint","c_ulong","c_ulonglong"]}; \ No newline at end of file +window.SIDEBAR_ITEMS = {"constant":["A","ANY_BUTTON","A_BUTTON","B","BLUE_LED","B_BUTTON","DOWN","DOWN_BUTTON","FONT_SIZE","GREEN_LED","HEIGHT","LEFT","LEFT_BUTTON","RED_LED","RGB_OFF","RGB_ON","RIGHT","RIGHT_BUTTON","UP","UP_BUTTON","WIDTH"],"enum":["Base","Color"],"fn":["constrain","delay","random_between","random_less_than","strlen"],"macro":["f","get_ardvoice_tone_addr","get_sprite_addr","get_string_addr","get_tones_addr","progmem"],"mod":["arduboy2","arduboy_tones","arduboyfx","ardvoice","buttons","fx","led","serial","sprites"],"struct":["ArdVoice","Arduboy2","ArduboyTones","ButtonSet","EEPROM","EEPROMBYTE","EEPROMBYTECHECKLESS","LinearMap","Point","Rect","String","Vec"],"trait":["Printable"],"type":["c_char","c_double","c_float","c_int","c_long","c_longlong","c_size_t","c_uchar","c_uint","c_ulong","c_ulonglong"]}; \ No newline at end of file diff --git a/docs/doc/arduboy_rust/prelude/struct.Arduboy2.html b/docs/doc/arduboy_rust/prelude/struct.Arduboy2.html index 9b7fb52..7f3c66d 100644 --- a/docs/doc/arduboy_rust/prelude/struct.Arduboy2.html +++ b/docs/doc/arduboy_rust/prelude/struct.Arduboy2.html @@ -1,17 +1,17 @@ -Arduboy2 in arduboy_rust::prelude - Rust
    pub struct Arduboy2 {}
    Expand description

    This is the struct to interact in a save way with the Arduboy2 C++ library.

    -

    Implementations§

    source§

    impl Arduboy2

    source

    pub const fn new() -> Self

    gives you a new instance of the Arduboy2

    +Arduboy2 in arduboy_rust::prelude - Rust
    pub struct Arduboy2 {}
    Expand description

    This is the struct to interact in a save way with the Arduboy2 C++ library.

    +

    Implementations§

    source§

    impl Arduboy2

    source

    pub const fn new() -> Self

    gives you a new instance of the Arduboy2

    Example
    #![allow(non_upper_case_globals)]
     use arduboy_rust::prelude::*;
     const arduboy: Arduboy2 = Arduboy2::new();
    -
    source

    pub fn begin(&self)

    Initialize the hardware, display the boot logo, provide boot utilities, etc. +

    source

    pub fn begin(&self)

    Initialize the hardware, display the boot logo, provide boot utilities, etc. This function should be called once near the start of the sketch, usually in setup(), before using any other functions in this class. It initializes the display, displays the boot logo, provides “flashlight” and system control features and initializes audio control.

    -
    source

    pub fn clear(&self)

    Clear the display buffer and set the text cursor to location 0, 0.

    -
    source

    pub fn display(&self)

    Copy the contents of the display buffer to the display. +

    source

    pub fn clear(&self)

    Clear the display buffer and set the text cursor to location 0, 0.

    +
    source

    pub fn display(&self)

    Copy the contents of the display buffer to the display. The contents of the display buffer in RAM are copied to the display and will appear on the screen.

    -
    source

    pub fn display_and_clear_buffer(&self)

    Copy the contents of the display buffer to the display. The display buffer will be cleared to zero.

    +
    source

    pub fn display_and_clear_buffer(&self)

    Copy the contents of the display buffer to the display. The display buffer will be cleared to zero.

    Operation is the same as calling display() without parameters except additionally the display buffer will be cleared.

    -
    source

    pub fn draw_fast_hline(&self, x: i16, y: i16, w: u8, color: Color)

    Draw a horizontal line.

    +
    source

    pub fn draw_fast_hline(&self, x: i16, y: i16, w: u8, color: Color)

    Draw a horizontal line.

    Parameters:
    • x The X coordinate of the left start point.
    • @@ -19,7 +19,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • w The width of the line.

    color The color of the line (optional; defaults to WHITE).

    -
    source

    pub fn draw_fast_vline(&self, x: i16, y: i16, h: u8, color: Color)

    Draw a vertical line.

    +
    source

    pub fn draw_fast_vline(&self, x: i16, y: i16, h: u8, color: Color)

    Draw a vertical line.

    Parameters:
    • x The X coordinate of the left start point.
    • @@ -27,7 +27,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • h The height of the line.

    color The color of the line (optional; defaults to WHITE).

    -
    source

    pub fn draw_pixel(&self, x: i16, y: i16, color: Color)

    Set a single pixel in the display buffer to the specified color.

    +
    source

    pub fn draw_pixel(&self, x: i16, y: i16, color: Color)

    Set a single pixel in the display buffer to the specified color.

    Parameters
    • x The X coordinate of the pixel.
    • @@ -35,7 +35,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • color The color of the pixel (optional; defaults to WHITE).

    The single pixel specified location in the display buffer is set to the specified color. The values WHITE or BLACK can be used for the color. If the color parameter isn’t included, the pixel will be set to WHITE.

    -
    source

    pub fn fill_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

    Draw a filled-in rectangle of a specified width and height.

    +
    source

    pub fn fill_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

    Draw a filled-in rectangle of a specified width and height.

    Parameters
    • x The X coordinate of the upper left corner.
    • @@ -44,7 +44,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • h The height of the rectangle.

    color The color of the pixel (optional; defaults to WHITE).

    -
    source

    pub fn draw_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

    Draw a rectangle of a specified width and height.

    +
    source

    pub fn draw_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

    Draw a rectangle of a specified width and height.

    Parameters

    • x The X coordinate of the upper left corner.
    • @@ -53,7 +53,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • h The height of the rectangle.
    • color The color of the pixel (optional; defaults to WHITE).
    -
    source

    pub fn draw_circle(&self, x: i16, y: i16, r: u8, color: Color)

    Draw a circle of a given radius.

    +
    source

    pub fn draw_circle(&self, x: i16, y: i16, r: u8, color: Color)

    Draw a circle of a given radius.

    Parameters

    • x0 The X coordinate of the circle’s center.
    • @@ -61,7 +61,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • r The radius of the circle in pixels.
    • color The circle’s color (optional; defaults to WHITE).
    -
    source

    pub fn fill_circle(&self, x: i16, y: i16, r: u8, color: Color)

    Draw a filled-in circle of a given radius.

    +
    source

    pub fn fill_circle(&self, x: i16, y: i16, r: u8, color: Color)

    Draw a filled-in circle of a given radius.

    Parameters
    • x The X coordinate of the circle’s center.
    • @@ -69,7 +69,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • r The radius of the circle in pixels.

    color The circle’s color (optional; defaults to WHITE).

    -
    source

    pub fn fill_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

    Draw a filled-in rectangle with rounded corners.

    +
    source

    pub fn fill_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

    Draw a filled-in rectangle with rounded corners.

    Parameters

    • x The X coordinate of the left edge.
    • @@ -79,7 +79,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • r The radius of the semicircles forming the corners.
    • color The color of the rectangle (optional; defaults to WHITE).
    -
    source

    pub fn draw_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

    Draw a rectangle with rounded corners.

    +
    source

    pub fn draw_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

    Draw a rectangle with rounded corners.

    Parameters

    • x The X coordinate of the left edge.
    • @@ -89,7 +89,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • r The radius of the semicircles forming the corners.
    • color The color of the rectangle (optional; defaults to WHITE).
    -
    source

    pub fn draw_triangle( +

    source

    pub fn draw_triangle( &self, x0: i16, y0: i16, @@ -106,7 +106,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • color The triangle’s color (optional; defaults to WHITE).
  • A triangle is drawn by specifying each of the three corner locations. The corners can be at any position with respect to the others.

    -

    source

    pub fn fill_triangle( +

    source

    pub fn fill_triangle( &self, x0: i16, y0: i16, @@ -123,7 +123,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • color The triangle’s color (optional; defaults to WHITE).
  • A triangle is drawn by specifying each of the three corner locations. The corners can be at any position with respect to the others.

    -

    source

    pub fn get_pixel(&self, x: u8, y: u8) -> Color

    Returns the state of the given pixel in the screen buffer.

    +
    source

    pub fn get_pixel(&self, x: u8, y: u8) -> Color

    Returns the state of the given pixel in the screen buffer.

    Parameters
    • x The X coordinate of the pixel.
    • @@ -131,9 +131,9 @@ The contents of the display buffer in RAM are copied to the display and will app
    Returns

    WHITE if the pixel is on or BLACK if the pixel is off.

    -
    source

    pub fn init_random_seed(&self)

    Seed the random number generator with a random value.

    +
    source

    pub fn init_random_seed(&self)

    Seed the random number generator with a random value.

    The Arduino pseudorandom number generator is seeded with the random value returned from a call to generateRandomSeed().

    -
    source

    pub fn just_pressed(&self, button: ButtonSet) -> bool

    Check if a button has just been pressed.

    +
    source

    pub fn just_pressed(&self, button: ButtonSet) -> bool

    Check if a button has just been pressed.

    Parameters
    • button The button to test for. Only one button should be specified.
    • @@ -143,7 +143,7 @@ The contents of the display buffer in RAM are copied to the display and will app

      Return true if the given button was pressed between the latest call to pollButtons() and previous call to pollButtons(). If the button has been held down over multiple polls, this function will return false.

      There is no need to check for the release of the button since it must have been released for this function to return true when pressed again.

      This function should only be used to test a single button.

      -
    source

    pub fn just_released(&self, button: ButtonSet) -> bool

    Check if a button has just been released.

    +
    source

    pub fn just_released(&self, button: ButtonSet) -> bool

    Check if a button has just been released.

    Parameters
    • button The button to test for. Only one button should be specified.
    • @@ -153,7 +153,7 @@ The contents of the display buffer in RAM are copied to the display and will app

      Return true if the given button was released between the latest call to pollButtons() and previous call to pollButtons(). If the button has been held down over multiple polls, this function will return false.

      There is no need to check for the released of the button since it must have been pressed for this function to return true when pressed again.

      This function should only be used to test a single button.

      -
    source

    pub fn not_pressed(&self, button: ButtonSet) -> bool

    Test if the specified buttons are not pressed.

    +
    source

    pub fn not_pressed(&self, button: ButtonSet) -> bool

    Test if the specified buttons are not pressed.

    Parameters
    • buttons A bit mask indicating which buttons to test. (Can be a single button)
    • @@ -161,16 +161,16 @@ The contents of the display buffer in RAM are copied to the display and will app
      Returns

      True if all buttons in the provided mask are currently released.

      Read the state of the buttons and return true if all the buttons in the specified mask are currently released.

      -
    source

    pub fn next_frame(&self) -> bool

    Indicate that it’s time to render the next frame.

    +
    source

    pub fn next_frame(&self) -> bool

    Indicate that it’s time to render the next frame.

    Returns

    true if it’s time for the next frame.

    When this function returns true, the amount of time has elapsed to display the next frame, as specified by setFrameRate() or setFrameDuration().

    This function will normally be called at the start of the rendering loop which would wait for true to be returned before rendering and displaying the next frame.

    -
    source

    pub fn poll_buttons(&self)

    Poll the buttons and track their state over time.

    +
    source

    pub fn poll_buttons(&self)

    Poll the buttons and track their state over time.

    Read and save the current state of the buttons and also keep track of the button state when this function was previously called. These states are used by the justPressed() and justReleased() functions to determine if a button has changed state between now and the previous call to pollButtons().

    This function should be called once at the start of each new frame.

    The justPressed() and justReleased() functions rely on this function.

    -
    source

    pub fn pressed(&self, button: ButtonSet) -> bool

    Test if the all of the specified buttons are pressed.

    +
    source

    pub fn pressed(&self, button: ButtonSet) -> bool

    Test if the all of the specified buttons are pressed.

    Parameters
    • buttons A bit mask indicating which buttons to test. (Can be a single button)
    • @@ -178,7 +178,7 @@ The contents of the display buffer in RAM are copied to the display and will app
      Returns

      true if all buttons in the provided mask are currently pressed.

      Read the state of the buttons and return true if all of the buttons in the specified mask are being pressed.

      -
    source

    pub fn print(&self, x: impl Printable)

    The Arduino Print class is available for writing text to the screen buffer.

    +
    source

    pub fn print(&self, x: impl Printable)

    The Arduino Print class is available for writing text to the screen buffer.

    For an Arduboy2 class object, functions provided by the Arduino Print class can be used to write text to the screen buffer, in the same manner as the Arduino Serial.print(), etc., functions.

    Print will use the write() function to actually draw each character in the screen buffer, using the library’s font5x7 font. Two character values are handled specially:

      @@ -188,7 +188,7 @@ The contents of the display buffer in RAM are copied to the display and will app
      Example
      #![allow(non_upper_case_globals)]
       use arduboy_rust::prelude::*;
      -const arduboy:Arduboy2 =Arduboy2::new();
      +const arduboy: Arduboy2 = Arduboy2::new();
       let value: i16 = 42;
       
       arduboy.print(b"Hello World\n\0"[..]); // Prints "Hello World" and then sets the
      @@ -197,7 +197,7 @@ arduboy.print(b"Hello World\n\0"[..]); arduboy.print(value); // Prints "42"
       arduboy.print("\n\0"); // Sets the text cursor to the start of the next line
       arduboy.print("hello world") // Prints normal [&str]
      -
    source

    pub fn set_cursor(&self, x: i16, y: i16)

    Set the location of the text cursor.

    +
    source

    pub fn set_cursor(&self, x: i16, y: i16)

    Set the location of the text cursor.

    Parameters
    • @@ -208,41 +208,41 @@ arduboy.print(b"Hello World\n\0"[..]);

    The location of the text cursor is set the the specified coordinates. The coordinates are in pixels. Since the coordinates can specify any pixel location, the text does not have to be placed on specific rows. As with all drawing functions, location 0, 0 is the top left corner of the display. The cursor location represents the top left corner of the next character written.

    -
    source

    pub fn set_frame_rate(&self, rate: u8)

    Set the frame rate used by the frame control functions.

    +
    source

    pub fn set_frame_rate(&self, rate: u8)

    Set the frame rate used by the frame control functions.

    Parameters
    • rate The desired frame rate in frames per second.

    Normally, the frame rate would be set to the desired value once, at the start of the game, but it can be changed at any time to alter the frame update rate.

    -
    source

    pub fn set_text_size(&self, size: u8)

    Set the text character size.

    +
    source

    pub fn set_text_size(&self, size: u8)

    Set the text character size.

    Parameters
    • s The text size multiplier. Must be 1 or higher.

    Setting a text size of 1 will result in standard size characters with one pixel for each bit in the bitmap for a character. The value specified is a multiplier. A value of 2 will double the width and height. A value of 3 will triple the dimensions, etc.

    -
    source

    pub fn audio_on(&self)

    Turn sound on.

    +
    source

    pub fn audio_on(&self)

    Turn sound on.

    The system is configured to generate sound. This function sets the sound mode only until the unit is powered off.

    -
    source

    pub fn audio_off(&self)

    Turn sound off (mute).

    +
    source

    pub fn audio_off(&self)

    Turn sound off (mute).

    The system is configured to not produce sound (mute). This function sets the sound mode only until the unit is powered off.

    -
    source

    pub fn audio_save_on_off(&self)

    Save the current sound state in EEPROM.

    +
    source

    pub fn audio_save_on_off(&self)

    Save the current sound state in EEPROM.

    The current sound state, set by on() or off(), is saved to the reserved system area in EEPROM. This allows the state to carry over between power cycles and after uploading a different sketch.

    Note EEPROM is limited in the number of times it can be written to. Sketches should not continuously change and then save the state rapidly.

    -
    source

    pub fn audio_toggle(&self)

    Toggle the sound on/off state.

    +
    source

    pub fn audio_toggle(&self)

    Toggle the sound on/off state.

    If the system is configured for sound on, it will be changed to sound off (mute). If sound is off, it will be changed to on. This function sets the sound mode only until the unit is powered off. To save the current mode use saveOnOff().

    -
    source

    pub fn audio_on_and_save(&self)

    Combines the use function of audio_on() and audio_save_on_off()

    -
    source

    pub fn audio_enabled(&self) -> bool

    Get the current sound state.

    +
    source

    pub fn audio_on_and_save(&self)

    Combines the use function of audio_on() and audio_save_on_off()

    +
    source

    pub fn audio_enabled(&self) -> bool

    Get the current sound state.

    Returns

    true if sound is currently enabled (not muted).

    This function should be used by code that actually generates sound. If true is returned, sound can be produced. If false is returned, sound should be muted.

    -
    source

    pub fn invert(&self, inverse: bool)

    Invert the entire display or set it back to normal.

    +
    source

    pub fn invert(&self, inverse: bool)

    Invert the entire display or set it back to normal.

    Parameters
    • inverse true will invert the display. false will set the display to no-inverted.

    Calling this function with a value of true will set the display to inverted mode. A pixel with a value of 0 will be on and a pixel set to 1 will be off.

    Once in inverted mode, the display will remain this way until it is set back to non-inverted mode by calling this function with false.

    -
    source

    pub fn collide_point(&self, point: Point, rect: Rect) -> bool

    Test if a point falls within a rectangle.

    +
    source

    pub fn collide_point(&self, point: Point, rect: Rect) -> bool

    Test if a point falls within a rectangle.

    Parameters

    • point A structure describing the location of the point.
    • @@ -251,7 +251,7 @@ EEPROM is limited in the number of times it can be written to. Sketches should n

      Returns true if the specified point is within the specified rectangle.

      This function is intended to detemine if an object, whose boundaries are defined by the given rectangle, is in contact with the given point.

      -
    source

    pub fn collide_rect(&self, rect1: Rect, rect2: Rect) -> bool

    Test if a rectangle is intersecting with another rectangle.

    +
    source

    pub fn collide_rect(&self, rect1: Rect, rect2: Rect) -> bool

    Test if a rectangle is intersecting with another rectangle.

    Parameters

    • rect1,rect2 Structures describing the size and locations of the rectangles.
    • @@ -259,14 +259,14 @@ true if the specified point is within the specified rectangle.

      Returns true if the first rectangle is intersecting the second.

      This function is intended to detemine if an object, whose boundaries are defined by the given rectangle, is in contact with another rectangular object.

      -
    source

    pub fn digital_write_rgb_single(&self, color: u8, val: u8)

    Set one of the RGB LEDs digitally, to either fully on or fully off.

    +
    source

    pub fn digital_write_rgb_single(&self, color: u8, val: u8)

    Set one of the RGB LEDs digitally, to either fully on or fully off.

    Parameters

    • color The name of the LED to set. The value given should be one of RED_LED, GREEN_LED or BLUE_LED.
    • val Indicates whether to turn the specified LED on or off. The value given should be RGB_ON or RGB_OFF.

    This 2 parameter version of the function will set a single LED within the RGB LED either fully on or fully off. See the description of the 3 parameter version of this function for more details on the RGB LED.

    -
    source

    pub fn digital_write_rgb(&self, red: u8, green: u8, blue: u8)

    Set the RGB LEDs digitally, to either fully on or fully off.

    +
    source

    pub fn digital_write_rgb(&self, red: u8, green: u8, blue: u8)

    Set the RGB LEDs digitally, to either fully on or fully off.

    Parameters

    • red,green,blue Use value RGB_ON or RGB_OFF to set each LED.
    • @@ -282,7 +282,7 @@ true if the first rectangle is intersecting the second.

      RGB_ON RGB_OFF RGB_ON Magenta RGB_ON RGB_ON RGB_OFF Yellow RGB_ON RGB_ON RGB_ON White -
    source

    pub fn set_rgb_led_single(&self, color: u8, val: u8)

    Set the brightness of one of the RGB LEDs without affecting the others.

    +
    source

    pub fn set_rgb_led_single(&self, color: u8, val: u8)

    Set the brightness of one of the RGB LEDs without affecting the others.

    Parameters

    • color The name of the LED to set. The value given should be one of RED_LED, GREEN_LED or BLUE_LED.
    • @@ -293,7 +293,7 @@ true if the first rectangle is intersecting the second.

      In order to use this function, the 3 parameter version must first be called at least once, in order to initialize the hardware.

      This 2 parameter version of the function will set the brightness of a single LED within the RGB LED without affecting the current brightness of the other two. See the description of the 3 parameter version of this function for more details on the RGB LED.

      -
    source

    pub fn set_rgb_led(&self, red: u8, green: u8, blue: u8)

    Set the light output of the RGB LED.

    +
    source

    pub fn set_rgb_led(&self, red: u8, green: u8, blue: u8)

    Set the light output of the RGB LED.

    Parameters

    • red,green,blue The brightness value for each LED.
    • @@ -307,7 +307,7 @@ true if the first rectangle is intersecting the second.

      Many of the Kickstarter Arduboys were accidentally shipped with the RGB LED installed incorrectly. For these units, the green LED cannot be lit. As long as the green led is set to off, setting the red LED will actually control the blue LED and setting the blue LED will actually control the red LED. If the green LED is turned fully on, none of the LEDs will light.

      -
    source

    pub fn every_x_frames(&self, frames: u8) -> bool

    Indicate if the specified number of frames has elapsed.

    +
    source

    pub fn every_x_frames(&self, frames: u8) -> bool

    Indicate if the specified number of frames has elapsed.

    Parameters

    • frames The desired number of elapsed frames.
    • @@ -320,60 +320,70 @@ true if the specified number of frames has elapsed.

       #![allow(non_upper_case_globals)]
        use arduboy_rust::prelude::*;
      - const arduboy:Arduboy2 =Arduboy2::new();
      + const arduboy: Arduboy2 = Arduboy2::new();
       
        if arduboy.everyXFrames(5) {
            if arduboy.pressed(A_BUTTON) {
                //fireShot(); // just some example
            }
        }
      -
    source

    pub fn flip_vertical(&self, flipped: bool)

    Flip the display vertically or set it back to normal.

    +
    source

    pub fn flip_vertical(&self, flipped: bool)

    Flip the display vertically or set it back to normal.

    Parameters

    • flipped true will set vertical flip mode. false will set normal vertical orientation.

    Calling this function with a value of true will cause the Y coordinate to start at the bottom edge of the display instead of the top, effectively flipping the display vertically.

    Once in vertical flip mode, it will remain this way until normal vertical mode is set by calling this function with a value of false.

    -
    source

    pub fn flip_horizontal(&self, flipped: bool)

    Flip the display horizontally or set it back to normal.

    +
    source

    pub fn flip_horizontal(&self, flipped: bool)

    Flip the display horizontally or set it back to normal.

    Parameters

    • flipped true will set horizontal flip mode. false will set normal horizontal orientation.

    Calling this function with a value of true will cause the X coordinate to start at the left edge of the display instead of the right, effectively flipping the display horizontally.

    Once in horizontal flip mode, it will remain this way until normal horizontal mode is set by calling this function with a value of false.

    -
    source

    pub fn set_text_color(&self, color: Color)

    Set the text foreground color.

    +
    source

    pub fn set_text_color(&self, color: Color)

    Set the text foreground color.

    Parameters

    • color The color to be used for following text. The values WHITE or BLACK should be used.
    -
    source

    pub fn set_text_background_color(&self, color: Color)

    Set the text background color.

    +
    source

    pub fn set_text_background_color(&self, color: Color)

    Set the text background color.

    Parameters

    • color The background color to be used for following text. The values WHITE or BLACK should be used.

    The background pixels of following characters will be set to the specified color.

    However, if the background color is set to be the same as the text color, the background will be transparent. Only the foreground pixels will be drawn. The background pixels will remain as they were before the character was drawn.

    -
    source

    pub fn set_cursor_x(&self, x: i16)

    Set the X coordinate of the text cursor location.

    +
    source

    pub fn set_cursor_x(&self, x: i16)

    Set the X coordinate of the text cursor location.

    Parameters

    • x The X (horizontal) coordinate, in pixels, for the new location of the text cursor.

    The X coordinate for the location of the text cursor is set to the specified value, leaving the Y coordinate unchanged. For more details about the text cursor, see the setCursor() function.

    -
    source

    pub fn set_cursor_y(&self, y: i16)

    Set the Y coordinate of the text cursor location.

    +
    source

    pub fn set_cursor_y(&self, y: i16)

    Set the Y coordinate of the text cursor location.

    Parameters

    • y The Y (vertical) coordinate, in pixels, for the new location of the text cursor.

    The Y coordinate for the location of the text cursor is set to the specified value, leaving the X coordinate unchanged. For more details about the text cursor, see the setCursor() function.

    -
    source

    pub fn set_text_wrap(&self, w: bool)

    Set or disable text wrap mode.

    +
    source

    pub fn set_text_wrap(&self, w: bool)

    Set or disable text wrap mode.

    Parameters

    • w true enables text wrap mode. false disables it.

    Text wrap mode is enabled by specifying true. In wrap mode, if a character to be drawn would end up partially or fully past the right edge of the screen (based on the current text size), it will be placed at the start of the next line. The text cursor will be adjusted accordingly.

    If wrap mode is disabled, characters will always be written at the current text cursor position. A character near the right edge of the screen may only be partially displayed and characters drawn at a position past the right edge of the screen will remain off screen.

    -
    source

    pub fn idle(&self)

    Idle the CPU to save power.

    +
    source

    pub fn idle(&self)

    Idle the CPU to save power.

    This puts the CPU in idle sleep mode. You should call this as often as you can for the best power savings. The timer 0 overflow interrupt will wake up the chip every 1ms, so even at 60 FPS a well written app should be able to sleep maybe half the time in between rendering it’s own frames.

    +
    source

    pub fn buttons_state(&self) -> u8

    Get the current state of all buttons as a bitmask.

    +
    Returns
    +

    A bitmask of the state of all the buttons.

    +

    The returned mask contains a bit for each button. For any pressed button, its bit will be 1. For released buttons their associated bits will be 0.

    +

    The following defined mask values should be used for the buttons: +LEFT_BUTTON, RIGHT_BUTTON, UP_BUTTON, DOWN_BUTTON, A_BUTTON, B_BUTTON

    +
    source

    pub fn exit_to_bootloader(&self)

    Exit the sketch and start the bootloader.

    +

    The sketch will exit and the bootloader will be started in command mode. The effect will be similar to pressing the reset button.

    +

    This function is intended to be used to allow uploading a new sketch, when the USB code has been removed to gain more code space. Ideally, the sketch would present a “New Sketch Upload” menu or prompt telling the user to “Press and hold the DOWN button when the procedure to upload a new sketch has been initiated”. +The sketch would then wait for the DOWN button to be pressed and then call this function.

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Arduboy2

    §

    impl Send for Arduboy2

    §

    impl Sync for Arduboy2

    §

    impl Unpin for Arduboy2

    §

    impl UnwindSafe for Arduboy2

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere diff --git a/docs/doc/arduboy_rust/prelude/struct.ButtonSet.html b/docs/doc/arduboy_rust/prelude/struct.ButtonSet.html index ad7c3c3..5142036 100644 --- a/docs/doc/arduboy_rust/prelude/struct.ButtonSet.html +++ b/docs/doc/arduboy_rust/prelude/struct.ButtonSet.html @@ -1,16 +1,16 @@ -ButtonSet in arduboy_rust::prelude - Rust
    pub struct ButtonSet {
    +ButtonSet in arduboy_rust::prelude - Rust
    pub struct ButtonSet {
         pub flag_set: u8,
     }
    Expand description

    This struct gives the library a understanding what Buttons on the Arduboy are.

    -

    Fields§

    §flag_set: u8

    Implementations§

    source§

    impl ButtonSet

    source

    pub unsafe fn pressed(&self) -> bool

    source

    pub unsafe fn just_pressed(&self) -> bool

    source

    pub unsafe fn just_released(&self) -> bool

    source

    pub unsafe fn not_pressed(&self) -> bool

    Trait Implementations§

    source§

    impl BitOr<ButtonSet> for ButtonSet

    §

    type Output = ButtonSet

    The resulting type after applying the | operator.
    source§

    fn bitor(self, other: Self) -> Self

    Performs the | operation. Read more
    source§

    impl Clone for ButtonSet

    source§

    fn clone(&self) -> ButtonSet

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ButtonSet

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for ButtonSet

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given [Hasher]. Read more
    1.3.0§

    fn hash_slice<H>(data: &[Self], state: &mut H)where +

    Fields§

    §flag_set: u8

    Implementations§

    source§

    impl ButtonSet

    source

    pub unsafe fn pressed(&self) -> bool

    source

    pub unsafe fn just_pressed(&self) -> bool

    source

    pub unsafe fn just_released(&self) -> bool

    source

    pub unsafe fn not_pressed(&self) -> bool

    Trait Implementations§

    source§

    impl BitOr<ButtonSet> for ButtonSet

    §

    type Output = ButtonSet

    The resulting type after applying the | operator.
    source§

    fn bitor(self, other: Self) -> Self

    Performs the | operation. Read more
    source§

    impl Clone for ButtonSet

    source§

    fn clone(&self) -> ButtonSet

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for ButtonSet

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Hash for ButtonSet

    source§

    fn hash<__H: Hasher>(&self, state: &mut __H)

    Feeds this value into the given [Hasher]. Read more
    1.3.0§

    fn hash_slice<H>(data: &[Self], state: &mut H)where H: Hasher, - Self: Sized,

    Feeds a slice of this type into the given [Hasher]. Read more
    source§

    impl Ord for ButtonSet

    source§

    fn cmp(&self, other: &ButtonSet) -> Ordering

    This method returns an [Ordering] between self and other. Read more
    1.21.0§

    fn max(self, other: Self) -> Selfwhere + Self: Sized,

    Feeds a slice of this type into the given [Hasher]. Read more
    source§

    impl Ord for ButtonSet

    source§

    fn cmp(&self, other: &ButtonSet) -> Ordering

    This method returns an [Ordering] between self and other. Read more
    1.21.0§

    fn max(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the maximum of two values. Read more
    1.21.0§

    fn min(self, other: Self) -> Selfwhere Self: Sized,

    Compares and returns the minimum of two values. Read more
    1.50.0§

    fn clamp(self, min: Self, max: Self) -> Selfwhere - Self: Sized + PartialOrd<Self>,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<ButtonSet> for ButtonSet

    source§

    fn eq(&self, other: &ButtonSet) -> bool

    This method tests for self and other values to be equal, and is used + Self: Sized + PartialOrd<Self>,

    Restrict a value to a certain interval. Read more
    source§

    impl PartialEq<ButtonSet> for ButtonSet

    source§

    fn eq(&self, other: &ButtonSet) -> bool

    This method tests for self and other values to be equal, and is used by ==.
    1.0.0§

    fn ne(&self, other: &Rhs) -> bool

    This method tests for !=. The default implementation is almost always -sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd<ButtonSet> for ButtonSet

    source§

    fn partial_cmp(&self, other: &ButtonSet) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= +sufficient, and should not be overridden without very good reason.
    source§

    impl PartialOrd<ButtonSet> for ButtonSet

    source§

    fn partial_cmp(&self, other: &ButtonSet) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl Copy for ButtonSet

    source§

    impl Eq for ButtonSet

    source§

    impl StructuralEq for ButtonSet

    source§

    impl StructuralPartialEq for ButtonSet

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for ButtonSet

    §

    impl Send for ButtonSet

    §

    impl Sync for ButtonSet

    §

    impl Unpin for ButtonSet

    §

    impl UnwindSafe for ButtonSet

    Blanket Implementations§

    §

    impl<T> Any for Twhere +operator. Read more

    source§

    impl Copy for ButtonSet

    source§

    impl Eq for ButtonSet

    source§

    impl StructuralEq for ButtonSet

    source§

    impl StructuralPartialEq for ButtonSet

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for ButtonSet

    §

    impl Send for ButtonSet

    §

    impl Sync for ButtonSet

    §

    impl Unpin for ButtonSet

    §

    impl UnwindSafe for ButtonSet

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    §

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> From<T> for T

    §

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/doc/arduboy_rust/prelude/struct.Point.html b/docs/doc/arduboy_rust/prelude/struct.Point.html index d0a6432..46a11c2 100644 --- a/docs/doc/arduboy_rust/prelude/struct.Point.html +++ b/docs/doc/arduboy_rust/prelude/struct.Point.html @@ -1,10 +1,10 @@ -Point in arduboy_rust::prelude - Rust

    Struct arduboy_rust::prelude::Point

    source ·
    pub struct Point {
    +Point in arduboy_rust::prelude - Rust

    Struct arduboy_rust::prelude::Point

    source ·
    pub struct Point {
         pub x: i16,
         pub y: i16,
     }
    Expand description

    This struct is used by a few Arduboy functions.

    Fields§

    §x: i16

    Position X

    §y: i16

    Position Y

    -

    Trait Implementations§

    source§

    impl Clone for Point

    source§

    fn clone(&self) -> Point

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Point

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Copy for Point

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Point

    §

    impl Send for Point

    §

    impl Sync for Point

    §

    impl Unpin for Point

    §

    impl UnwindSafe for Point

    Blanket Implementations§

    §

    impl<T> Any for Twhere +

    Trait Implementations§

    source§

    impl Clone for Point

    source§

    fn clone(&self) -> Point

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Point

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Copy for Point

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Point

    §

    impl Send for Point

    §

    impl Sync for Point

    §

    impl Unpin for Point

    §

    impl UnwindSafe for Point

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    §

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> From<T> for T

    §

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/doc/arduboy_rust/prelude/struct.Rect.html b/docs/doc/arduboy_rust/prelude/struct.Rect.html index 789a821..c24ddd4 100644 --- a/docs/doc/arduboy_rust/prelude/struct.Rect.html +++ b/docs/doc/arduboy_rust/prelude/struct.Rect.html @@ -1,4 +1,4 @@ -Rect in arduboy_rust::prelude - Rust

    Struct arduboy_rust::prelude::Rect

    source ·
    pub struct Rect {
    +Rect in arduboy_rust::prelude - Rust

    Struct arduboy_rust::prelude::Rect

    source ·
    pub struct Rect {
         pub x: i16,
         pub y: i16,
         pub width: u8,
    @@ -8,7 +8,7 @@
     
    §y: i16

    Position Y

    §width: u8

    Rect width

    §height: u8

    Rect height

    -

    Trait Implementations§

    source§

    impl Clone for Rect

    source§

    fn clone(&self) -> Rect

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Rect

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Copy for Rect

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Rect

    §

    impl Send for Rect

    §

    impl Sync for Rect

    §

    impl Unpin for Rect

    §

    impl UnwindSafe for Rect

    Blanket Implementations§

    §

    impl<T> Any for Twhere +

    Trait Implementations§

    source§

    impl Clone for Rect

    source§

    fn clone(&self) -> Rect

    Returns a copy of the value. Read more
    1.0.0§

    fn clone_from(&mut self, source: &Self)

    Performs copy-assignment from source. Read more
    source§

    impl Debug for Rect

    source§

    fn fmt(&self, f: &mut Formatter<'_>) -> Result

    Formats the value using the given formatter. Read more
    source§

    impl Copy for Rect

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Rect

    §

    impl Send for Rect

    §

    impl Sync for Rect

    §

    impl Unpin for Rect

    §

    impl UnwindSafe for Rect

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere T: ?Sized,

    §

    fn borrow_mut(&mut self) -> &mut T

    Mutably borrows from an owned value. Read more
    §

    impl<T> From<T> for T

    §

    fn from(t: T) -> T

    Returns the argument unchanged.

    diff --git a/docs/doc/arduboy_rust/prelude/struct.String.html b/docs/doc/arduboy_rust/prelude/struct.String.html index 8a7670e..9fac33d 100644 --- a/docs/doc/arduboy_rust/prelude/struct.String.html +++ b/docs/doc/arduboy_rust/prelude/struct.String.html @@ -1363,7 +1363,7 @@ sufficient, and should not be overridden without very good reason.
    ==
    .
    source§

    fn ne(&self, other: &str) -> bool

    This method tests for !=. The default implementation is almost always sufficient, and should not be overridden without very good reason.
    source§

    impl<const N1: usize, const N2: usize> PartialOrd<String<N2>> for String<N1>

    source§

    fn partial_cmp(&self, other: &String<N2>) -> Option<Ordering>

    This method returns an ordering between self and other values if one exists. Read more
    1.0.0§

    fn lt(&self, other: &Rhs) -> bool

    This method tests less than (for self and other) and is used by the < operator. Read more
    1.0.0§

    fn le(&self, other: &Rhs) -> bool

    This method tests less than or equal to (for self and other) and is used by the <= operator. Read more
    1.0.0§

    fn gt(&self, other: &Rhs) -> bool

    This method tests greater than (for self and other) and is used by the > operator. Read more
    1.0.0§

    fn ge(&self, other: &Rhs) -> bool

    This method tests greater than or equal to (for self and other) and is used by the >= -operator. Read more
    source§

    impl<const N: usize> Printable for String<N>

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    fn print(self)

    source§

    impl<const N: usize> Serialprintable for String<N>

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    fn print(self)

    source§

    impl<const N: usize> Serialprintlnable for String<N>

    §

    type Parameters = ()

    source§

    fn println_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    fn println(self)

    source§

    impl<const N: usize> Write for String<N>

    source§

    fn write_str(&mut self, s: &str) -> Result<(), Error>

    Writes a string slice into this writer, returning whether the write +operator. Read more
    source§

    impl<const N: usize> Printable for String<N>

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    fn print(self)

    source§

    impl<const N: usize> Serialprintable for String<N>

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    fn print(self)

    source§

    impl<const N: usize> Serialprintlnable for String<N>

    §

    type Parameters = ()

    source§

    fn println_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    fn println(self)

    source§

    impl<const N: usize> Write for String<N>

    source§

    fn write_str(&mut self, s: &str) -> Result<(), Error>

    Writes a string slice into this writer, returning whether the write succeeded. Read more
    source§

    fn write_char(&mut self, c: char) -> Result<(), Error>

    Writes a [char] into this writer, returning whether the write succeeded. Read more
    1.0.0§

    fn write_fmt(&mut self, args: Arguments<'_>) -> Result<(), Error>

    Glue for usage of the [write!] macro with implementors of this trait. Read more
    source§

    impl<const N: usize> Eq for String<N>

    Auto Trait Implementations§

    §

    impl<const N: usize> RefUnwindSafe for String<N>

    §

    impl<const N: usize> Send for String<N>

    §

    impl<const N: usize> Sync for String<N>

    §

    impl<const N: usize> Unpin for String<N>

    §

    impl<const N: usize> UnwindSafe for String<N>

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere diff --git a/docs/doc/arduboy_rust/prelude/trait.Printable.html b/docs/doc/arduboy_rust/prelude/trait.Printable.html index ed032ba..fd0cf0a 100644 --- a/docs/doc/arduboy_rust/prelude/trait.Printable.html +++ b/docs/doc/arduboy_rust/prelude/trait.Printable.html @@ -8,4 +8,4 @@ // Provided method fn print(self) { ... } -}

    Required Associated Types§

    Required Methods§

    source

    fn print_2(self, params: Self::Parameters)

    source

    fn default_parameters() -> Self::Parameters

    Provided Methods§

    source

    fn print(self)

    Implementations on Foreign Types§

    source§

    impl Printable for u16

    source§

    impl Printable for i16

    source§

    impl Printable for i32

    source§

    impl Printable for &str

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Printable for &[u8]

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Printable for u32

    Implementors§

    source§

    impl<const N: usize> Printable for String<N>

    §

    type Parameters = ()

    \ No newline at end of file +}

    Required Associated Types§

    Required Methods§

    source

    fn print_2(self, params: Self::Parameters)

    source

    fn default_parameters() -> Self::Parameters

    Provided Methods§

    source

    fn print(self)

    Implementations on Foreign Types§

    source§

    impl Printable for &[u8]

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Printable for &str

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Printable for i32

    source§

    impl Printable for u16

    source§

    impl Printable for u32

    source§

    impl Printable for i16

    Implementors§

    source§

    impl<const N: usize> Printable for String<N>

    §

    type Parameters = ()

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/serial_print/fn.available.html b/docs/doc/arduboy_rust/serial_print/fn.available.html index 6ff9930..5221af0 100644 --- a/docs/doc/arduboy_rust/serial_print/fn.available.html +++ b/docs/doc/arduboy_rust/serial_print/fn.available.html @@ -1,11 +1,12 @@ -available in arduboy_rust::serial_print - Rust
    pub fn available() -> i16
    Expand description

    Get the number of bytes (characters) available for reading from the serial port. This is data that’s already arrived and stored in the serial receive buffer (which holds 64 bytes).

    +available in arduboy_rust::serial_print - Rust
    pub fn available() -> i16
    Expand description

    Get the number of bytes (characters) available for reading from the serial port. This is data that’s already arrived and stored in the serial receive buffer (which holds 64 bytes).

    Example

    -
    if (Serial::available() > 0) {
    +
    use arduboy_rust::prelude::*;
    +if serial::available() > 0 {
         // read the incoming byte:
    -    incomingByte = Serial::read();
    +    let incoming_byte = serial::read();
     
         // say what you got:
    -    Serial::print("I received: ");
    -    Serial::println(incomingByte);
    +    serial::print("I received: ");
    +    serial::println(incoming_byte);
     }
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/serial_print/fn.begin.html b/docs/doc/arduboy_rust/serial_print/fn.begin.html index dded998..65c419c 100644 --- a/docs/doc/arduboy_rust/serial_print/fn.begin.html +++ b/docs/doc/arduboy_rust/serial_print/fn.begin.html @@ -1,4 +1,5 @@ -begin in arduboy_rust::serial_print - Rust
    pub fn begin(baud_rates: u32)
    Expand description

    Sets the data rate in bits per second (baud) for serial data transmission. For communicating with Serial Monitor, make sure to use one of the baud rates listed in the menu at the bottom right corner of its screen. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate.

    +begin in arduboy_rust::serial_print - Rust
    pub fn begin(baud_rates: u32)
    Expand description

    Sets the data rate in bits per second (baud) for serial data transmission. For communicating with Serial Monitor, make sure to use one of the baud rates listed in the menu at the bottom right corner of its screen. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate.

    Example

    -
    serial::begin(9600)
    +
    use arduboy_rust::prelude::*;
    +serial::begin(9600)
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/serial_print/fn.end.html b/docs/doc/arduboy_rust/serial_print/fn.end.html index c15f40c..4dc1d38 100644 --- a/docs/doc/arduboy_rust/serial_print/fn.end.html +++ b/docs/doc/arduboy_rust/serial_print/fn.end.html @@ -1,2 +1,2 @@ -end in arduboy_rust::serial_print - Rust

    Function arduboy_rust::serial_print::end

    source ·
    pub fn end()
    Expand description

    Disables serial communication, allowing the RX and TX pins to be used for general input and output. To re-enable serial communication, call begin().

    +end in arduboy_rust::serial_print - Rust

    Function arduboy_rust::serial_print::end

    source ·
    pub fn end()
    Expand description

    Disables serial communication, allowing the RX and TX pins to be used for general input and output. To re-enable serial communication, call begin().

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/serial_print/fn.print.html b/docs/doc/arduboy_rust/serial_print/fn.print.html index 44d8abc..f4ed783 100644 --- a/docs/doc/arduboy_rust/serial_print/fn.print.html +++ b/docs/doc/arduboy_rust/serial_print/fn.print.html @@ -1,8 +1,9 @@ -print in arduboy_rust::serial_print - Rust
    pub fn print(x: impl Serialprintable)
    Expand description

    The Arduino Serial Print class is available for writing text to the screen buffer.

    +print in arduboy_rust::serial_print - Rust
    pub fn print(x: impl Serialprintable)
    Expand description

    The Arduino Serial Print class is available for writing text to the screen buffer.

    In the same manner as the Arduino arduboy.print(), etc., functions.

    Example

    -
    let value: i16 = 42;
    +
    use arduboy_rust::prelude::*;
    +let value: i16 = 42;
     
     serial::print(b"Hello World\n\0"[..]); // Prints "Hello World" and then sets the
                                            // text cursor to the start of the next line
    diff --git a/docs/doc/arduboy_rust/serial_print/fn.println.html b/docs/doc/arduboy_rust/serial_print/fn.println.html
    index 5a3d1b4..bb2954e 100644
    --- a/docs/doc/arduboy_rust/serial_print/fn.println.html
    +++ b/docs/doc/arduboy_rust/serial_print/fn.println.html
    @@ -1,8 +1,9 @@
    -println in arduboy_rust::serial_print - Rust
    pub fn println(x: impl Serialprintlnable)
    Expand description

    The Arduino Serial Print class is available for writing text to the screen buffer.

    +println in arduboy_rust::serial_print - Rust
    pub fn println(x: impl Serialprintlnable)
    Expand description

    The Arduino Serial Print class is available for writing text to the screen buffer.

    In the same manner as the Arduino arduboy.print(), etc., functions.

    Example

    -
    let value: i16 = 42;
    +
    use arduboy_rust::prelude::*;
    +let value: i16 = 42;
     
     serial::print(b"Hello World\n\0"[..]); // Prints "Hello World" and then sets the
                                            // text cursor to the start of the next line
    diff --git a/docs/doc/arduboy_rust/serial_print/fn.read.html b/docs/doc/arduboy_rust/serial_print/fn.read.html
    index eac1d87..6f012d4 100644
    --- a/docs/doc/arduboy_rust/serial_print/fn.read.html
    +++ b/docs/doc/arduboy_rust/serial_print/fn.read.html
    @@ -1,14 +1,15 @@
    -read in arduboy_rust::serial_print - Rust
    pub fn read() -> i16
    Expand description

    Reads incoming serial data. +read in arduboy_rust::serial_print - Rust

    pub fn read() -> i16
    Expand description

    Reads incoming serial data. Use only inside of available():

    -
    if (serial::available() > 0) {
    -    // read the incoming byte:
    -    let incoming_byte: i16 = Serial::read();
    +
     use arduboy_rust::prelude::*;
    + if serial::available() > 0 {
    +     // read the incoming byte:
    +     let incoming_byte: i16 = serial::read();
     
    -    // say what you got:
    -    serial::print("I received: ");
    -    serial::println(incoming_byte);
    -}
    + // say what you got: + serial::print("I received: "); + serial::println(incoming_byte); + }

    Returns

    The first byte of incoming serial data available (or -1 if no data is available). Data type: int.

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/serial_print/fn.read_as_utf8_str.html b/docs/doc/arduboy_rust/serial_print/fn.read_as_utf8_str.html index e8e39e6..33cf652 100644 --- a/docs/doc/arduboy_rust/serial_print/fn.read_as_utf8_str.html +++ b/docs/doc/arduboy_rust/serial_print/fn.read_as_utf8_str.html @@ -1,13 +1,14 @@ -read_as_utf8_str in arduboy_rust::serial_print - Rust
    pub fn read_as_utf8_str() -> &'static str
    Expand description

    Reads incoming serial data.

    +read_as_utf8_str in arduboy_rust::serial_print - Rust
    pub fn read_as_utf8_str() -> &'static str
    Expand description

    Reads incoming serial data.

    Use only inside of available():

    -
    if (Serial::available() > 0) {
    +
    use arduboy_rust::prelude::*;
    +if serial::available() > 0 {
         // read the incoming byte:
    -    let incomingByte: &str = Serial::read_as_utf8_str();
    +    let incoming_byte: &str = serial::read_as_utf8_str();
     
         // say what you got:
    -    Serial::print("I received: ");
    -    Serial::println(incomingByte);
    +    serial::print("I received: ");
    +    serial::println(incoming_byte);
     }

    Returns

    The first byte of incoming serial data available (or -1 if no data is available). Data type: &str.

    diff --git a/docs/doc/arduboy_rust/serial_print/index.html b/docs/doc/arduboy_rust/serial_print/index.html index 6dd609a..f9f6425 100644 --- a/docs/doc/arduboy_rust/serial_print/index.html +++ b/docs/doc/arduboy_rust/serial_print/index.html @@ -1,4 +1,4 @@ -arduboy_rust::serial_print - Rust
    Expand description

    This is the Module to interact in a save way with the Arduino Serial C++ library.

    +arduboy_rust::serial_print - Rust
    Expand description

    This is the Module to interact in a save way with the Arduino Serial C++ library.

    You will need to uncomment the Arduino_Serial_Library in the import_config.h file.

    Traits

    Functions

    • Get the number of bytes (characters) available for reading from the serial port. This is data that’s already arrived and stored in the serial receive buffer (which holds 64 bytes).
    • Sets the data rate in bits per second (baud) for serial data transmission. For communicating with Serial Monitor, make sure to use one of the baud rates listed in the menu at the bottom right corner of its screen. You can, however, specify other rates - for example, to communicate over pins 0 and 1 with a component that requires a particular baud rate.
    • Disables serial communication, allowing the RX and TX pins to be used for general input and output. To re-enable serial communication, call begin().
    • The Arduino Serial Print class is available for writing text to the screen buffer.
    • The Arduino Serial Print class is available for writing text to the screen buffer.
    • Reads incoming serial data. Use only inside of available():
    • Reads incoming serial data.
    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/serial_print/trait.Serialprintable.html b/docs/doc/arduboy_rust/serial_print/trait.Serialprintable.html index f6b97fb..c50992a 100644 --- a/docs/doc/arduboy_rust/serial_print/trait.Serialprintable.html +++ b/docs/doc/arduboy_rust/serial_print/trait.Serialprintable.html @@ -1,4 +1,4 @@ -Serialprintable in arduboy_rust::serial_print - Rust
    pub trait Serialprintablewhere
    +Serialprintable in arduboy_rust::serial_print - Rust
    pub trait Serialprintablewhere
         Self: Sized,{
         type Parameters;
     
    @@ -8,4 +8,4 @@
     
         // Provided method
         fn print(self) { ... }
    -}

    Required Associated Types§

    Required Methods§

    source

    fn print_2(self, params: Self::Parameters)

    source

    fn default_parameters() -> Self::Parameters

    Provided Methods§

    source

    fn print(self)

    Implementations on Foreign Types§

    source§

    impl Serialprintable for u16

    source§

    impl Serialprintable for u32

    source§

    impl Serialprintable for i32

    source§

    impl Serialprintable for i16

    source§

    impl Serialprintable for &str

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Serialprintable for &[u8]

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    Implementors§

    source§

    impl<const N: usize> Serialprintable for String<N>

    §

    type Parameters = ()

    \ No newline at end of file +}

    Required Associated Types§

    Required Methods§

    source

    fn print_2(self, params: Self::Parameters)

    source

    fn default_parameters() -> Self::Parameters

    Provided Methods§

    source

    fn print(self)

    Implementations on Foreign Types§

    source§

    impl Serialprintable for &[u8]

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Serialprintable for i16

    source§

    impl Serialprintable for i32

    source§

    impl Serialprintable for u32

    source§

    impl Serialprintable for &str

    §

    type Parameters = ()

    source§

    fn print_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Serialprintable for u16

    Implementors§

    source§

    impl<const N: usize> Serialprintable for String<N>

    §

    type Parameters = ()

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/serial_print/trait.Serialprintlnable.html b/docs/doc/arduboy_rust/serial_print/trait.Serialprintlnable.html index ed70b48..9b433c1 100644 --- a/docs/doc/arduboy_rust/serial_print/trait.Serialprintlnable.html +++ b/docs/doc/arduboy_rust/serial_print/trait.Serialprintlnable.html @@ -1,4 +1,4 @@ -Serialprintlnable in arduboy_rust::serial_print - Rust
    pub trait Serialprintlnablewhere
    +Serialprintlnable in arduboy_rust::serial_print - Rust
    pub trait Serialprintlnablewhere
         Self: Sized,{
         type Parameters;
     
    @@ -8,4 +8,4 @@
     
         // Provided method
         fn println(self) { ... }
    -}

    Required Associated Types§

    Required Methods§

    source

    fn println_2(self, params: Self::Parameters)

    source

    fn default_parameters() -> Self::Parameters

    Provided Methods§

    source

    fn println(self)

    Implementations on Foreign Types§

    source§

    impl Serialprintlnable for i16

    source§

    impl Serialprintlnable for u16

    source§

    impl Serialprintlnable for &str

    §

    type Parameters = ()

    source§

    fn println_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Serialprintlnable for u32

    source§

    impl Serialprintlnable for i32

    source§

    impl Serialprintlnable for &[u8]

    §

    type Parameters = ()

    source§

    fn println_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    Implementors§

    source§

    impl<const N: usize> Serialprintlnable for String<N>

    §

    type Parameters = ()

    \ No newline at end of file +}

    Required Associated Types§

    Required Methods§

    source

    fn println_2(self, params: Self::Parameters)

    source

    fn default_parameters() -> Self::Parameters

    Provided Methods§

    source

    fn println(self)

    Implementations on Foreign Types§

    source§

    impl Serialprintlnable for &str

    §

    type Parameters = ()

    source§

    fn println_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Serialprintlnable for &[u8]

    §

    type Parameters = ()

    source§

    fn println_2(self, _params: Self::Parameters)

    source§

    fn default_parameters() -> Self::Parameters

    source§

    impl Serialprintlnable for i16

    source§

    impl Serialprintlnable for u16

    source§

    impl Serialprintlnable for i32

    source§

    impl Serialprintlnable for u32

    Implementors§

    source§

    impl<const N: usize> Serialprintlnable for String<N>

    §

    type Parameters = ()

    \ No newline at end of file diff --git a/docs/doc/arduboy_rust/struct.Arduboy2.html b/docs/doc/arduboy_rust/struct.Arduboy2.html index 81a2d82..df166a7 100644 --- a/docs/doc/arduboy_rust/struct.Arduboy2.html +++ b/docs/doc/arduboy_rust/struct.Arduboy2.html @@ -1,17 +1,17 @@ -Arduboy2 in arduboy_rust - Rust

    Struct arduboy_rust::Arduboy2

    source ·
    pub struct Arduboy2 {}
    Expand description

    This is the struct to interact in a save way with the Arduboy2 C++ library.

    -

    Implementations§

    source§

    impl Arduboy2

    source

    pub const fn new() -> Self

    gives you a new instance of the Arduboy2

    +Arduboy2 in arduboy_rust - Rust

    Struct arduboy_rust::Arduboy2

    source ·
    pub struct Arduboy2 {}
    Expand description

    This is the struct to interact in a save way with the Arduboy2 C++ library.

    +

    Implementations§

    source§

    impl Arduboy2

    source

    pub const fn new() -> Self

    gives you a new instance of the Arduboy2

    Example
    #![allow(non_upper_case_globals)]
     use arduboy_rust::prelude::*;
     const arduboy: Arduboy2 = Arduboy2::new();
    -
    source

    pub fn begin(&self)

    Initialize the hardware, display the boot logo, provide boot utilities, etc. +

    source

    pub fn begin(&self)

    Initialize the hardware, display the boot logo, provide boot utilities, etc. This function should be called once near the start of the sketch, usually in setup(), before using any other functions in this class. It initializes the display, displays the boot logo, provides “flashlight” and system control features and initializes audio control.

    -
    source

    pub fn clear(&self)

    Clear the display buffer and set the text cursor to location 0, 0.

    -
    source

    pub fn display(&self)

    Copy the contents of the display buffer to the display. +

    source

    pub fn clear(&self)

    Clear the display buffer and set the text cursor to location 0, 0.

    +
    source

    pub fn display(&self)

    Copy the contents of the display buffer to the display. The contents of the display buffer in RAM are copied to the display and will appear on the screen.

    -
    source

    pub fn display_and_clear_buffer(&self)

    Copy the contents of the display buffer to the display. The display buffer will be cleared to zero.

    +
    source

    pub fn display_and_clear_buffer(&self)

    Copy the contents of the display buffer to the display. The display buffer will be cleared to zero.

    Operation is the same as calling display() without parameters except additionally the display buffer will be cleared.

    -
    source

    pub fn draw_fast_hline(&self, x: i16, y: i16, w: u8, color: Color)

    Draw a horizontal line.

    +
    source

    pub fn draw_fast_hline(&self, x: i16, y: i16, w: u8, color: Color)

    Draw a horizontal line.

    Parameters:
    • x The X coordinate of the left start point.
    • @@ -19,7 +19,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • w The width of the line.

    color The color of the line (optional; defaults to WHITE).

    -
    source

    pub fn draw_fast_vline(&self, x: i16, y: i16, h: u8, color: Color)

    Draw a vertical line.

    +
    source

    pub fn draw_fast_vline(&self, x: i16, y: i16, h: u8, color: Color)

    Draw a vertical line.

    Parameters:
    • x The X coordinate of the left start point.
    • @@ -27,7 +27,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • h The height of the line.

    color The color of the line (optional; defaults to WHITE).

    -
    source

    pub fn draw_pixel(&self, x: i16, y: i16, color: Color)

    Set a single pixel in the display buffer to the specified color.

    +
    source

    pub fn draw_pixel(&self, x: i16, y: i16, color: Color)

    Set a single pixel in the display buffer to the specified color.

    Parameters
    • x The X coordinate of the pixel.
    • @@ -35,7 +35,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • color The color of the pixel (optional; defaults to WHITE).

    The single pixel specified location in the display buffer is set to the specified color. The values WHITE or BLACK can be used for the color. If the color parameter isn’t included, the pixel will be set to WHITE.

    -
    source

    pub fn fill_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

    Draw a filled-in rectangle of a specified width and height.

    +
    source

    pub fn fill_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

    Draw a filled-in rectangle of a specified width and height.

    Parameters
    • x The X coordinate of the upper left corner.
    • @@ -44,7 +44,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • h The height of the rectangle.

    color The color of the pixel (optional; defaults to WHITE).

    -
    source

    pub fn draw_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

    Draw a rectangle of a specified width and height.

    +
    source

    pub fn draw_rect(&self, x: i16, y: i16, w: u8, h: u8, color: Color)

    Draw a rectangle of a specified width and height.

    Parameters

    • x The X coordinate of the upper left corner.
    • @@ -53,7 +53,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • h The height of the rectangle.
    • color The color of the pixel (optional; defaults to WHITE).
    -
    source

    pub fn draw_circle(&self, x: i16, y: i16, r: u8, color: Color)

    Draw a circle of a given radius.

    +
    source

    pub fn draw_circle(&self, x: i16, y: i16, r: u8, color: Color)

    Draw a circle of a given radius.

    Parameters

    • x0 The X coordinate of the circle’s center.
    • @@ -61,7 +61,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • r The radius of the circle in pixels.
    • color The circle’s color (optional; defaults to WHITE).
    -
    source

    pub fn fill_circle(&self, x: i16, y: i16, r: u8, color: Color)

    Draw a filled-in circle of a given radius.

    +
    source

    pub fn fill_circle(&self, x: i16, y: i16, r: u8, color: Color)

    Draw a filled-in circle of a given radius.

    Parameters
    • x The X coordinate of the circle’s center.
    • @@ -69,7 +69,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • r The radius of the circle in pixels.

    color The circle’s color (optional; defaults to WHITE).

    -
    source

    pub fn fill_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

    Draw a filled-in rectangle with rounded corners.

    +
    source

    pub fn fill_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

    Draw a filled-in rectangle with rounded corners.

    Parameters

    • x The X coordinate of the left edge.
    • @@ -79,7 +79,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • r The radius of the semicircles forming the corners.
    • color The color of the rectangle (optional; defaults to WHITE).
    -
    source

    pub fn draw_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

    Draw a rectangle with rounded corners.

    +
    source

    pub fn draw_round_rect(&self, x: i16, y: i16, w: u8, h: u8, r: u8, color: Color)

    Draw a rectangle with rounded corners.

    Parameters

    • x The X coordinate of the left edge.
    • @@ -89,7 +89,7 @@ The contents of the display buffer in RAM are copied to the display and will app
    • r The radius of the semicircles forming the corners.
    • color The color of the rectangle (optional; defaults to WHITE).
    -
    source

    pub fn draw_triangle( +

    source

    pub fn draw_triangle( &self, x0: i16, y0: i16, @@ -106,7 +106,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • color The triangle’s color (optional; defaults to WHITE).
  • A triangle is drawn by specifying each of the three corner locations. The corners can be at any position with respect to the others.

    -

    source

    pub fn fill_triangle( +

    source

    pub fn fill_triangle( &self, x0: i16, y0: i16, @@ -123,7 +123,7 @@ The contents of the display buffer in RAM are copied to the display and will app
  • color The triangle’s color (optional; defaults to WHITE).
  • A triangle is drawn by specifying each of the three corner locations. The corners can be at any position with respect to the others.

    -

    source

    pub fn get_pixel(&self, x: u8, y: u8) -> Color

    Returns the state of the given pixel in the screen buffer.

    +
    source

    pub fn get_pixel(&self, x: u8, y: u8) -> Color

    Returns the state of the given pixel in the screen buffer.

    Parameters
    • x The X coordinate of the pixel.
    • @@ -131,9 +131,9 @@ The contents of the display buffer in RAM are copied to the display and will app
    Returns

    WHITE if the pixel is on or BLACK if the pixel is off.

    -
    source

    pub fn init_random_seed(&self)

    Seed the random number generator with a random value.

    +
    source

    pub fn init_random_seed(&self)

    Seed the random number generator with a random value.

    The Arduino pseudorandom number generator is seeded with the random value returned from a call to generateRandomSeed().

    -
    source

    pub fn just_pressed(&self, button: ButtonSet) -> bool

    Check if a button has just been pressed.

    +
    source

    pub fn just_pressed(&self, button: ButtonSet) -> bool

    Check if a button has just been pressed.

    Parameters
    • button The button to test for. Only one button should be specified.
    • @@ -143,7 +143,7 @@ The contents of the display buffer in RAM are copied to the display and will app

      Return true if the given button was pressed between the latest call to pollButtons() and previous call to pollButtons(). If the button has been held down over multiple polls, this function will return false.

      There is no need to check for the release of the button since it must have been released for this function to return true when pressed again.

      This function should only be used to test a single button.

      -
    source

    pub fn just_released(&self, button: ButtonSet) -> bool

    Check if a button has just been released.

    +
    source

    pub fn just_released(&self, button: ButtonSet) -> bool

    Check if a button has just been released.

    Parameters
    • button The button to test for. Only one button should be specified.
    • @@ -153,7 +153,7 @@ The contents of the display buffer in RAM are copied to the display and will app

      Return true if the given button was released between the latest call to pollButtons() and previous call to pollButtons(). If the button has been held down over multiple polls, this function will return false.

      There is no need to check for the released of the button since it must have been pressed for this function to return true when pressed again.

      This function should only be used to test a single button.

      -
    source

    pub fn not_pressed(&self, button: ButtonSet) -> bool

    Test if the specified buttons are not pressed.

    +
    source

    pub fn not_pressed(&self, button: ButtonSet) -> bool

    Test if the specified buttons are not pressed.

    Parameters
    • buttons A bit mask indicating which buttons to test. (Can be a single button)
    • @@ -161,16 +161,16 @@ The contents of the display buffer in RAM are copied to the display and will app
      Returns

      True if all buttons in the provided mask are currently released.

      Read the state of the buttons and return true if all the buttons in the specified mask are currently released.

      -
    source

    pub fn next_frame(&self) -> bool

    Indicate that it’s time to render the next frame.

    +
    source

    pub fn next_frame(&self) -> bool

    Indicate that it’s time to render the next frame.

    Returns

    true if it’s time for the next frame.

    When this function returns true, the amount of time has elapsed to display the next frame, as specified by setFrameRate() or setFrameDuration().

    This function will normally be called at the start of the rendering loop which would wait for true to be returned before rendering and displaying the next frame.

    -
    source

    pub fn poll_buttons(&self)

    Poll the buttons and track their state over time.

    +
    source

    pub fn poll_buttons(&self)

    Poll the buttons and track their state over time.

    Read and save the current state of the buttons and also keep track of the button state when this function was previously called. These states are used by the justPressed() and justReleased() functions to determine if a button has changed state between now and the previous call to pollButtons().

    This function should be called once at the start of each new frame.

    The justPressed() and justReleased() functions rely on this function.

    -
    source

    pub fn pressed(&self, button: ButtonSet) -> bool

    Test if the all of the specified buttons are pressed.

    +
    source

    pub fn pressed(&self, button: ButtonSet) -> bool

    Test if the all of the specified buttons are pressed.

    Parameters
    • buttons A bit mask indicating which buttons to test. (Can be a single button)
    • @@ -178,7 +178,7 @@ The contents of the display buffer in RAM are copied to the display and will app
      Returns

      true if all buttons in the provided mask are currently pressed.

      Read the state of the buttons and return true if all of the buttons in the specified mask are being pressed.

      -
    source

    pub fn print(&self, x: impl Printable)

    The Arduino Print class is available for writing text to the screen buffer.

    +
    source

    pub fn print(&self, x: impl Printable)

    The Arduino Print class is available for writing text to the screen buffer.

    For an Arduboy2 class object, functions provided by the Arduino Print class can be used to write text to the screen buffer, in the same manner as the Arduino Serial.print(), etc., functions.

    Print will use the write() function to actually draw each character in the screen buffer, using the library’s font5x7 font. Two character values are handled specially:

      @@ -188,7 +188,7 @@ The contents of the display buffer in RAM are copied to the display and will app
      Example
      #![allow(non_upper_case_globals)]
       use arduboy_rust::prelude::*;
      -const arduboy:Arduboy2 =Arduboy2::new();
      +const arduboy: Arduboy2 = Arduboy2::new();
       let value: i16 = 42;
       
       arduboy.print(b"Hello World\n\0"[..]); // Prints "Hello World" and then sets the
      @@ -197,7 +197,7 @@ arduboy.print(b"Hello World\n\0"[..]); arduboy.print(value); // Prints "42"
       arduboy.print("\n\0"); // Sets the text cursor to the start of the next line
       arduboy.print("hello world") // Prints normal [&str]
      -
    source

    pub fn set_cursor(&self, x: i16, y: i16)

    Set the location of the text cursor.

    +
    source

    pub fn set_cursor(&self, x: i16, y: i16)

    Set the location of the text cursor.

    Parameters
    • @@ -208,41 +208,41 @@ arduboy.print(b"Hello World\n\0"[..]);

    The location of the text cursor is set the the specified coordinates. The coordinates are in pixels. Since the coordinates can specify any pixel location, the text does not have to be placed on specific rows. As with all drawing functions, location 0, 0 is the top left corner of the display. The cursor location represents the top left corner of the next character written.

    -
    source

    pub fn set_frame_rate(&self, rate: u8)

    Set the frame rate used by the frame control functions.

    +
    source

    pub fn set_frame_rate(&self, rate: u8)

    Set the frame rate used by the frame control functions.

    Parameters
    • rate The desired frame rate in frames per second.

    Normally, the frame rate would be set to the desired value once, at the start of the game, but it can be changed at any time to alter the frame update rate.

    -
    source

    pub fn set_text_size(&self, size: u8)

    Set the text character size.

    +
    source

    pub fn set_text_size(&self, size: u8)

    Set the text character size.

    Parameters
    • s The text size multiplier. Must be 1 or higher.

    Setting a text size of 1 will result in standard size characters with one pixel for each bit in the bitmap for a character. The value specified is a multiplier. A value of 2 will double the width and height. A value of 3 will triple the dimensions, etc.

    -
    source

    pub fn audio_on(&self)

    Turn sound on.

    +
    source

    pub fn audio_on(&self)

    Turn sound on.

    The system is configured to generate sound. This function sets the sound mode only until the unit is powered off.

    -
    source

    pub fn audio_off(&self)

    Turn sound off (mute).

    +
    source

    pub fn audio_off(&self)

    Turn sound off (mute).

    The system is configured to not produce sound (mute). This function sets the sound mode only until the unit is powered off.

    -
    source

    pub fn audio_save_on_off(&self)

    Save the current sound state in EEPROM.

    +
    source

    pub fn audio_save_on_off(&self)

    Save the current sound state in EEPROM.

    The current sound state, set by on() or off(), is saved to the reserved system area in EEPROM. This allows the state to carry over between power cycles and after uploading a different sketch.

    Note EEPROM is limited in the number of times it can be written to. Sketches should not continuously change and then save the state rapidly.

    -
    source

    pub fn audio_toggle(&self)

    Toggle the sound on/off state.

    +
    source

    pub fn audio_toggle(&self)

    Toggle the sound on/off state.

    If the system is configured for sound on, it will be changed to sound off (mute). If sound is off, it will be changed to on. This function sets the sound mode only until the unit is powered off. To save the current mode use saveOnOff().

    -
    source

    pub fn audio_on_and_save(&self)

    Combines the use function of audio_on() and audio_save_on_off()

    -
    source

    pub fn audio_enabled(&self) -> bool

    Get the current sound state.

    +
    source

    pub fn audio_on_and_save(&self)

    Combines the use function of audio_on() and audio_save_on_off()

    +
    source

    pub fn audio_enabled(&self) -> bool

    Get the current sound state.

    Returns

    true if sound is currently enabled (not muted).

    This function should be used by code that actually generates sound. If true is returned, sound can be produced. If false is returned, sound should be muted.

    -
    source

    pub fn invert(&self, inverse: bool)

    Invert the entire display or set it back to normal.

    +
    source

    pub fn invert(&self, inverse: bool)

    Invert the entire display or set it back to normal.

    Parameters
    • inverse true will invert the display. false will set the display to no-inverted.

    Calling this function with a value of true will set the display to inverted mode. A pixel with a value of 0 will be on and a pixel set to 1 will be off.

    Once in inverted mode, the display will remain this way until it is set back to non-inverted mode by calling this function with false.

    -
    source

    pub fn collide_point(&self, point: Point, rect: Rect) -> bool

    Test if a point falls within a rectangle.

    +
    source

    pub fn collide_point(&self, point: Point, rect: Rect) -> bool

    Test if a point falls within a rectangle.

    Parameters

    • point A structure describing the location of the point.
    • @@ -251,7 +251,7 @@ EEPROM is limited in the number of times it can be written to. Sketches should n

      Returns true if the specified point is within the specified rectangle.

      This function is intended to detemine if an object, whose boundaries are defined by the given rectangle, is in contact with the given point.

      -
    source

    pub fn collide_rect(&self, rect1: Rect, rect2: Rect) -> bool

    Test if a rectangle is intersecting with another rectangle.

    +
    source

    pub fn collide_rect(&self, rect1: Rect, rect2: Rect) -> bool

    Test if a rectangle is intersecting with another rectangle.

    Parameters

    • rect1,rect2 Structures describing the size and locations of the rectangles.
    • @@ -259,14 +259,14 @@ true if the specified point is within the specified rectangle.

      Returns true if the first rectangle is intersecting the second.

      This function is intended to detemine if an object, whose boundaries are defined by the given rectangle, is in contact with another rectangular object.

      -
    source

    pub fn digital_write_rgb_single(&self, color: u8, val: u8)

    Set one of the RGB LEDs digitally, to either fully on or fully off.

    +
    source

    pub fn digital_write_rgb_single(&self, color: u8, val: u8)

    Set one of the RGB LEDs digitally, to either fully on or fully off.

    Parameters

    • color The name of the LED to set. The value given should be one of RED_LED, GREEN_LED or BLUE_LED.
    • val Indicates whether to turn the specified LED on or off. The value given should be RGB_ON or RGB_OFF.

    This 2 parameter version of the function will set a single LED within the RGB LED either fully on or fully off. See the description of the 3 parameter version of this function for more details on the RGB LED.

    -
    source

    pub fn digital_write_rgb(&self, red: u8, green: u8, blue: u8)

    Set the RGB LEDs digitally, to either fully on or fully off.

    +
    source

    pub fn digital_write_rgb(&self, red: u8, green: u8, blue: u8)

    Set the RGB LEDs digitally, to either fully on or fully off.

    Parameters

    • red,green,blue Use value RGB_ON or RGB_OFF to set each LED.
    • @@ -282,7 +282,7 @@ true if the first rectangle is intersecting the second.

      RGB_ON RGB_OFF RGB_ON Magenta RGB_ON RGB_ON RGB_OFF Yellow RGB_ON RGB_ON RGB_ON White -
    source

    pub fn set_rgb_led_single(&self, color: u8, val: u8)

    Set the brightness of one of the RGB LEDs without affecting the others.

    +
    source

    pub fn set_rgb_led_single(&self, color: u8, val: u8)

    Set the brightness of one of the RGB LEDs without affecting the others.

    Parameters

    • color The name of the LED to set. The value given should be one of RED_LED, GREEN_LED or BLUE_LED.
    • @@ -293,7 +293,7 @@ true if the first rectangle is intersecting the second.

      In order to use this function, the 3 parameter version must first be called at least once, in order to initialize the hardware.

      This 2 parameter version of the function will set the brightness of a single LED within the RGB LED without affecting the current brightness of the other two. See the description of the 3 parameter version of this function for more details on the RGB LED.

      -
    source

    pub fn set_rgb_led(&self, red: u8, green: u8, blue: u8)

    Set the light output of the RGB LED.

    +
    source

    pub fn set_rgb_led(&self, red: u8, green: u8, blue: u8)

    Set the light output of the RGB LED.

    Parameters

    • red,green,blue The brightness value for each LED.
    • @@ -307,7 +307,7 @@ true if the first rectangle is intersecting the second.

      Many of the Kickstarter Arduboys were accidentally shipped with the RGB LED installed incorrectly. For these units, the green LED cannot be lit. As long as the green led is set to off, setting the red LED will actually control the blue LED and setting the blue LED will actually control the red LED. If the green LED is turned fully on, none of the LEDs will light.

      -
    source

    pub fn every_x_frames(&self, frames: u8) -> bool

    Indicate if the specified number of frames has elapsed.

    +
    source

    pub fn every_x_frames(&self, frames: u8) -> bool

    Indicate if the specified number of frames has elapsed.

    Parameters

    • frames The desired number of elapsed frames.
    • @@ -320,60 +320,70 @@ true if the specified number of frames has elapsed.

       #![allow(non_upper_case_globals)]
        use arduboy_rust::prelude::*;
      - const arduboy:Arduboy2 =Arduboy2::new();
      + const arduboy: Arduboy2 = Arduboy2::new();
       
        if arduboy.everyXFrames(5) {
            if arduboy.pressed(A_BUTTON) {
                //fireShot(); // just some example
            }
        }
      -
    source

    pub fn flip_vertical(&self, flipped: bool)

    Flip the display vertically or set it back to normal.

    +
    source

    pub fn flip_vertical(&self, flipped: bool)

    Flip the display vertically or set it back to normal.

    Parameters

    • flipped true will set vertical flip mode. false will set normal vertical orientation.

    Calling this function with a value of true will cause the Y coordinate to start at the bottom edge of the display instead of the top, effectively flipping the display vertically.

    Once in vertical flip mode, it will remain this way until normal vertical mode is set by calling this function with a value of false.

    -
    source

    pub fn flip_horizontal(&self, flipped: bool)

    Flip the display horizontally or set it back to normal.

    +
    source

    pub fn flip_horizontal(&self, flipped: bool)

    Flip the display horizontally or set it back to normal.

    Parameters

    • flipped true will set horizontal flip mode. false will set normal horizontal orientation.

    Calling this function with a value of true will cause the X coordinate to start at the left edge of the display instead of the right, effectively flipping the display horizontally.

    Once in horizontal flip mode, it will remain this way until normal horizontal mode is set by calling this function with a value of false.

    -
    source

    pub fn set_text_color(&self, color: Color)

    Set the text foreground color.

    +
    source

    pub fn set_text_color(&self, color: Color)

    Set the text foreground color.

    Parameters

    • color The color to be used for following text. The values WHITE or BLACK should be used.
    -
    source

    pub fn set_text_background_color(&self, color: Color)

    Set the text background color.

    +
    source

    pub fn set_text_background_color(&self, color: Color)

    Set the text background color.

    Parameters

    • color The background color to be used for following text. The values WHITE or BLACK should be used.

    The background pixels of following characters will be set to the specified color.

    However, if the background color is set to be the same as the text color, the background will be transparent. Only the foreground pixels will be drawn. The background pixels will remain as they were before the character was drawn.

    -
    source

    pub fn set_cursor_x(&self, x: i16)

    Set the X coordinate of the text cursor location.

    +
    source

    pub fn set_cursor_x(&self, x: i16)

    Set the X coordinate of the text cursor location.

    Parameters

    • x The X (horizontal) coordinate, in pixels, for the new location of the text cursor.

    The X coordinate for the location of the text cursor is set to the specified value, leaving the Y coordinate unchanged. For more details about the text cursor, see the setCursor() function.

    -
    source

    pub fn set_cursor_y(&self, y: i16)

    Set the Y coordinate of the text cursor location.

    +
    source

    pub fn set_cursor_y(&self, y: i16)

    Set the Y coordinate of the text cursor location.

    Parameters

    • y The Y (vertical) coordinate, in pixels, for the new location of the text cursor.

    The Y coordinate for the location of the text cursor is set to the specified value, leaving the X coordinate unchanged. For more details about the text cursor, see the setCursor() function.

    -
    source

    pub fn set_text_wrap(&self, w: bool)

    Set or disable text wrap mode.

    +
    source

    pub fn set_text_wrap(&self, w: bool)

    Set or disable text wrap mode.

    Parameters

    • w true enables text wrap mode. false disables it.

    Text wrap mode is enabled by specifying true. In wrap mode, if a character to be drawn would end up partially or fully past the right edge of the screen (based on the current text size), it will be placed at the start of the next line. The text cursor will be adjusted accordingly.

    If wrap mode is disabled, characters will always be written at the current text cursor position. A character near the right edge of the screen may only be partially displayed and characters drawn at a position past the right edge of the screen will remain off screen.

    -
    source

    pub fn idle(&self)

    Idle the CPU to save power.

    +
    source

    pub fn idle(&self)

    Idle the CPU to save power.

    This puts the CPU in idle sleep mode. You should call this as often as you can for the best power savings. The timer 0 overflow interrupt will wake up the chip every 1ms, so even at 60 FPS a well written app should be able to sleep maybe half the time in between rendering it’s own frames.

    +
    source

    pub fn buttons_state(&self) -> u8

    Get the current state of all buttons as a bitmask.

    +
    Returns
    +

    A bitmask of the state of all the buttons.

    +

    The returned mask contains a bit for each button. For any pressed button, its bit will be 1. For released buttons their associated bits will be 0.

    +

    The following defined mask values should be used for the buttons: +LEFT_BUTTON, RIGHT_BUTTON, UP_BUTTON, DOWN_BUTTON, A_BUTTON, B_BUTTON

    +
    source

    pub fn exit_to_bootloader(&self)

    Exit the sketch and start the bootloader.

    +

    The sketch will exit and the bootloader will be started in command mode. The effect will be similar to pressing the reset button.

    +

    This function is intended to be used to allow uploading a new sketch, when the USB code has been removed to gain more code space. Ideally, the sketch would present a “New Sketch Upload” menu or prompt telling the user to “Press and hold the DOWN button when the procedure to upload a new sketch has been initiated”. +The sketch would then wait for the DOWN button to be pressed and then call this function.

    Auto Trait Implementations§

    §

    impl RefUnwindSafe for Arduboy2

    §

    impl Send for Arduboy2

    §

    impl Sync for Arduboy2

    §

    impl Unpin for Arduboy2

    §

    impl UnwindSafe for Arduboy2

    Blanket Implementations§

    §

    impl<T> Any for Twhere T: 'static + ?Sized,

    §

    fn type_id(&self) -> TypeId

    Gets the TypeId of self. Read more
    §

    impl<T> Borrow<T> for Twhere T: ?Sized,

    §

    fn borrow(&self) -> &T

    Immutably borrows from an owned value. Read more
    §

    impl<T> BorrowMut<T> for Twhere diff --git a/docs/doc/help.html b/docs/doc/help.html index 97addff..ad3b5a1 100644 --- a/docs/doc/help.html +++ b/docs/doc/help.html @@ -1 +1 @@ -Rustdoc help

    Rustdoc help

    Back
    \ No newline at end of file +Rustdoc help

    Rustdoc help

    Back
    \ No newline at end of file diff --git a/docs/doc/implementors/core/clone/trait.Clone.js b/docs/doc/implementors/core/clone/trait.Clone.js index b54988c..a799ed6 100644 --- a/docs/doc/implementors/core/clone/trait.Clone.js +++ b/docs/doc/implementors/core/clone/trait.Clone.js @@ -1,5 +1,5 @@ (function() {var implementors = { -"arduboy_rust":[["impl Clone for Rect"],["impl Clone for Color"],["impl Clone for ButtonSet"],["impl Clone for Base"],["impl Clone for Point"]], +"arduboy_rust":[["impl Clone for ButtonSet"],["impl Clone for Rect"],["impl Clone for Base"],["impl Clone for Point"],["impl Clone for Color"]], "byteorder":[["impl Clone for BigEndian"],["impl Clone for LittleEndian"]], "critical_section":[["impl<'cs> Clone for CriticalSection<'cs>"],["impl Clone for RestoreState"]], "hash32":[["impl<H> Clone for BuildHasherDefault<H>where\n H: Default + Hasher,"]], diff --git a/docs/doc/implementors/core/cmp/trait.Ord.js b/docs/doc/implementors/core/cmp/trait.Ord.js index 4498cdd..4aef49f 100644 --- a/docs/doc/implementors/core/cmp/trait.Ord.js +++ b/docs/doc/implementors/core/cmp/trait.Ord.js @@ -1,5 +1,5 @@ (function() {var implementors = { -"arduboy_rust":[["impl Ord for Base"],["impl Ord for Color"],["impl Ord for ButtonSet"]], +"arduboy_rust":[["impl Ord for ButtonSet"],["impl Ord for Color"],["impl Ord for Base"]], "byteorder":[["impl Ord for LittleEndian"],["impl Ord for BigEndian"]], "heapless":[["impl Ord for LinkedIndexUsize"],["impl Ord for LinkedIndexU8"],["impl<const N: usize> Ord for String<N>"],["impl<T, const N: usize> Ord for Vec<T, N>where\n T: Ord,"],["impl Ord for LinkedIndexU16"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/doc/implementors/core/cmp/trait.PartialEq.js b/docs/doc/implementors/core/cmp/trait.PartialEq.js index 99cae1e..f9e4ed8 100644 --- a/docs/doc/implementors/core/cmp/trait.PartialEq.js +++ b/docs/doc/implementors/core/cmp/trait.PartialEq.js @@ -1,5 +1,5 @@ (function() {var implementors = { -"arduboy_rust":[["impl PartialEq<ButtonSet> for ButtonSet"],["impl PartialEq<Base> for Base"],["impl PartialEq<Color> for Color"]], +"arduboy_rust":[["impl PartialEq<ButtonSet> for ButtonSet"],["impl PartialEq<Color> for Color"],["impl PartialEq<Base> for Base"]], "byteorder":[["impl PartialEq<BigEndian> for BigEndian"],["impl PartialEq<LittleEndian> for LittleEndian"]], "hash32":[["impl<H> PartialEq<BuildHasherDefault<H>> for BuildHasherDefault<H>where\n H: Default + Hasher,"]], "heapless":[["impl<A, B, const N: usize, const M: usize> PartialEq<[B; M]> for Vec<A, N>where\n A: PartialEq<B>,"],["impl PartialEq<LinkedIndexU16> for LinkedIndexU16"],["impl<A, B, const N: usize> PartialEq<Vec<A, N>> for &[B]where\n A: PartialEq<B>,"],["impl PartialEq<LinkedIndexU8> for LinkedIndexU8"],["impl<A, B, const N: usize> PartialEq<&mut [B]> for Vec<A, N>where\n A: PartialEq<B>,"],["impl<A, B, const N: usize> PartialEq<Vec<A, N>> for [B]where\n A: PartialEq<B>,"],["impl<const N1: usize, const N2: usize> PartialEq<String<N2>> for String<N1>"],["impl<const N: usize> PartialEq<String<N>> for str"],["impl<const N: usize> PartialEq<&str> for String<N>"],["impl<T, S1, S2, const N1: usize, const N2: usize> PartialEq<IndexSet<T, S2, N2>> for IndexSet<T, S1, N1>where\n T: Eq + Hash,\n S1: BuildHasher,\n S2: BuildHasher,"],["impl<K, V, const N: usize, const N2: usize> PartialEq<LinearMap<K, V, N2>> for LinearMap<K, V, N>where\n K: Eq,\n V: PartialEq,"],["impl<const N: usize> PartialEq<str> for String<N>"],["impl<K, V, S, S2, const N: usize, const N2: usize> PartialEq<IndexMap<K, V, S2, N2>> for IndexMap<K, V, S, N>where\n K: Eq + Hash,\n V: Eq,\n S: BuildHasher,\n S2: BuildHasher,"],["impl<A, B, const N: usize> PartialEq<Vec<A, N>> for &mut [B]where\n A: PartialEq<B>,"],["impl<const N: usize> PartialEq<String<N>> for &str"],["impl PartialEq<LinkedIndexUsize> for LinkedIndexUsize"],["impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for &[B; M]where\n A: PartialEq<B>,"],["impl<A, B, const N: usize> PartialEq<[B]> for Vec<A, N>where\n A: PartialEq<B>,"],["impl<A, B, const N: usize> PartialEq<&[B]> for Vec<A, N>where\n A: PartialEq<B>,"],["impl<A, B, const N1: usize, const N2: usize> PartialEq<Vec<B, N2>> for Vec<A, N1>where\n A: PartialEq<B>,"],["impl<A, B, const N: usize, const M: usize> PartialEq<&[B; M]> for Vec<A, N>where\n A: PartialEq<B>,"],["impl<A, B, const N: usize, const M: usize> PartialEq<Vec<A, N>> for [B; M]where\n A: PartialEq<B>,"]] diff --git a/docs/doc/implementors/core/cmp/trait.PartialOrd.js b/docs/doc/implementors/core/cmp/trait.PartialOrd.js index 5428da2..7a7c483 100644 --- a/docs/doc/implementors/core/cmp/trait.PartialOrd.js +++ b/docs/doc/implementors/core/cmp/trait.PartialOrd.js @@ -1,5 +1,5 @@ (function() {var implementors = { -"arduboy_rust":[["impl PartialOrd<Base> for Base"],["impl PartialOrd<ButtonSet> for ButtonSet"],["impl PartialOrd<Color> for Color"]], +"arduboy_rust":[["impl PartialOrd<ButtonSet> for ButtonSet"],["impl PartialOrd<Base> for Base"],["impl PartialOrd<Color> for Color"]], "byteorder":[["impl PartialOrd<LittleEndian> for LittleEndian"],["impl PartialOrd<BigEndian> for BigEndian"]], "heapless":[["impl PartialOrd<LinkedIndexU8> for LinkedIndexU8"],["impl<const N1: usize, const N2: usize> PartialOrd<String<N2>> for String<N1>"],["impl PartialOrd<LinkedIndexUsize> for LinkedIndexUsize"],["impl PartialOrd<LinkedIndexU16> for LinkedIndexU16"],["impl<T, const N1: usize, const N2: usize> PartialOrd<Vec<T, N2>> for Vec<T, N1>where\n T: PartialOrd,"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/doc/implementors/core/fmt/trait.Debug.js b/docs/doc/implementors/core/fmt/trait.Debug.js index 68986cb..9852b12 100644 --- a/docs/doc/implementors/core/fmt/trait.Debug.js +++ b/docs/doc/implementors/core/fmt/trait.Debug.js @@ -1,5 +1,5 @@ (function() {var implementors = { -"arduboy_rust":[["impl Debug for Base"],["impl Debug for Color"],["impl Debug for ButtonSet"],["impl Debug for Rect"],["impl Debug for Point"]], +"arduboy_rust":[["impl Debug for ButtonSet"],["impl Debug for Base"],["impl Debug for Point"],["impl Debug for Rect"],["impl Debug for Color"]], "byteorder":[["impl Debug for BigEndian"],["impl Debug for LittleEndian"]], "critical_section":[["impl<T: Debug> Debug for Mutex<T>"],["impl<'cs> Debug for CriticalSection<'cs>"],["impl Debug for RestoreState"]], "drboy":[["impl Debug for Enemy"],["impl Debug for Player"],["impl Debug for GameMode"]], diff --git a/docs/doc/implementors/core/hash/trait.Hash.js b/docs/doc/implementors/core/hash/trait.Hash.js index ab91f46..12663fd 100644 --- a/docs/doc/implementors/core/hash/trait.Hash.js +++ b/docs/doc/implementors/core/hash/trait.Hash.js @@ -1,5 +1,5 @@ (function() {var implementors = { -"arduboy_rust":[["impl Hash for Color"],["impl Hash for ButtonSet"],["impl Hash for Base"]], +"arduboy_rust":[["impl Hash for Base"],["impl Hash for ButtonSet"],["impl Hash for Color"]], "byteorder":[["impl Hash for BigEndian"],["impl Hash for LittleEndian"]], "heapless":[["impl<T, const N: usize> Hash for Vec<T, N>where\n T: Hash,"],["impl<const N: usize> Hash for String<N>"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/doc/implementors/core/marker/trait.Copy.js b/docs/doc/implementors/core/marker/trait.Copy.js index 0a7b86e..e528fe2 100644 --- a/docs/doc/implementors/core/marker/trait.Copy.js +++ b/docs/doc/implementors/core/marker/trait.Copy.js @@ -1,5 +1,5 @@ (function() {var implementors = { -"arduboy_rust":[["impl Copy for Color"],["impl Copy for ButtonSet"],["impl Copy for Point"],["impl Copy for Base"],["impl Copy for Rect"]], +"arduboy_rust":[["impl Copy for Rect"],["impl Copy for ButtonSet"],["impl Copy for Base"],["impl Copy for Color"],["impl Copy for Point"]], "byteorder":[["impl Copy for BigEndian"],["impl Copy for LittleEndian"]], "critical_section":[["impl Copy for RestoreState"],["impl<'cs> Copy for CriticalSection<'cs>"]], "heapless":[["impl Copy for LinkedIndexU8"],["impl Copy for LinkedIndexU16"],["impl Copy for LinkedIndexUsize"]] diff --git a/docs/doc/implementors/core/marker/trait.StructuralEq.js b/docs/doc/implementors/core/marker/trait.StructuralEq.js index 76a4e7f..bcbbdfd 100644 --- a/docs/doc/implementors/core/marker/trait.StructuralEq.js +++ b/docs/doc/implementors/core/marker/trait.StructuralEq.js @@ -1,5 +1,5 @@ (function() {var implementors = { -"arduboy_rust":[["impl StructuralEq for Color"],["impl StructuralEq for ButtonSet"],["impl StructuralEq for Base"]], +"arduboy_rust":[["impl StructuralEq for Base"],["impl StructuralEq for Color"],["impl StructuralEq for ButtonSet"]], "byteorder":[["impl StructuralEq for LittleEndian"],["impl StructuralEq for BigEndian"]], "heapless":[["impl StructuralEq for LinkedIndexU16"],["impl StructuralEq for LinkedIndexUsize"],["impl StructuralEq for LinkedIndexU8"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/doc/implementors/core/marker/trait.StructuralPartialEq.js b/docs/doc/implementors/core/marker/trait.StructuralPartialEq.js index d036405..dc0f816 100644 --- a/docs/doc/implementors/core/marker/trait.StructuralPartialEq.js +++ b/docs/doc/implementors/core/marker/trait.StructuralPartialEq.js @@ -1,5 +1,5 @@ (function() {var implementors = { -"arduboy_rust":[["impl StructuralPartialEq for Color"],["impl StructuralPartialEq for Base"],["impl StructuralPartialEq for ButtonSet"]], +"arduboy_rust":[["impl StructuralPartialEq for ButtonSet"],["impl StructuralPartialEq for Color"],["impl StructuralPartialEq for Base"]], "byteorder":[["impl StructuralPartialEq for BigEndian"],["impl StructuralPartialEq for LittleEndian"]], "heapless":[["impl StructuralPartialEq for LinkedIndexU8"],["impl StructuralPartialEq for LinkedIndexU16"],["impl StructuralPartialEq for LinkedIndexUsize"]] };if (window.register_implementors) {window.register_implementors(implementors);} else {window.pending_implementors = implementors;}})() \ No newline at end of file diff --git a/docs/doc/search-index.js b/docs/doc/search-index.js index adc517b..4e41735 100644 --- a/docs/doc/search-index.js +++ b/docs/doc/search-index.js @@ -1,5 +1,5 @@ var searchIndex = JSON.parse('{\ -"arduboy_rust":{"doc":"This is the arduboy_rust crate To get started import the …","t":"DDDNEDDRRRNAAAAAAOOOOOAAOAADNERRDDRNMMMMMMDARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRIIKKAAFFFFFFFFFFFFFFFFFRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRFFFDFAARRRRDRRRRRRRRMLLLLRRRRRDDEGGDDDDNDDDNDDLLLLLLLLLLLLLLLLLLALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDIEEDLLLLLLLLLLLLLLLLLLLLLLLLLDDIDDDDDDDILLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLRRDDDRRRENNDERRNDDDRRRNRRDNQDIRRRRRDDRRDRNAAAALLLLLLLLLLLAGGGGGGGGGGGLLLLFKFLLOMLLLLLLLLOLOOOLLMLLLLLLLALLLLLLLKOLFFLLAAFLLLLLLLLLLLLLLLLLMLLMMMMDNERRDDRNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMDLLLLLLLLLLLLALLLLRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRIIKKAAFFFFFFFFFFFFFFFFFRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRDLLLLLLLLLLLLRRRRDRRRRRRRRMRRRRRQQIIFFKKFFLKFLKFFFFFFFQQIIFFKKFFLKFLKFFFFFFF","n":["ArdVoice","Arduboy2","ArduboyTones","Black","Color","EEPROM","EEPROMBYTE","FONT_SIZE","HEIGHT","WIDTH","White","arduboy2","arduboy_tones","arduboyfx","arduino","ardvoice","c","f","get_ardvoice_tone_addr","get_sprite_addr","get_string_addr","get_tones_addr","hardware","prelude","progmem","serial_print","sprites","Arduboy2","Black","Color","FONT_SIZE","HEIGHT","Point","Rect","WIDTH","White","height","width","x","x","y","y","ArduboyTones","tones_pitch","NOTE_A0","NOTE_A0H","NOTE_A1","NOTE_A1H","NOTE_A2","NOTE_A2H","NOTE_A3","NOTE_A3H","NOTE_A4","NOTE_A4H","NOTE_A5","NOTE_A5H","NOTE_A6","NOTE_A6H","NOTE_A7","NOTE_A7H","NOTE_A8","NOTE_A8H","NOTE_A9","NOTE_A9H","NOTE_AS0","NOTE_AS0H","NOTE_AS1","NOTE_AS1H","NOTE_AS2","NOTE_AS2H","NOTE_AS3","NOTE_AS3H","NOTE_AS4","NOTE_AS4H","NOTE_AS5","NOTE_AS5H","NOTE_AS6","NOTE_AS6H","NOTE_AS7","NOTE_AS7H","NOTE_AS8","NOTE_AS8H","NOTE_AS9","NOTE_AS9H","NOTE_B0","NOTE_B0H","NOTE_B1","NOTE_B1H","NOTE_B2","NOTE_B2H","NOTE_B3","NOTE_B3H","NOTE_B4","NOTE_B4H","NOTE_B5","NOTE_B5H","NOTE_B6","NOTE_B6H","NOTE_B7","NOTE_B7H","NOTE_B8","NOTE_B8H","NOTE_B9","NOTE_B9H","NOTE_C0","NOTE_C0H","NOTE_C1","NOTE_C1H","NOTE_C2","NOTE_C2H","NOTE_C3","NOTE_C3H","NOTE_C4","NOTE_C4H","NOTE_C5","NOTE_C5H","NOTE_C6","NOTE_C6H","NOTE_C7","NOTE_C7H","NOTE_C8","NOTE_C8H","NOTE_C9","NOTE_C9H","NOTE_CS0","NOTE_CS0H","NOTE_CS1","NOTE_CS1H","NOTE_CS2","NOTE_CS2H","NOTE_CS3","NOTE_CS3H","NOTE_CS4","NOTE_CS4H","NOTE_CS5","NOTE_CS5H","NOTE_CS6","NOTE_CS6H","NOTE_CS7","NOTE_CS7H","NOTE_CS8","NOTE_CS8H","NOTE_CS9","NOTE_CS9H","NOTE_D0","NOTE_D0H","NOTE_D1","NOTE_D1H","NOTE_D2","NOTE_D2H","NOTE_D3","NOTE_D3H","NOTE_D4","NOTE_D4H","NOTE_D5","NOTE_D5H","NOTE_D6","NOTE_D6H","NOTE_D7","NOTE_D7H","NOTE_D8","NOTE_D8H","NOTE_D9","NOTE_D9H","NOTE_DS0","NOTE_DS0H","NOTE_DS1","NOTE_DS1H","NOTE_DS2","NOTE_DS2H","NOTE_DS3","NOTE_DS3H","NOTE_DS4","NOTE_DS4H","NOTE_DS5","NOTE_DS5H","NOTE_DS6","NOTE_DS6H","NOTE_DS7","NOTE_DS7H","NOTE_DS8","NOTE_DS8H","NOTE_DS9","NOTE_DS9H","NOTE_E0","NOTE_E0H","NOTE_E1","NOTE_E1H","NOTE_E2","NOTE_E2H","NOTE_E3","NOTE_E3H","NOTE_E4","NOTE_E4H","NOTE_E5","NOTE_E5H","NOTE_E6","NOTE_E6H","NOTE_E7","NOTE_E7H","NOTE_E8","NOTE_E8H","NOTE_E9","NOTE_E9H","NOTE_F0","NOTE_F0H","NOTE_F1","NOTE_F1H","NOTE_F2","NOTE_F2H","NOTE_F3","NOTE_F3H","NOTE_F4","NOTE_F4H","NOTE_F5","NOTE_F5H","NOTE_F6","NOTE_F6H","NOTE_F7","NOTE_F7H","NOTE_F8","NOTE_F8H","NOTE_F9","NOTE_F9H","NOTE_FS0","NOTE_FS0H","NOTE_FS1","NOTE_FS1H","NOTE_FS2","NOTE_FS2H","NOTE_FS3","NOTE_FS3H","NOTE_FS4","NOTE_FS4H","NOTE_FS5","NOTE_FS5H","NOTE_FS6","NOTE_FS6H","NOTE_FS7","NOTE_FS7H","NOTE_FS8","NOTE_FS8H","NOTE_FS9","NOTE_FS9H","NOTE_G0","NOTE_G0H","NOTE_G1","NOTE_G1H","NOTE_G2","NOTE_G2H","NOTE_G3","NOTE_G3H","NOTE_G4","NOTE_G4H","NOTE_G5","NOTE_G5H","NOTE_G6","NOTE_G6H","NOTE_G7","NOTE_G7H","NOTE_G8","NOTE_G8H","NOTE_G9","NOTE_G9H","NOTE_GS0","NOTE_GS0H","NOTE_GS1","NOTE_GS1H","NOTE_GS2","NOTE_GS2H","NOTE_GS3","NOTE_GS3H","NOTE_GS4","NOTE_GS4H","NOTE_GS5","NOTE_GS5H","NOTE_GS6","NOTE_GS6H","NOTE_GS7","NOTE_GS7H","NOTE_GS8","NOTE_GS8H","NOTE_GS9","NOTE_GS9H","NOTE_REST","TONES_END","TONES_REPEAT","TONE_HIGH_VOLUME","VOLUME_ALWAYS_HIGH","VOLUME_ALWAYS_NORMAL","VOLUME_IN_TONE","DrawableNumber","DrawableString","draw","draw","fx","fx_consts","begin","begin_data","begin_data_save","display","display_clear","draw_bitmap","draw_char","draw_frame","draw_number","draw_string","read_data_array","set_cursor","set_cursor_range","set_cursor_x","set_cursor_y","set_font","set_frame","FX_DATA_VECTOR_KEY_POINTER","FX_DATA_VECTOR_PAGE_POINTER","FX_SAVE_VECTOR_KEY_POINTER","FX_SAVE_VECTOR_PAGE_POINTER","FX_VECTOR_KEY_VALUE","SFC_ERASE","SFC_JEDEC_ID","SFC_POWERDOWN","SFC_READ","SFC_READSTATUS1","SFC_READSTATUS2","SFC_READSTATUS3","SFC_RELEASE_POWERDOWN","SFC_WRITE","SFC_WRITE_ENABLE","dbfBlack","dbfEndFrame","dbfExtraRow","dbfFlip","dbfInvert","dbfLastFrame","dbfMasked","dbfReverseBlack","dbfWhiteBlack","dbmBlack","dbmEndFrame","dbmFlip","dbmInvert","dbmLastFrame","dbmMasked","dbmNormal","dbmOverwrite","dbmReverse","dbmWhite","dcfBlack","dcfInvert","dcfMasked","dcfProportional","dcfReverseBlack","dcfWhiteBlack","dcmBlack","dcmInvert","dcmMasked","dcmNormal","dcmOverwrite","dcmProportional","dcmReverse","dcmWhite","delay","random_between","random_less_than","ArdVoice","strlen","buttons","led","A","A_BUTTON","B","B_BUTTON","ButtonSet","DOWN","DOWN_BUTTON","LEFT","LEFT_BUTTON","RIGHT","RIGHT_BUTTON","UP","UP_BUTTON","flag_set","just_pressed","just_released","not_pressed","pressed","BLUE_LED","GREEN_LED","RED_LED","RGB_OFF","RGB_ON","BinaryHeap","Deque","Entry","FnvIndexMap","FnvIndexSet","HistoryBuffer","IndexMap","IndexSet","LinearMap","Occupied","OccupiedEntry","OldestOrdered","String","Vacant","VacantEntry","Vec","as_mut","as_mut","as_mut_ptr","as_mut_slices","as_mut_str","as_mut_vec","as_ptr","as_ref","as_ref","as_ref","as_ref","as_ref","as_slice","as_slice","as_slices","as_str","back","back_mut","binary_heap","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","capacity","capacity","capacity","capacity","capacity","capacity","capacity","capacity","clear","clear","clear","clear","clear","clear","clear","clear","clear_with","clone","clone","clone","clone","clone","clone","clone","clone","cmp","cmp","contains","contains_key","contains_key","default","default","default","default","default","default","default","default","default_parameters","default_parameters","default_parameters","deref","deref","deref","deref_mut","deref_mut","difference","draw","drop","drop","drop","drop","ends_with","entry","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","extend","extend","extend","extend","extend","extend","extend","extend","extend","extend_from_slice","extend_from_slice","first","first","first_mut","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_iter","from_iter","from_iter","from_iter","from_iter","from_iter","from_iter","from_slice","from_str","front","front_mut","get","get","get","get_mut","get_mut","get_mut","hash","hash","hash","hash","index","index","index_mut","index_mut","insert","insert","insert","insert","insert","insert","intersection","into","into","into","into","into","into","into","into","into","into","into","into","into_array","into_bytes","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_key","into_mut","into_vec","is_disjoint","is_empty","is_empty","is_empty","is_empty","is_empty","is_empty","is_full","is_full","is_subset","is_superset","iter","iter","iter","iter","iter","iter_mut","iter_mut","iter_mut","iter_mut","key","key","keys","keys","last","last","last_mut","len","len","len","len","len","len","ne","ne","ne","new","new","new","new","new","new","new","new","new_with","next","oldest_ordered","partial_cmp","partial_cmp","peek","peek_mut","pop","pop","pop","pop_back","pop_back_unchecked","pop_front","pop_front_unchecked","pop_unchecked","pop_unchecked","print_2","print_2","println_2","push","push","push","push_back","push_back_unchecked","push_front","push_front_unchecked","push_str","push_unchecked","push_unchecked","recent","remove","remove","remove","remove","remove","remove_entry","resize","resize_default","retain","retain_mut","set_len","sorted_linked_list","starts_with","swap_remove","swap_remove","swap_remove_unchecked","symmetric_difference","truncate","truncate","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","union","values","values","values_mut","values_mut","write","write_char","write_str","write_str","BinaryHeap","Kind","Max","Min","PeekMut","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","deref","deref_mut","drop","from","from","from","into","into","into","pop","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","FindMut","Iter","Kind","LinkedIndexU16","LinkedIndexU8","LinkedIndexUsize","Max","Min","Node","SortedLinkedList","SortedLinkedListIndex","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","cmp","cmp","cmp","deref","deref_mut","drop","drop","eq","eq","eq","find_mut","finish","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","into_iter","is_empty","is_full","iter","new_u16","new_u8","new_usize","next","partial_cmp","partial_cmp","partial_cmp","peek","pop","pop","pop_unchecked","push","push_unchecked","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","A","A_BUTTON","ArdVoice","Arduboy2","ArduboyTones","B","BLUE_LED","B_BUTTON","Base","Bin","Black","ButtonSet","Color","DOWN","DOWN_BUTTON","Dec","EEPROM","EEPROMBYTE","EEPROMBYTECHECKLESS","FONT_SIZE","GREEN_LED","HEIGHT","Hex","LEFT","LEFT_BUTTON","LinearMap","Oct","Parameters","Point","Printable","RED_LED","RGB_OFF","RGB_ON","RIGHT","RIGHT_BUTTON","Rect","String","UP","UP_BUTTON","Vec","WIDTH","White","arduboy2","arduboy_tones","arduboyfx","ardvoice","bitor","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","buttons","c_char","c_double","c_float","c_int","c_long","c_longlong","c_size_t","c_uchar","c_uint","c_ulong","c_ulonglong","clone","clone","cmp","cmp","constrain","default_parameters","delay","eq","eq","f","flag_set","fmt","fmt","from","from","from","from","from","get","get_ardvoice_tone_addr","get_direct","get_sprite_addr","get_string_addr","get_tones_addr","hash","hash","height","init","init","into","into","into","into","into","led","new","new","new","partial_cmp","partial_cmp","print","print","print_2","progmem","put","random_between","random_less_than","read","read","serial","sprites","strlen","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","update","update","width","write","write","x","x","y","y","Arduboy2","Black","Color","FONT_SIZE","HEIGHT","Point","Rect","WIDTH","White","audio_enabled","audio_off","audio_on","audio_on_and_save","audio_save_on_off","audio_toggle","begin","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clear","clone","clone","clone","cmp","collide_point","collide_rect","digital_write_rgb","digital_write_rgb_single","display","display_and_clear_buffer","draw_circle","draw_fast_hline","draw_fast_vline","draw_pixel","draw_rect","draw_round_rect","draw_triangle","eq","every_x_frames","fill_circle","fill_rect","fill_round_rect","fill_triangle","flip_horizontal","flip_vertical","fmt","fmt","fmt","from","from","from","from","get_pixel","hash","height","idle","init_random_seed","into","into","into","into","invert","just_pressed","just_released","new","next_frame","not","not_pressed","partial_cmp","poll_buttons","pressed","print","set_cursor","set_cursor_x","set_cursor_y","set_frame_rate","set_rgb_led","set_rgb_led_single","set_text_background_color","set_text_color","set_text_size","set_text_wrap","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","width","x","x","y","y","ArduboyTones","borrow","borrow_mut","from","into","new","no_tone","playing","tone","tone2","tone3","tones","tones_in_ram","tones_pitch","try_from","try_into","type_id","volume_mode","NOTE_A0","NOTE_A0H","NOTE_A1","NOTE_A1H","NOTE_A2","NOTE_A2H","NOTE_A3","NOTE_A3H","NOTE_A4","NOTE_A4H","NOTE_A5","NOTE_A5H","NOTE_A6","NOTE_A6H","NOTE_A7","NOTE_A7H","NOTE_A8","NOTE_A8H","NOTE_A9","NOTE_A9H","NOTE_AS0","NOTE_AS0H","NOTE_AS1","NOTE_AS1H","NOTE_AS2","NOTE_AS2H","NOTE_AS3","NOTE_AS3H","NOTE_AS4","NOTE_AS4H","NOTE_AS5","NOTE_AS5H","NOTE_AS6","NOTE_AS6H","NOTE_AS7","NOTE_AS7H","NOTE_AS8","NOTE_AS8H","NOTE_AS9","NOTE_AS9H","NOTE_B0","NOTE_B0H","NOTE_B1","NOTE_B1H","NOTE_B2","NOTE_B2H","NOTE_B3","NOTE_B3H","NOTE_B4","NOTE_B4H","NOTE_B5","NOTE_B5H","NOTE_B6","NOTE_B6H","NOTE_B7","NOTE_B7H","NOTE_B8","NOTE_B8H","NOTE_B9","NOTE_B9H","NOTE_C0","NOTE_C0H","NOTE_C1","NOTE_C1H","NOTE_C2","NOTE_C2H","NOTE_C3","NOTE_C3H","NOTE_C4","NOTE_C4H","NOTE_C5","NOTE_C5H","NOTE_C6","NOTE_C6H","NOTE_C7","NOTE_C7H","NOTE_C8","NOTE_C8H","NOTE_C9","NOTE_C9H","NOTE_CS0","NOTE_CS0H","NOTE_CS1","NOTE_CS1H","NOTE_CS2","NOTE_CS2H","NOTE_CS3","NOTE_CS3H","NOTE_CS4","NOTE_CS4H","NOTE_CS5","NOTE_CS5H","NOTE_CS6","NOTE_CS6H","NOTE_CS7","NOTE_CS7H","NOTE_CS8","NOTE_CS8H","NOTE_CS9","NOTE_CS9H","NOTE_D0","NOTE_D0H","NOTE_D1","NOTE_D1H","NOTE_D2","NOTE_D2H","NOTE_D3","NOTE_D3H","NOTE_D4","NOTE_D4H","NOTE_D5","NOTE_D5H","NOTE_D6","NOTE_D6H","NOTE_D7","NOTE_D7H","NOTE_D8","NOTE_D8H","NOTE_D9","NOTE_D9H","NOTE_DS0","NOTE_DS0H","NOTE_DS1","NOTE_DS1H","NOTE_DS2","NOTE_DS2H","NOTE_DS3","NOTE_DS3H","NOTE_DS4","NOTE_DS4H","NOTE_DS5","NOTE_DS5H","NOTE_DS6","NOTE_DS6H","NOTE_DS7","NOTE_DS7H","NOTE_DS8","NOTE_DS8H","NOTE_DS9","NOTE_DS9H","NOTE_E0","NOTE_E0H","NOTE_E1","NOTE_E1H","NOTE_E2","NOTE_E2H","NOTE_E3","NOTE_E3H","NOTE_E4","NOTE_E4H","NOTE_E5","NOTE_E5H","NOTE_E6","NOTE_E6H","NOTE_E7","NOTE_E7H","NOTE_E8","NOTE_E8H","NOTE_E9","NOTE_E9H","NOTE_F0","NOTE_F0H","NOTE_F1","NOTE_F1H","NOTE_F2","NOTE_F2H","NOTE_F3","NOTE_F3H","NOTE_F4","NOTE_F4H","NOTE_F5","NOTE_F5H","NOTE_F6","NOTE_F6H","NOTE_F7","NOTE_F7H","NOTE_F8","NOTE_F8H","NOTE_F9","NOTE_F9H","NOTE_FS0","NOTE_FS0H","NOTE_FS1","NOTE_FS1H","NOTE_FS2","NOTE_FS2H","NOTE_FS3","NOTE_FS3H","NOTE_FS4","NOTE_FS4H","NOTE_FS5","NOTE_FS5H","NOTE_FS6","NOTE_FS6H","NOTE_FS7","NOTE_FS7H","NOTE_FS8","NOTE_FS8H","NOTE_FS9","NOTE_FS9H","NOTE_G0","NOTE_G0H","NOTE_G1","NOTE_G1H","NOTE_G2","NOTE_G2H","NOTE_G3","NOTE_G3H","NOTE_G4","NOTE_G4H","NOTE_G5","NOTE_G5H","NOTE_G6","NOTE_G6H","NOTE_G7","NOTE_G7H","NOTE_G8","NOTE_G8H","NOTE_G9","NOTE_G9H","NOTE_GS0","NOTE_GS0H","NOTE_GS1","NOTE_GS1H","NOTE_GS2","NOTE_GS2H","NOTE_GS3","NOTE_GS3H","NOTE_GS4","NOTE_GS4H","NOTE_GS5","NOTE_GS5H","NOTE_GS6","NOTE_GS6H","NOTE_GS7","NOTE_GS7H","NOTE_GS8","NOTE_GS8H","NOTE_GS9","NOTE_GS9H","NOTE_REST","TONES_END","TONES_REPEAT","TONE_HIGH_VOLUME","VOLUME_ALWAYS_HIGH","VOLUME_ALWAYS_NORMAL","VOLUME_IN_TONE","DrawableNumber","DrawableString","draw","draw","fx","fx_consts","begin","begin_data","begin_data_save","display","display_clear","draw_bitmap","draw_char","draw_frame","draw_number","draw_string","read_data_array","set_cursor","set_cursor_range","set_cursor_x","set_cursor_y","set_font","set_frame","FX_DATA_VECTOR_KEY_POINTER","FX_DATA_VECTOR_PAGE_POINTER","FX_SAVE_VECTOR_KEY_POINTER","FX_SAVE_VECTOR_PAGE_POINTER","FX_VECTOR_KEY_VALUE","SFC_ERASE","SFC_JEDEC_ID","SFC_POWERDOWN","SFC_READ","SFC_READSTATUS1","SFC_READSTATUS2","SFC_READSTATUS3","SFC_RELEASE_POWERDOWN","SFC_WRITE","SFC_WRITE_ENABLE","dbfBlack","dbfEndFrame","dbfExtraRow","dbfFlip","dbfInvert","dbfLastFrame","dbfMasked","dbfReverseBlack","dbfWhiteBlack","dbmBlack","dbmEndFrame","dbmFlip","dbmInvert","dbmLastFrame","dbmMasked","dbmNormal","dbmOverwrite","dbmReverse","dbmWhite","dcfBlack","dcfInvert","dcfMasked","dcfProportional","dcfReverseBlack","dcfWhiteBlack","dcmBlack","dcmInvert","dcmMasked","dcmNormal","dcmOverwrite","dcmProportional","dcmReverse","dcmWhite","ArdVoice","borrow","borrow_mut","from","into","is_voice_playing","new","play_voice","play_voice_complex","stop_voice","try_from","try_into","type_id","A","A_BUTTON","B","B_BUTTON","ButtonSet","DOWN","DOWN_BUTTON","LEFT","LEFT_BUTTON","RIGHT","RIGHT_BUTTON","UP","UP_BUTTON","flag_set","BLUE_LED","GREEN_LED","RED_LED","RGB_OFF","RGB_ON","Parameters","Parameters","Serialprintable","Serialprintlnable","available","begin","default_parameters","default_parameters","end","print","print","print_2","println","println","println_2","read","read_as_utf8_str","draw_erase","draw_external_mask","draw_override","draw_plus_mask","draw_self_masked","Parameters","Parameters","Serialprintable","Serialprintlnable","available","begin","default_parameters","default_parameters","end","print","print","print_2","println","println","println_2","read","read_as_utf8_str","draw_erase","draw_external_mask","draw_override","draw_plus_mask","draw_self_masked"],"q":[[0,"arduboy_rust"],[27,"arduboy_rust::arduboy2"],[42,"arduboy_rust::arduboy_tones"],[44,"arduboy_rust::arduboy_tones::tones_pitch"],[291,"arduboy_rust::arduboyfx"],[297,"arduboy_rust::arduboyfx::fx"],[314,"arduboy_rust::arduboyfx::fx_consts"],[362,"arduboy_rust::arduino"],[365,"arduboy_rust::ardvoice"],[366,"arduboy_rust::c"],[367,"arduboy_rust::hardware"],[369,"arduboy_rust::hardware::buttons"],[387,"arduboy_rust::hardware::led"],[392,"arduboy_rust::heapless"],[762,"arduboy_rust::heapless::binary_heap"],[792,"arduboy_rust::heapless::sorted_linked_list"],[902,"arduboy_rust::prelude"],[1047,"arduboy_rust::prelude::arduboy2"],[1151,"arduboy_rust::prelude::arduboy_tones"],[1169,"arduboy_rust::prelude::arduboy_tones::tones_pitch"],[1416,"arduboy_rust::prelude::arduboyfx"],[1422,"arduboy_rust::prelude::arduboyfx::fx"],[1439,"arduboy_rust::prelude::arduboyfx::fx_consts"],[1487,"arduboy_rust::prelude::ardvoice"],[1500,"arduboy_rust::prelude::buttons"],[1514,"arduboy_rust::prelude::led"],[1519,"arduboy_rust::prelude::serial"],[1536,"arduboy_rust::prelude::sprites"],[1541,"arduboy_rust::serial_print"],[1558,"arduboy_rust::sprites"]],"d":["This is the struct to interact in a save way with the …","This is the struct to interact in a save way with the …","This is the struct to interact in a save way with the …","Led is off","This item is to chose between Black or White","This is the struct to store and read structs objects …","Use this struct to store and read single bytes to/from …","The standard font size of the arduboy","The standard height of the arduboy","The standard width of the arduboy","Led is on","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","Clib functions you can use on the Arduboy","This is the way to go if you want print some random text","Create a const raw pointer to a ardvoice tone as u8, …","Create a const raw pointer to a sprite as u8, without …","Create a const raw pointer to a [u8;_] that saves text, …","Create a const raw pointer to a tone sequenze as u16, …","This is the Module to interact in a save way with the …","This is the important one to use this library effective in …","Create a space for Progmem variable","This is the Module to interact in a save way with the …","This is the module to interact in a save way with the …","This is the struct to interact in a save way with the …","Led is off","This item is to chose between Black or White","The standard font size of the arduboy","The standard height of the arduboy","This struct is used by a few Arduboy functions.","This struct is used by a few Arduboy functions.","The standard width of the arduboy","Led is on","Rect height","Rect width","Position X","Position X","Position Y","Position Y","This is the struct to interact in a save way with the …","A list of all tones available and used by the Sounds …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Functions given by the ArduboyFX library.","Consts given by the ArduboyFX library.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A Arduino function to pause the cpu circles for a given …","A Arduino function to get a random number between 2 numbers","A Arduino function to get a random number smaller than the …","This is the struct to interact in a save way with the …","A C function to get the length of a string","A list of all six buttons available on the Arduboy","A list of all LED variables available","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 B button","This struct gives the library a understanding what Buttons …","Just a const for the DOWN button","Just a const for the DOWN button","Just a const for the LEFT button","Just a const for the LEFT button","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","","","","","","Just a const for the blue led","Just a const for the green led","Just a const for the red led","Just a const for led off","Just a const for led on","A priority queue implemented with a binary heap.","A fixed capacity double-ended queue.","A view into an entry in the map","A heapless::IndexMap using the default FNV hasher","A heapless::IndexSet using the default FNV hasher. A list …","A “history buffer”, similar to a write-only ring …","Fixed capacity IndexMap","Fixed capacity IndexSet.","A fixed capacity map / dictionary that performs lookups …","The entry corresponding to the key K exists in the map","An occupied entry which can be manipulated","An iterator on the underlying buffer ordered from oldest …","A fixed capacity String","The entry corresponding to the key K does not exist in the …","A view into an empty slot in the underlying map","A fixed capacity Vec","","","Returns a raw pointer to the vector’s buffer, which may …","Returns a pair of mutable slices which contain, in order, …","Converts a String into a mutable string slice.","Returns a mutable reference to the contents of this String.","Returns a raw pointer to the vector’s buffer.","","","","","","Returns the array slice backing the buffer, without …","Extracts a slice containing the entire vector.","Returns a pair of slices which contain, in order, the …","Extracts a string slice containing the entire string.","Provides a reference to the back element, or None if the …","Provides a mutable reference to the back element, or None …","A priority queue implemented with a binary heap.","","","","","","","","","","","","","","","","","","","","","","","","","Returns the maximum number of elements the deque can hold.","Returns the capacity of the buffer, which is the length of …","Returns the number of elements the map can hold","Returns the number of elements the set can hold","Returns the number of elements that the map can hold","Returns the maximum number of elements the String can hold","Returns the maximum number of elements the vector can hold.","Returns the capacity of the binary heap.","Clears the deque, removing all values.","Clears the buffer, replacing every element with the …","Remove all key-value pairs in the map, while preserving …","Clears the set, removing all values.","Clears the map, removing all key-value pairs","Truncates this String, removing all contents.","Clears the vector, removing all values.","Drops all items from the binary heap.","Clears the buffer, replacing every element with the given …","","","","","","","","","","","Returns true if the set contains a value.","Returns true if the map contains a value for the specified …","Returns true if the map contains a value for the specified …","","","","","","","","","","","","","","","","","Visits the values representing the difference, i.e. the …","","","","","","Returns true if needle is a suffix of the Vec.","Returns an entry for the corresponding key","","","","","","","","","","","","","","","","","","","","Extends the vec from an iterator.","","Clones and writes all elements in a slice to the buffer.","Clones and appends all elements in a slice to the Vec.","Get the first key-value pair","Get the first value","Get the first key-value pair, with mutable access to the …","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","Returns the argument unchanged.","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","Constructs a new vector with a fixed capacity of N and …","","Provides a reference to the front element, or None if the …","Provides a mutable reference to the front element, or None …","Gets a reference to the value associated with this entry","Returns a reference to the value corresponding to the key.","Returns a reference to the value corresponding to the key","Gets a mutable reference to the value associated with this …","Returns a mutable reference to the value corresponding to …","Returns a mutable reference to the value corresponding to …","","","","","","","","","Overwrites the underlying map’s value with this entry’…","Inserts this entry into to underlying map, yields a …","Inserts a key-value pair into the map.","Adds a value to the set.","Inserts a key-value pair into the map.","Inserts an element at position index within the vector, …","Visits the values representing the intersection, i.e. the …","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Returns the contents of the vector as an array of length M …","Converts a String into a byte vector.","","","","","","","","","","","","","","Consumes this entry to yield to key associated with it","Consumes this entry and yields a reference to the …","Returns the underlying Vec<T,N>. Order is arbitrary and …","Returns true if self has no elements in common with other. …","Returns whether the deque is empty.","Returns true if the map contains no elements.","Returns true if the set contains no elements.","Returns true if the map contains no elements","Returns true if the vec is empty","Checks if the binary heap is empty.","Returns whether the deque is full (i.e. if …","Returns true if the vec is full","Returns true if the set is a subset of another, i.e. other …","Examples","Returns an iterator over the deque.","Return an iterator over the key-value pairs of the map, in …","Return an iterator over the values of the set, in their …","An iterator visiting all key-value pairs in arbitrary …","Returns an iterator visiting all values in the underlying …","Returns an iterator that allows modifying each value.","Return an iterator over the key-value pairs of the map, in …","An iterator visiting all key-value pairs in arbitrary …","Returns a mutable iterator visiting all values in the …","Gets a reference to the key that this entity corresponds to","Get the key associated with this entry","Return an iterator over the keys of the map, in their order","An iterator visiting all keys in arbitrary order","Get the last key-value pair","Get the last value","Get the last key-value pair, with mutable access to the …","Returns the number of elements currently in the deque.","Returns the current fill level of the buffer.","Return the number of key-value pairs in the map.","Returns the number of elements in the set.","Returns the number of elements in this map","Returns the length of the binary heap.","","","","Constructs a new, empty deque with a fixed capacity of N","Constructs a new history buffer.","Creates an empty IndexMap.","Creates an empty IndexSet","Creates an empty LinearMap","Constructs a new, empty String with a fixed capacity of N …","Constructs a new, empty vector with a fixed capacity of N","Creates an empty BinaryHeap as a $K-heap.","Constructs a new history buffer, where every element is …","","Returns an iterator for iterating over the buffer from …","","","Returns the top (greatest if max-heap, smallest if …","Returns a mutable reference to the greatest item in the …","Removes the last character from the string buffer and …","Removes the last element from a vector and returns it, or …","Removes the top (greatest if max-heap, smallest if …","Removes the item from the back of the deque and returns …","Removes an item from the back of the deque and returns it, …","Removes the item from the front of the deque and returns …","Removes an item from the front of the deque and returns …","Removes the last element from a vector and returns it","Removes the top (greatest if max-heap, smallest if …","","","","Appends the given char to the end of this String.","Appends an item to the back of the collection","Pushes an item onto the binary heap.","Appends an item to the back of the deque","Appends an item to the back of the deque","Appends an item to the front of the deque","Appends an item to the front of the deque","Appends a given string slice onto the end of this String.","Appends an item to the back of the collection","Pushes an item onto the binary heap without first checking …","Returns a reference to the most recently written value.","Removes this entry from the map and yields its value","Same as swap_remove","Removes a value from the set. Returns true if the value …","Removes a key from the map, returning the value at the key …","Removes and returns the element at position index within …","Removes this entry from the map and yields its …","Resizes the Vec in-place so that len is equal to new_len.","Resizes the Vec in-place so that len is equal to new_len.","Retains only the elements specified by the predicate.","Retains only the elements specified by the predicate, …","Forces the length of the vector to new_len.","A fixed sorted priority linked list, similar to BinaryHeap …","Returns true if needle is a prefix of the Vec.","Remove the key-value pair equivalent to key and return its …","Removes an element from the vector and returns it.","Removes an element from the vector and returns it.","Visits the values representing the symmetric difference, …","Shortens this String to the specified length.","Shortens the vector, keeping the first len elements and …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Visits the values representing the union, i.e. all the …","Return an iterator over the values of the map, in their …","An iterator visiting all values in arbitrary order","Return an iterator over mutable references to the the …","An iterator visiting all values mutably in arbitrary order","Writes an element to the buffer, overwriting the oldest …","","","","A priority queue implemented with a binary heap.","The binary heap kind: min-heap or max-heap","Max-heap","Min-heap","Structure wrapping a mutable reference to the greatest …","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Removes the peeked value from the heap and returns it.","","","","","","","","","","Comes from SortedLinkedList::find_mut.","Iterator for the linked list.","The linked list kind: min-list or max-list","Index for the SortedLinkedList with specific backing …","Index for the SortedLinkedList with specific backing …","Index for the SortedLinkedList with specific backing …","Marker for Max sorted SortedLinkedList.","Marker for Min sorted SortedLinkedList.","A node in the SortedLinkedList.","The linked list.","Trait for defining an index for the linked list, never …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Find an element in the list that can be changed and …","This will resort the element into the correct position in …","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","Checks if the linked list is empty.","Checks if the linked list is full.","Get an iterator over the sorted list.","Create a new linked list.","Create a new linked list.","Create a new linked list.","","","","","Peek at the first element.","Pops the first element in the list.","This will pop the element from the list.","Pop an element from the list without checking so the list …","Pushes an element to the linked list and sorts it into …","Pushes a value onto the list without checking if the list …","","","","","","","","","","","","","","","","","","","","","","","","","","","","Just a const for the A button","Just a const for the A button","This is the struct to interact in a save way with the …","This is the struct to interact in a save way with the …","This is the struct to interact in a save way with the …","Just a const for the B button","Just a const for the blue led","Just a const for the B button","","","Led is off","This struct gives the library a understanding what Buttons …","This item is to chose between Black or White","Just a const for the DOWN button","Just a const for the DOWN button","","This is the struct to store and read structs objects …","Use this struct to store and read single bytes to/from …","Use this struct to store and read single bytes to/from …","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","A fixed capacity map / dictionary that performs lookups …","","","This struct is used by a few Arduboy functions.","","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","This struct is used by a few Arduboy functions.","A fixed capacity String","Just a const for the UP button","Just a const for the UP button","A fixed capacity Vec","The standard width of the arduboy","Led is on","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","","","","","","","","","","","","A list of all six buttons available on the Arduboy","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 size_t type, from stddef.h (or cstddef …","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.","","","","","","","A Arduino function to pause the cpu circles for a given …","","","This is the way to go if you want print some random text","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","Create a const raw pointer to a ardvoice tone as u8, …","","Create a const raw pointer to a sprite as u8, without …","Create a const raw pointer to a [u8;_] that saves text, …","Create a const raw pointer to a tone sequenze as u16, …","","","Rect height","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","A list of all LED variables available","","","","","","","","","Create a space for Progmem variable","","A Arduino function to get a random number between 2 numbers","A Arduino function to get a random number smaller than the …","","","This is the Module to interact in a save way with the …","This is the module to interact in a save way with the …","A C function to get the length of a string","","","","","","","","","","","","","","","","","","Rect width","","","Position X","Position X","Position Y","Position Y","This is the struct to interact in a save way with the …","Led is off","This item is to chose between Black or White","The standard font size of the arduboy","The standard height of the arduboy","This struct is used by a few Arduboy functions.","This struct is used by a few Arduboy functions.","The standard width of the arduboy","Led is on","Get the current sound state.","Turn sound off (mute).","Turn sound on.","Combines the use function of audio_on() and …","Save the current sound state in EEPROM.","Toggle the sound on/off state.","Initialize the hardware, display the boot logo, provide …","","","","","","","","","Clear the display buffer and set the text cursor to …","","","","","Test if a point falls within a rectangle.","Test if a rectangle is intersecting with another rectangle.","Set the RGB LEDs digitally, to either fully on or fully …","Set one of the RGB LEDs digitally, to either fully on or …","Copy the contents of the display buffer to the display. …","Copy the contents of the display buffer to the display. …","Draw a circle of a given radius.","Draw a horizontal line.","Draw a vertical line.","Set a single pixel in the display buffer to the specified …","Draw a rectangle of a specified width and height.","Draw a rectangle with rounded corners.","Draw a triangle given the coordinates of each corner.","","Indicate if the specified number of frames has elapsed.","Draw a filled-in circle of a given radius.","Draw a filled-in rectangle of a specified width and height.","Draw a filled-in rectangle with rounded corners.","Draw a filled-in triangle given the coordinates of each …","Flip the display horizontally or set it back to normal.","Flip the display vertically or set it back to normal.","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the state of the given pixel in the screen buffer.","","Rect height","Idle the CPU to save power.","Seed the random number generator with a random value.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Invert the entire display or set it back to normal.","Check if a button has just been pressed.","Check if a button has just been released.","gives you a new instance of the Arduboy2","Indicate that it’s time to render the next frame.","","Test if the specified buttons are not pressed.","","Poll the buttons and track their state over time.","Test if the all of the specified buttons are pressed.","The Arduino Print class is available for writing text to …","Set the location of the text cursor.","Set the X coordinate of the text cursor location.","Set the Y coordinate of the text cursor location.","Set the frame rate used by the frame control functions.","Set the light output of the RGB LED.","Set the brightness of one of the RGB LEDs without …","Set the text background color.","Set the text foreground color.","Set the text character size.","Set or disable text wrap mode.","","","","","","","","","","","","","Rect width","Position X","Position X","Position Y","Position Y","This is the struct to interact in a save way with the …","","","Returns the argument unchanged.","Calls U::from(self).","Get a new instance of ArduboyTones","Stop playing the tone or sequence.","Check if a tone or tone sequence is playing.","Play a single tone.","Play two tones in sequence.","Play three tones in sequence.","Play a tone sequence from frequency/duration pairs in a …","Play a tone sequence from frequency/duration pairs in an …","A list of all tones available and used by the Sounds …","","","","Set the volume to always normal, always high, or tone …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Functions given by the ArduboyFX library.","Consts given by the ArduboyFX library.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","This is the struct to interact in a save way with the …","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","","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 B button","This struct gives the library a understanding what Buttons …","Just a const for the DOWN button","Just a const for the DOWN button","Just a const for the LEFT button","Just a const for the LEFT button","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","","Just a const for the blue led","Just a const for the green led","Just a const for the red led","Just a const for led off","Just a const for led on","","","","","Get the number of bytes (characters) available for reading …","Sets the data rate in bits per second (baud) for serial …","","","Disables serial communication, allowing the RX and TX pins …","The Arduino Serial Print class is available for writing …","","","The Arduino Serial Print class is available for writing …","","","Reads incoming serial data. Use only inside of available():","Reads incoming serial data.","“Erase” a sprite.","Draw a sprite using a separate image and mask array.","Draw a sprite by replacing the existing content completely.","Draw a sprite using an array containing both image and …","Draw a sprite using only the bits set to 1.","","","","","Get the number of bytes (characters) available for reading …","Sets the data rate in bits per second (baud) for serial …","","","Disables serial communication, allowing the RX and TX pins …","The Arduino Serial Print class is available for writing …","","","The Arduino Serial Print class is available for writing …","","","Reads incoming serial data. Use only inside of available():","Reads incoming serial data.","“Erase” a sprite.","Draw a sprite using a separate image and mask array.","Draw a sprite by replacing the existing content completely.","Draw a sprite using an array containing both image and …","Draw a sprite using only the bits set to 1."],"i":[0,0,0,82,0,0,0,0,0,0,82,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0,0,0,0,0,82,83,83,83,84,83,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,10,10,10,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,37,0,0,12,12,12,14,15,15,12,17,15,15,12,12,17,12,14,15,14,14,0,14,17,37,46,50,22,23,24,15,12,27,30,14,17,37,46,50,22,23,24,15,12,27,30,14,17,22,23,24,15,12,27,14,17,22,23,24,15,12,27,17,14,22,23,24,15,12,27,30,15,12,23,22,24,14,17,22,23,24,15,12,27,15,15,15,17,15,12,15,12,23,15,14,17,24,12,12,22,22,23,24,15,15,15,12,12,12,12,12,12,17,17,22,22,23,23,12,12,12,17,12,22,23,22,14,17,22,23,24,15,15,12,27,14,17,37,46,50,22,23,24,15,15,15,15,15,15,15,15,15,15,12,27,30,22,23,24,15,15,15,12,12,15,14,14,46,22,24,46,22,24,15,15,12,12,22,24,22,24,46,50,22,23,24,12,23,14,17,37,46,50,22,23,24,15,12,27,30,12,15,14,14,14,22,22,22,23,24,12,12,12,27,30,50,46,27,23,14,22,23,24,12,27,14,12,23,23,14,22,23,24,27,14,22,24,27,46,50,22,24,22,23,22,14,17,22,23,24,27,15,15,15,14,17,22,23,24,15,12,27,17,30,17,15,12,27,27,15,12,27,14,14,14,14,12,27,15,15,15,15,12,27,14,14,14,14,15,12,27,17,46,22,23,24,12,46,12,12,12,12,12,0,12,22,12,12,23,15,12,14,17,37,46,50,22,23,24,15,12,12,27,30,14,17,37,46,50,22,23,24,15,12,27,30,14,17,37,46,50,22,23,24,15,12,27,30,23,22,24,22,24,17,15,15,12,0,0,0,0,0,91,92,64,91,92,64,64,64,64,91,92,64,91,92,64,64,91,92,64,91,92,64,91,92,64,0,0,0,0,0,0,0,0,0,0,0,93,94,95,74,75,73,68,69,70,93,94,95,74,75,73,68,69,70,68,69,70,68,69,70,73,73,74,73,68,69,70,74,73,74,68,69,70,93,94,95,74,75,73,68,69,70,93,94,95,74,75,73,68,69,70,75,74,74,74,74,74,74,75,68,69,70,74,74,73,74,74,74,93,94,95,74,75,73,68,69,70,93,94,95,74,75,73,68,69,70,93,94,95,74,75,73,68,69,70,0,0,0,0,0,0,0,0,0,76,82,0,0,0,0,76,0,0,0,0,0,0,76,0,0,0,76,85,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0,0,0,10,78,79,80,10,76,78,79,80,10,76,0,0,0,0,0,0,0,0,0,0,0,0,10,76,10,76,0,85,0,10,76,0,10,10,76,78,79,80,10,76,78,0,78,0,0,0,10,76,83,78,79,78,79,80,10,76,0,78,79,80,10,76,85,85,85,0,78,0,0,79,80,0,0,0,78,79,80,10,76,78,79,80,10,76,78,79,80,10,76,79,80,83,79,80,83,84,83,84,0,82,0,0,0,0,0,0,82,81,81,81,81,81,81,81,81,82,83,84,81,82,83,84,81,82,83,84,82,81,81,81,81,81,81,81,81,81,81,81,81,81,82,81,81,81,81,81,81,81,82,83,84,81,82,83,84,81,82,83,81,81,81,82,83,84,81,81,81,81,81,82,81,82,81,81,81,81,81,81,81,81,81,81,81,81,81,81,82,83,84,81,82,83,84,81,82,83,84,83,83,84,83,84,0,86,86,86,86,86,86,86,86,86,86,86,86,0,86,86,86,86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,87,87,87,87,87,87,87,87,87,87,87,87,0,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,90,89,0,0,0,0,90,89,0,0,89,89,0,90,90,0,0,0,0,0,0,0,90,89,0,0,0,0,90,89,0,0,89,89,0,90,90,0,0,0,0,0,0,0],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[1],[[]],0,0,[[]],[2],[[2,2]],[[]],[[]],[[3,3,4,5,5]],[5],[4,4],[[6,1]],[7],[[4,5,5,5,5,8]],[[3,3]],[[9,9]],[3],[3],[[4,5]],[[4,5]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[4],[[9,9],9],[9,9],0,[1,8],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[10,11],[10,11],[10,11],[10,11],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[12,13],[12,12],[12],[14],[15,16],[15,[[12,[5]]]],[12],[17,13],[15,[[13,[5]]]],[15,16],[12,12],[12,13],[17,13],[12,13],[14],[15,16],[14,18],[14,18],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[14,8],[17,8],[[[22,[[0,[19,20]],21]]],8],[[[23,[[0,[19,20]],21]]],8],[[[24,[19]]],8],[15,8],[12,8],[[[27,[25,26]]],8],[14],[17],[[[22,[[0,[19,20]],21]]]],[[[23,[[0,[19,20]],21]]]],[[[24,[19]]]],[15],[12],[[[27,[25,26]]]],[[[17,[[0,[28,29]]]],[0,[28,29]]]],[[[14,[29]]],[[14,[29]]]],[[[22,[[0,[19,20,29]],29,29]]],[[22,[[0,[19,20,29]],29,29]]]],[[[23,[[0,[19,20,29]],29]]],[[23,[[0,[19,20,29]],29]]]],[[[24,[[0,[19,29]],29]]],[[24,[[0,[19,29]],29]]]],[15,15],[[[12,[29]]],[[12,[29]]]],[[[27,[[0,[25,29]],26]]],[[27,[[0,[25,29]],26]]]],[[[30,[29]]],[[30,[29]]]],[[15,15],31],[[[12,[25]],[12,[25]]],31],[[[23,[[33,[[0,[19,20,32]]]],[0,[19,20]],21]],[0,[19,20,32]]],11],[[[22,[[33,[[0,[19,20,32]]]],[0,[19,20]],21]],[0,[19,20,32]]],11],[[[24,[19]],19],11],[[],14],[[],17],[[],[[22,[[0,[19,20]],[0,[21,34]]]]]],[[],[[23,[[0,[19,20]],[0,[21,34]]]]]],[[],[[24,[19]]]],[[],15],[[],12],[[],[[27,[25,26]]]],[[]],[[]],[[]],[17,13],[15,16],[12,13],[15,16],[12,13],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],[[35,[[0,[19,20]],21]]]],[15],[14],[17],[24],[12],[[[12,[[36,[[36,[[36,[36]]]]]]]],[13,[[36,[[36,[[36,[36]]]]]]]]],11],[[[22,[[0,[19,20]],21]],[0,[19,20]]],[[37,[[0,[19,20]]]]]],[[[22,[[0,[19,20]],19,21]],[22,[[0,[19,20]],19,21]]],11],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],11],[[[24,[19,[36,[[36,[[36,[36]]]]]]]],[24,[19,[36,[[36,[[36,[36]]]]]]]]],11],[[15,16],11],[[15,15],11],[[15,16],11],[[[12,[36]],12],11],[[[12,[36]],13],11],[[[12,[36]],38],11],[[[12,[36]],13],11],[[[12,[36]],13],11],[[[12,[36]],38],11],[[17,39]],[[[17,[29]],39]],[[[22,[[0,[19,20,28]],28,21]],39]],[[[22,[[0,[19,20]],21]],39]],[[[23,[[0,[19,20,28]],21]],39]],[[[23,[[0,[19,20]],21]],39]],[[[12,[28]],39]],[[12,39]],[[12,39]],[[[17,[29]],[13,[29]]]],[[[12,[29]],[13,[29]]],40],[[[22,[[0,[19,20]],21]]],18],[[[23,[[0,[19,20]],21]]],[[18,[[0,[19,20]]]]]],[[[22,[[0,[19,20]],21]]],18],[[[14,[41]],42],[[40,[43]]]],[[[17,[41]],42],[[40,[43]]]],[[[22,[[0,[19,20,41]],41,21]],42],[[40,[43]]]],[[[23,[[0,[19,20,41]],21]],42],[[40,[43]]]],[[[24,[[0,[19,41]],41]],42],[[40,[43]]]],[[15,42],[[40,[43]]]],[[15,42],[[40,[43]]]],[[[12,[41]],42],[[40,[43]]]],[[[27,[[0,[25,41]],26]],42],[[40,[43]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[3,15],[44,15],[9,15],[4,15],[[]],[16,15],[2,15],[1,15],[5,15],[45,15],[[]],[[]],[[]],[39,[[22,[[0,[19,20]],[0,[21,34]]]]]],[39,[[23,[[0,[19,20]],[0,[21,34]]]]]],[39,[[24,[19]]]],[39,15],[39,15],[39,15],[39,12],[[[13,[29]]],[[40,[[12,[29]]]]]],[16,[[40,[15]]]],[14,18],[14,18],[[[46,[[0,[19,20]]]]]],[[[22,[[33,[[0,[20,19,32]]]],[0,[19,20]],21]],[0,[20,19,32]]],18],[[[24,[[33,[[0,[19,32]]]],19]],[0,[19,32]]],18],[[[46,[[0,[19,20]]]]]],[[[22,[[33,[[0,[20,19,32]]]],[0,[19,20]],21]],[0,[20,19,32]]],18],[[[24,[[33,[[0,[19,32]]]],19]],[0,[19,32]]],18],[[15,47]],[[15,48]],[[[12,[49]],47]],[[[12,[20]],48]],[[[22,[[0,[19,20,[33,[[0,[19,20,32]]]]]],21]],[0,[19,20,32]]]],[[[24,[[0,[[33,[[0,[19,32]]]],19]]]],[0,[19,32]]]],[[[22,[[0,[19,20,[33,[[0,[19,20,32]]]]]],21]],[0,[19,20,32]]]],[[[24,[[0,[[33,[[0,[19,32]]]],19]]]],[0,[19,32]]]],[[[46,[[0,[19,20]]]]]],[[[50,[[0,[19,20]]]]],40],[[[22,[[0,[19,20]],21]],[0,[19,20]]],[[40,[18]]]],[[[23,[[0,[19,20]],21]],[0,[19,20]]],[[40,[11,[0,[19,20]]]]]],[[[24,[19]],19],[[40,[18]]]],[[12,8],40],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],[[51,[[0,[19,20]],21]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[12,[[40,[38,12]]]],[15,[[12,[5]]]],[14],[14],[14],[[[22,[[0,[19,20]],21]]]],[[[22,[[0,[19,20]],21]]]],[[[22,[[0,[19,20]],21]]]],[[[23,[[0,[19,20]],21]]]],[[[24,[19]]]],[12],[12],[12],[[[27,[25,26]]]],[[]],[[[50,[[0,[19,20]]]]],[[0,[19,20]]]],[[[46,[[0,[19,20]]]]]],[[[27,[25,26]]],[[12,[25]]]],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],11],[14,11],[[[22,[[0,[19,20]],21]]],11],[[[23,[[0,[19,20]],21]]],11],[[[24,[19]]],11],[12,11],[[[27,[25,26]]],11],[14,11],[12,11],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],11],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],11],[14,52],[[[22,[[0,[19,20]],21]]],[[53,[[0,[19,20]]]]]],[[[23,[[0,[19,20]],21]]],[[54,[[0,[19,20]]]]]],[[[24,[19]]],[[55,[19]]]],[[[27,[25,26]]],[[56,[25]]]],[14,57],[[[22,[[0,[19,20]],21]]],[[58,[[0,[19,20]]]]]],[[[24,[19]]],[[59,[19]]]],[[[27,[25,26]]],[[60,[25]]]],[[[46,[[0,[19,20]]]]],[[0,[19,20]]]],[[[50,[[0,[19,20]]]]],[[0,[19,20]]]],[[[22,[[0,[19,20]],21]]],61],[[[24,[19]]],61],[[[22,[[0,[19,20]],21]]],18],[[[23,[[0,[19,20]],21]]],[[18,[[0,[19,20]]]]]],[[[22,[[0,[19,20]],21]]],18],[14,8],[17,8],[[[22,[[0,[19,20]],21]]],8],[[[23,[[0,[19,20]],21]]],8],[[[24,[19]]],8],[[[27,[25,26]]],8],[[15,16],11],[[15,15],11],[[15,16],11],[[],14],[[],17],[[],[[22,[62]]]],[[],[[23,[62]]]],[[],24],[[],15],[[],12],[[],27],[[[0,[28,29]]],[[17,[[0,[28,29]]]]]],[30,18],[17,30],[[15,15],[[18,[31]]]],[[[12,[[63,[[63,[[63,[63]]]]]]]],[12,[[63,[[63,[[63,[63]]]]]]]]],[[18,[31]]]],[[[27,[25,26]]],[[18,[25]]]],[[[27,[25,26]]],[[18,[[64,[25,26]]]]]],[15,[[18,[65]]]],[12,18],[[[27,[25,26]]],[[18,[25]]]],[14,18],[14],[14,18],[14],[12],[[[27,[25,26]]],25],[15],[15],[15],[[15,65],40],[12,40],[[[27,[25,26]],25],[[40,[25]]]],[14,40],[14],[14,40],[14],[[15,16],40],[12],[[[27,[25,26]],25]],[17,18],[[[46,[[0,[19,20]]]]]],[[[22,[[33,[[0,[20,19,32]]]],[0,[19,20]],21]],[0,[20,19,32]]],18],[[[23,[[33,[[0,[19,20,32]]]],[0,[19,20]],21]],[0,[19,20,32]]],11],[[[24,[[33,[[0,[19,32]]]],19]],[0,[19,32]]],18],[[12,8]],[[[46,[[0,[19,20]]]]]],[[[12,[29]],8,29],40],[[[12,[[0,[29,34]]]],8],40],[[12,66]],[[12,66]],[[12,8]],0,[[[12,[[36,[[36,[[36,[36]]]]]]]],[13,[[36,[[36,[[36,[36]]]]]]]]],11],[[[22,[[33,[[0,[20,19,32]]]],[0,[19,20]],21]],[0,[20,19,32]]],18],[[12,8]],[[12,8]],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],61],[[15,8]],[[12,8]],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[[13,[29]]],[[40,[[12,[29]]]]]],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],61],[[[22,[[0,[19,20]],21]]],61],[[[24,[19]]],61],[[[22,[[0,[19,20]],21]]],61],[[[24,[19]]],61],[17],[[15,65],[[40,[43]]]],[[15,16],[[40,[43]]]],[[[12,[5]],16],[[40,[43]]]],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[[64,[25,26]]],25],[[[64,[25,26]]],25],[[[64,[25,26]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[[64,[25,26]]],25],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],67],[[],67],[[],67],0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[68,68],[69,69],[70,70],[[68,68],31],[[69,69],31],[[70,70],31],[[[73,[25,71,72]]]],[[[73,[25,71,72]]]],[[[74,[71]]]],[[[73,[25,71,72]]]],[[68,68],11],[[69,69],11],[[70,70],11],[[[74,[25,71,72]],66],[[18,[[73,[25,71,72]]]]]],[[[73,[25,71,72]]]],[[[74,[[0,[25,41]],71,72]],42],[[40,[43]]]],[[68,42],[[40,[43]]]],[[69,42],[[40,[43]]]],[[70,42],[[40,[43]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[[74,[25,71,72]]],11],[[[74,[25,71,72]]],11],[[[74,[25,71,72]]],[[75,[25,71,72]]]],[[],[[74,[69]]]],[[],[[74,[68]]]],[[],[[74,[70]]]],[[[75,[25,71,72]]],18],[[68,68],[[18,[31]]]],[[69,69],[[18,[31]]]],[[70,70],[[18,[31]]]],[[[74,[25,71,72]]],[[18,[25]]]],[[[74,[25,71,72]]],[[40,[25]]]],[[[73,[25,71,72]]],25],[[[74,[25,71,72]]],25],[[[74,[25,71,72]],25],[[40,[25]]]],[[[74,[25,71,72]],25]],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[10,10],10],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,[10,10],[76,76],[[10,10],31],[[76,76],31],[[25,25,25],25],[[]],[4],[[10,10],11],[[76,76],11],0,0,[[10,42],77],[[76,42],77],[[]],[[]],[[]],[[]],[[]],[78],0,[78],0,0,0,[[10,47]],[[76,47]],0,[78],[79],[[]],[[]],[[]],[[]],[[]],0,[3,78],[3,79],[3,80],[[10,10],[[18,[31]]]],[[76,76],[[18,[31]]]],[[]],[[]],[[]],0,[78],[[9,9],9],[9,9],[79,5],[80,5],0,0,[1,8],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],67],[[],67],[[],67],[[],67],[[],67],[[79,5]],[[80,5]],0,[[79,5]],[[80,5]],0,0,0,0,0,0,0,0,0,0,0,0,0,[81,11],[81],[81],[81],[81],[81],[81],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[81],[82,82],[83,83],[84,84],[[82,82],31],[[81,84,83],11],[[81,83,83],11],[[81,5,5,5]],[[81,5,5]],[81],[81],[[81,3,3,5,82]],[[81,3,3,5,82]],[[81,3,3,5,82]],[[81,3,3,82]],[[81,3,3,5,5,82]],[[81,3,3,5,5,5,82]],[[81,3,3,3,3,3,3,82]],[[82,82],11],[[81,5],11],[[81,3,3,5,82]],[[81,3,3,5,5,82]],[[81,3,3,5,5,5,82]],[[81,3,3,3,3,3,3,82]],[[81,11]],[[81,11]],[[82,42],77],[[83,42],77],[[84,42],77],[[]],[[]],[[]],[[]],[[81,5,5],82],[[82,47]],0,[81],[81],[[]],[[]],[[]],[[]],[[81,11]],[[81,10],11],[[81,10],11],[[],81],[81,11],[82],[[81,10],11],[[82,82],[[18,[31]]]],[81],[[81,10],11],[[81,85]],[[81,3,3]],[[81,3]],[[81,3]],[[81,5]],[[81,5,5,5]],[[81,5,5]],[[81,82]],[[81,82]],[[81,5]],[[81,11]],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],67],[[],67],[[],67],[[],67],0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[],86],[86],[86,11],[[86,2,4]],[[86,2,4,2,4]],[[86,2,4,2,4,2,4]],[[86,2]],[[86,4]],0,[[],40],[[],40],[[],67],[[86,5]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[1],[[]],0,0,[[]],[2],[[2,2]],[[]],[[]],[[3,3,4,5,5]],[5],[4,4],[[6,1]],[7],[[4,5,5,5,5,8]],[[3,3]],[[9,9]],[3],[3],[[4,5]],[[4,5]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[87,11],[[],87],[[87,5]],[[87,5,4,4,88]],[87],[[],40],[[],40],[[],67],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[],3],[4],[[]],[[]],[[]],[89],[[]],[[]],[90],[[]],[[]],[[],3],[[],16],[[3,3,5,5]],[[3,3,5,5,5,5]],[[3,3,5,5]],[[3,3,5,5]],[[3,3,5,5]],0,0,0,0,[[],3],[4],[[]],[[]],[[]],[89],[[]],[[]],[90],[[]],[[]],[[],3],[[],16],[[3,3,5,5]],[[3,3,5,5,5,5]],[[3,3,5,5]],[[3,3,5,5]],[[3,3,5,5]]],"c":[],"p":[[15,"i8"],[15,"u16"],[15,"i16"],[15,"u32"],[15,"u8"],[8,"DrawableNumber"],[8,"DrawableString"],[15,"usize"],[15,"i32"],[3,"ButtonSet"],[15,"bool"],[3,"Vec"],[15,"slice"],[3,"Deque"],[3,"String"],[15,"str"],[3,"HistoryBuffer"],[4,"Option"],[8,"Eq"],[8,"Hash"],[8,"BuildHasher"],[3,"IndexMap"],[3,"IndexSet"],[3,"LinearMap"],[8,"Ord"],[8,"Kind"],[3,"BinaryHeap"],[8,"Copy"],[8,"Clone"],[3,"OldestOrdered"],[4,"Ordering"],[8,"Sized"],[8,"Borrow"],[8,"Default"],[3,"Difference"],[8,"PartialEq"],[4,"Entry"],[15,"array"],[8,"IntoIterator"],[4,"Result"],[8,"Debug"],[3,"Formatter"],[3,"Error"],[15,"i64"],[15,"u64"],[3,"OccupiedEntry"],[8,"Hasher"],[8,"Hasher"],[8,"Hash"],[3,"VacantEntry"],[3,"Intersection"],[3,"Iter"],[3,"Iter"],[3,"Iter"],[3,"Iter"],[3,"Iter"],[3,"IterMut"],[3,"IterMut"],[3,"IterMut"],[3,"IterMut"],[8,"Iterator"],[3,"BuildHasherDefault"],[8,"PartialOrd"],[3,"PeekMut"],[15,"char"],[8,"FnMut"],[3,"TypeId"],[3,"LinkedIndexU8"],[3,"LinkedIndexU16"],[3,"LinkedIndexUsize"],[8,"SortedLinkedListIndex"],[8,"Kind"],[3,"FindMut"],[3,"SortedLinkedList"],[3,"Iter"],[4,"Base"],[6,"Result"],[3,"EEPROM"],[3,"EEPROMBYTE"],[3,"EEPROMBYTECHECKLESS"],[3,"Arduboy2"],[4,"Color"],[3,"Rect"],[3,"Point"],[8,"Printable"],[3,"ArduboyTones"],[3,"ArdVoice"],[15,"f32"],[8,"Serialprintable"],[8,"Serialprintlnable"],[4,"Min"],[4,"Max"],[3,"Min"],[3,"Max"],[3,"Node"]]},\ +"arduboy_rust":{"doc":"This is the arduboy_rust crate To get started import the …","t":"DDDNEDDRRRNAAAAAAOOOOOAAOAADNERRDDRNMMMMMMDARRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRIIKKAAFFFFFFFFFFFFFFFFFFFFRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRFFFDFAARRRRRDRRRRRRRRMLLLLRRRRRDDEGGDDDDNDDDNDDLLLLLLLLLLLLLLLLLLALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLALLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLDIEEDLLLLLLLLLLLLLLLLLLLLLLLLLDDIDDDDDDDILLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLRRRDDDRRRENNDERRNDDDRRRNRRDNQDIRRRRRDDRRDRNAAAALLLLLLLLLLLAGGGGGGGGGGGLLLLFKFLLOMLLLLLLLALOLOOOLLMLLLLLLLALLLLLLLKOLFFLLAAFLLLLLLLLLLLLLLLLLMLLMMMMDNERRDDRNLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLMMMMMDLLLLLLLLLLLLALLLLRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRIIKKAAFFFFFFFFFFFFFFFFFFFFRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRRDLLLLLLLLLLLLRRRRRDRRRRRRRRMFFFFFFFFFFFFFFFFFFFFRRRRRQQIIFFKKFFLKFLKFFFFFFFQQIIFFKKFFLKFLKFFFFFFF","n":["ArdVoice","Arduboy2","ArduboyTones","Black","Color","EEPROM","EEPROMBYTE","FONT_SIZE","HEIGHT","WIDTH","White","arduboy2","arduboy_tones","arduboyfx","arduino","ardvoice","c","f","get_ardvoice_tone_addr","get_sprite_addr","get_string_addr","get_tones_addr","hardware","prelude","progmem","serial_print","sprites","Arduboy2","Black","Color","FONT_SIZE","HEIGHT","Point","Rect","WIDTH","White","height","width","x","x","y","y","ArduboyTones","tones_pitch","NOTE_A0","NOTE_A0H","NOTE_A1","NOTE_A1H","NOTE_A2","NOTE_A2H","NOTE_A3","NOTE_A3H","NOTE_A4","NOTE_A4H","NOTE_A5","NOTE_A5H","NOTE_A6","NOTE_A6H","NOTE_A7","NOTE_A7H","NOTE_A8","NOTE_A8H","NOTE_A9","NOTE_A9H","NOTE_AS0","NOTE_AS0H","NOTE_AS1","NOTE_AS1H","NOTE_AS2","NOTE_AS2H","NOTE_AS3","NOTE_AS3H","NOTE_AS4","NOTE_AS4H","NOTE_AS5","NOTE_AS5H","NOTE_AS6","NOTE_AS6H","NOTE_AS7","NOTE_AS7H","NOTE_AS8","NOTE_AS8H","NOTE_AS9","NOTE_AS9H","NOTE_B0","NOTE_B0H","NOTE_B1","NOTE_B1H","NOTE_B2","NOTE_B2H","NOTE_B3","NOTE_B3H","NOTE_B4","NOTE_B4H","NOTE_B5","NOTE_B5H","NOTE_B6","NOTE_B6H","NOTE_B7","NOTE_B7H","NOTE_B8","NOTE_B8H","NOTE_B9","NOTE_B9H","NOTE_C0","NOTE_C0H","NOTE_C1","NOTE_C1H","NOTE_C2","NOTE_C2H","NOTE_C3","NOTE_C3H","NOTE_C4","NOTE_C4H","NOTE_C5","NOTE_C5H","NOTE_C6","NOTE_C6H","NOTE_C7","NOTE_C7H","NOTE_C8","NOTE_C8H","NOTE_C9","NOTE_C9H","NOTE_CS0","NOTE_CS0H","NOTE_CS1","NOTE_CS1H","NOTE_CS2","NOTE_CS2H","NOTE_CS3","NOTE_CS3H","NOTE_CS4","NOTE_CS4H","NOTE_CS5","NOTE_CS5H","NOTE_CS6","NOTE_CS6H","NOTE_CS7","NOTE_CS7H","NOTE_CS8","NOTE_CS8H","NOTE_CS9","NOTE_CS9H","NOTE_D0","NOTE_D0H","NOTE_D1","NOTE_D1H","NOTE_D2","NOTE_D2H","NOTE_D3","NOTE_D3H","NOTE_D4","NOTE_D4H","NOTE_D5","NOTE_D5H","NOTE_D6","NOTE_D6H","NOTE_D7","NOTE_D7H","NOTE_D8","NOTE_D8H","NOTE_D9","NOTE_D9H","NOTE_DS0","NOTE_DS0H","NOTE_DS1","NOTE_DS1H","NOTE_DS2","NOTE_DS2H","NOTE_DS3","NOTE_DS3H","NOTE_DS4","NOTE_DS4H","NOTE_DS5","NOTE_DS5H","NOTE_DS6","NOTE_DS6H","NOTE_DS7","NOTE_DS7H","NOTE_DS8","NOTE_DS8H","NOTE_DS9","NOTE_DS9H","NOTE_E0","NOTE_E0H","NOTE_E1","NOTE_E1H","NOTE_E2","NOTE_E2H","NOTE_E3","NOTE_E3H","NOTE_E4","NOTE_E4H","NOTE_E5","NOTE_E5H","NOTE_E6","NOTE_E6H","NOTE_E7","NOTE_E7H","NOTE_E8","NOTE_E8H","NOTE_E9","NOTE_E9H","NOTE_F0","NOTE_F0H","NOTE_F1","NOTE_F1H","NOTE_F2","NOTE_F2H","NOTE_F3","NOTE_F3H","NOTE_F4","NOTE_F4H","NOTE_F5","NOTE_F5H","NOTE_F6","NOTE_F6H","NOTE_F7","NOTE_F7H","NOTE_F8","NOTE_F8H","NOTE_F9","NOTE_F9H","NOTE_FS0","NOTE_FS0H","NOTE_FS1","NOTE_FS1H","NOTE_FS2","NOTE_FS2H","NOTE_FS3","NOTE_FS3H","NOTE_FS4","NOTE_FS4H","NOTE_FS5","NOTE_FS5H","NOTE_FS6","NOTE_FS6H","NOTE_FS7","NOTE_FS7H","NOTE_FS8","NOTE_FS8H","NOTE_FS9","NOTE_FS9H","NOTE_G0","NOTE_G0H","NOTE_G1","NOTE_G1H","NOTE_G2","NOTE_G2H","NOTE_G3","NOTE_G3H","NOTE_G4","NOTE_G4H","NOTE_G5","NOTE_G5H","NOTE_G6","NOTE_G6H","NOTE_G7","NOTE_G7H","NOTE_G8","NOTE_G8H","NOTE_G9","NOTE_G9H","NOTE_GS0","NOTE_GS0H","NOTE_GS1","NOTE_GS1H","NOTE_GS2","NOTE_GS2H","NOTE_GS3","NOTE_GS3H","NOTE_GS4","NOTE_GS4H","NOTE_GS5","NOTE_GS5H","NOTE_GS6","NOTE_GS6H","NOTE_GS7","NOTE_GS7H","NOTE_GS8","NOTE_GS8H","NOTE_GS9","NOTE_GS9H","NOTE_REST","TONES_END","TONES_REPEAT","TONE_HIGH_VOLUME","VOLUME_ALWAYS_HIGH","VOLUME_ALWAYS_NORMAL","VOLUME_IN_TONE","DrawableNumber","DrawableString","draw","draw","fx","fx_consts","begin","begin_data","begin_data_save","display","display_clear","draw_bitmap","draw_char","draw_frame","draw_number","draw_string","load_game_state","read_data_array","save_game_state","set_cursor","set_cursor_range","set_cursor_x","set_cursor_y","set_font","set_font_mode","set_frame","FX_DATA_VECTOR_KEY_POINTER","FX_DATA_VECTOR_PAGE_POINTER","FX_SAVE_VECTOR_KEY_POINTER","FX_SAVE_VECTOR_PAGE_POINTER","FX_VECTOR_KEY_VALUE","SFC_ERASE","SFC_JEDEC_ID","SFC_POWERDOWN","SFC_READ","SFC_READSTATUS1","SFC_READSTATUS2","SFC_READSTATUS3","SFC_RELEASE_POWERDOWN","SFC_WRITE","SFC_WRITE_ENABLE","dbfBlack","dbfEndFrame","dbfExtraRow","dbfFlip","dbfInvert","dbfLastFrame","dbfMasked","dbfReverseBlack","dbfWhiteBlack","dbmBlack","dbmEndFrame","dbmFlip","dbmInvert","dbmLastFrame","dbmMasked","dbmNormal","dbmOverwrite","dbmReverse","dbmWhite","dcfBlack","dcfInvert","dcfMasked","dcfProportional","dcfReverseBlack","dcfWhiteBlack","dcmBlack","dcmInvert","dcmMasked","dcmNormal","dcmOverwrite","dcmProportional","dcmReverse","dcmWhite","delay","random_between","random_less_than","ArdVoice","strlen","buttons","led","A","ANY_BUTTON","A_BUTTON","B","B_BUTTON","ButtonSet","DOWN","DOWN_BUTTON","LEFT","LEFT_BUTTON","RIGHT","RIGHT_BUTTON","UP","UP_BUTTON","flag_set","just_pressed","just_released","not_pressed","pressed","BLUE_LED","GREEN_LED","RED_LED","RGB_OFF","RGB_ON","BinaryHeap","Deque","Entry","FnvIndexMap","FnvIndexSet","HistoryBuffer","IndexMap","IndexSet","LinearMap","Occupied","OccupiedEntry","OldestOrdered","String","Vacant","VacantEntry","Vec","as_mut","as_mut","as_mut_ptr","as_mut_slices","as_mut_str","as_mut_vec","as_ptr","as_ref","as_ref","as_ref","as_ref","as_ref","as_slice","as_slice","as_slices","as_str","back","back_mut","binary_heap","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","capacity","capacity","capacity","capacity","capacity","capacity","capacity","capacity","clear","clear","clear","clear","clear","clear","clear","clear","clear_with","clone","clone","clone","clone","clone","clone","clone","clone","cmp","cmp","contains","contains_key","contains_key","default","default","default","default","default","default","default","default","default_parameters","default_parameters","default_parameters","deref","deref","deref","deref_mut","deref_mut","difference","draw","drop","drop","drop","drop","ends_with","entry","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","eq","extend","extend","extend","extend","extend","extend","extend","extend","extend","extend_from_slice","extend_from_slice","first","first","first_mut","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from","from_iter","from_iter","from_iter","from_iter","from_iter","from_iter","from_iter","from_slice","from_str","front","front_mut","get","get","get","get_mut","get_mut","get_mut","hash","hash","hash","hash","index","index","index_mut","index_mut","insert","insert","insert","insert","insert","insert","intersection","into","into","into","into","into","into","into","into","into","into","into","into","into_array","into_bytes","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_iter","into_key","into_mut","into_vec","is_disjoint","is_empty","is_empty","is_empty","is_empty","is_empty","is_empty","is_full","is_full","is_subset","is_superset","iter","iter","iter","iter","iter","iter_mut","iter_mut","iter_mut","iter_mut","key","key","keys","keys","last","last","last_mut","len","len","len","len","len","len","ne","ne","ne","new","new","new","new","new","new","new","new","new_with","next","oldest_ordered","partial_cmp","partial_cmp","peek","peek_mut","pop","pop","pop","pop_back","pop_back_unchecked","pop_front","pop_front_unchecked","pop_unchecked","pop_unchecked","print_2","print_2","println_2","push","push","push","push_back","push_back_unchecked","push_front","push_front_unchecked","push_str","push_unchecked","push_unchecked","recent","remove","remove","remove","remove","remove","remove_entry","resize","resize_default","retain","retain_mut","set_len","sorted_linked_list","starts_with","swap_remove","swap_remove","swap_remove_unchecked","symmetric_difference","truncate","truncate","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","union","values","values","values_mut","values_mut","write","write_char","write_str","write_str","BinaryHeap","Kind","Max","Min","PeekMut","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","deref","deref_mut","drop","from","from","from","into","into","into","pop","try_from","try_from","try_from","try_into","try_into","try_into","type_id","type_id","type_id","FindMut","Iter","Kind","LinkedIndexU16","LinkedIndexU8","LinkedIndexUsize","Max","Min","Node","SortedLinkedList","SortedLinkedListIndex","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","clone","clone","cmp","cmp","cmp","deref","deref_mut","drop","drop","eq","eq","eq","find_mut","finish","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from","from","into","into","into","into","into","into","into","into","into","into_iter","is_empty","is_full","iter","new_u16","new_u8","new_usize","next","partial_cmp","partial_cmp","partial_cmp","peek","pop","pop","pop_unchecked","push","push_unchecked","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","type_id","A","ANY_BUTTON","A_BUTTON","ArdVoice","Arduboy2","ArduboyTones","B","BLUE_LED","B_BUTTON","Base","Bin","Black","ButtonSet","Color","DOWN","DOWN_BUTTON","Dec","EEPROM","EEPROMBYTE","EEPROMBYTECHECKLESS","FONT_SIZE","GREEN_LED","HEIGHT","Hex","LEFT","LEFT_BUTTON","LinearMap","Oct","Parameters","Point","Printable","RED_LED","RGB_OFF","RGB_ON","RIGHT","RIGHT_BUTTON","Rect","String","UP","UP_BUTTON","Vec","WIDTH","White","arduboy2","arduboy_tones","arduboyfx","ardvoice","bitor","borrow","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","borrow_mut","buttons","c_char","c_double","c_float","c_int","c_long","c_longlong","c_size_t","c_uchar","c_uint","c_ulong","c_ulonglong","clone","clone","cmp","cmp","constrain","default_parameters","delay","eq","eq","f","flag_set","fmt","fmt","from","from","from","from","from","fx","get","get_ardvoice_tone_addr","get_direct","get_sprite_addr","get_string_addr","get_tones_addr","hash","hash","height","init","init","into","into","into","into","into","led","new","new","new","partial_cmp","partial_cmp","print","print","print_2","progmem","put","random_between","random_less_than","read","read","serial","sprites","strlen","try_from","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","type_id","update","update","width","write","write","x","x","y","y","Arduboy2","Black","Color","FONT_SIZE","HEIGHT","Point","Rect","WIDTH","White","audio_enabled","audio_off","audio_on","audio_on_and_save","audio_save_on_off","audio_toggle","begin","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","buttons_state","clear","clone","clone","clone","cmp","collide_point","collide_rect","digital_write_rgb","digital_write_rgb_single","display","display_and_clear_buffer","draw_circle","draw_fast_hline","draw_fast_vline","draw_pixel","draw_rect","draw_round_rect","draw_triangle","eq","every_x_frames","exit_to_bootloader","fill_circle","fill_rect","fill_round_rect","fill_triangle","flip_horizontal","flip_vertical","fmt","fmt","fmt","from","from","from","from","get_pixel","hash","height","idle","init_random_seed","into","into","into","into","invert","just_pressed","just_released","new","next_frame","not","not_pressed","partial_cmp","poll_buttons","pressed","print","set_cursor","set_cursor_x","set_cursor_y","set_frame_rate","set_rgb_led","set_rgb_led_single","set_text_background_color","set_text_color","set_text_size","set_text_wrap","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id","width","x","x","y","y","ArduboyTones","borrow","borrow_mut","from","into","new","no_tone","playing","tone","tone2","tone3","tones","tones_in_ram","tones_pitch","try_from","try_into","type_id","volume_mode","NOTE_A0","NOTE_A0H","NOTE_A1","NOTE_A1H","NOTE_A2","NOTE_A2H","NOTE_A3","NOTE_A3H","NOTE_A4","NOTE_A4H","NOTE_A5","NOTE_A5H","NOTE_A6","NOTE_A6H","NOTE_A7","NOTE_A7H","NOTE_A8","NOTE_A8H","NOTE_A9","NOTE_A9H","NOTE_AS0","NOTE_AS0H","NOTE_AS1","NOTE_AS1H","NOTE_AS2","NOTE_AS2H","NOTE_AS3","NOTE_AS3H","NOTE_AS4","NOTE_AS4H","NOTE_AS5","NOTE_AS5H","NOTE_AS6","NOTE_AS6H","NOTE_AS7","NOTE_AS7H","NOTE_AS8","NOTE_AS8H","NOTE_AS9","NOTE_AS9H","NOTE_B0","NOTE_B0H","NOTE_B1","NOTE_B1H","NOTE_B2","NOTE_B2H","NOTE_B3","NOTE_B3H","NOTE_B4","NOTE_B4H","NOTE_B5","NOTE_B5H","NOTE_B6","NOTE_B6H","NOTE_B7","NOTE_B7H","NOTE_B8","NOTE_B8H","NOTE_B9","NOTE_B9H","NOTE_C0","NOTE_C0H","NOTE_C1","NOTE_C1H","NOTE_C2","NOTE_C2H","NOTE_C3","NOTE_C3H","NOTE_C4","NOTE_C4H","NOTE_C5","NOTE_C5H","NOTE_C6","NOTE_C6H","NOTE_C7","NOTE_C7H","NOTE_C8","NOTE_C8H","NOTE_C9","NOTE_C9H","NOTE_CS0","NOTE_CS0H","NOTE_CS1","NOTE_CS1H","NOTE_CS2","NOTE_CS2H","NOTE_CS3","NOTE_CS3H","NOTE_CS4","NOTE_CS4H","NOTE_CS5","NOTE_CS5H","NOTE_CS6","NOTE_CS6H","NOTE_CS7","NOTE_CS7H","NOTE_CS8","NOTE_CS8H","NOTE_CS9","NOTE_CS9H","NOTE_D0","NOTE_D0H","NOTE_D1","NOTE_D1H","NOTE_D2","NOTE_D2H","NOTE_D3","NOTE_D3H","NOTE_D4","NOTE_D4H","NOTE_D5","NOTE_D5H","NOTE_D6","NOTE_D6H","NOTE_D7","NOTE_D7H","NOTE_D8","NOTE_D8H","NOTE_D9","NOTE_D9H","NOTE_DS0","NOTE_DS0H","NOTE_DS1","NOTE_DS1H","NOTE_DS2","NOTE_DS2H","NOTE_DS3","NOTE_DS3H","NOTE_DS4","NOTE_DS4H","NOTE_DS5","NOTE_DS5H","NOTE_DS6","NOTE_DS6H","NOTE_DS7","NOTE_DS7H","NOTE_DS8","NOTE_DS8H","NOTE_DS9","NOTE_DS9H","NOTE_E0","NOTE_E0H","NOTE_E1","NOTE_E1H","NOTE_E2","NOTE_E2H","NOTE_E3","NOTE_E3H","NOTE_E4","NOTE_E4H","NOTE_E5","NOTE_E5H","NOTE_E6","NOTE_E6H","NOTE_E7","NOTE_E7H","NOTE_E8","NOTE_E8H","NOTE_E9","NOTE_E9H","NOTE_F0","NOTE_F0H","NOTE_F1","NOTE_F1H","NOTE_F2","NOTE_F2H","NOTE_F3","NOTE_F3H","NOTE_F4","NOTE_F4H","NOTE_F5","NOTE_F5H","NOTE_F6","NOTE_F6H","NOTE_F7","NOTE_F7H","NOTE_F8","NOTE_F8H","NOTE_F9","NOTE_F9H","NOTE_FS0","NOTE_FS0H","NOTE_FS1","NOTE_FS1H","NOTE_FS2","NOTE_FS2H","NOTE_FS3","NOTE_FS3H","NOTE_FS4","NOTE_FS4H","NOTE_FS5","NOTE_FS5H","NOTE_FS6","NOTE_FS6H","NOTE_FS7","NOTE_FS7H","NOTE_FS8","NOTE_FS8H","NOTE_FS9","NOTE_FS9H","NOTE_G0","NOTE_G0H","NOTE_G1","NOTE_G1H","NOTE_G2","NOTE_G2H","NOTE_G3","NOTE_G3H","NOTE_G4","NOTE_G4H","NOTE_G5","NOTE_G5H","NOTE_G6","NOTE_G6H","NOTE_G7","NOTE_G7H","NOTE_G8","NOTE_G8H","NOTE_G9","NOTE_G9H","NOTE_GS0","NOTE_GS0H","NOTE_GS1","NOTE_GS1H","NOTE_GS2","NOTE_GS2H","NOTE_GS3","NOTE_GS3H","NOTE_GS4","NOTE_GS4H","NOTE_GS5","NOTE_GS5H","NOTE_GS6","NOTE_GS6H","NOTE_GS7","NOTE_GS7H","NOTE_GS8","NOTE_GS8H","NOTE_GS9","NOTE_GS9H","NOTE_REST","TONES_END","TONES_REPEAT","TONE_HIGH_VOLUME","VOLUME_ALWAYS_HIGH","VOLUME_ALWAYS_NORMAL","VOLUME_IN_TONE","DrawableNumber","DrawableString","draw","draw","fx","fx_consts","begin","begin_data","begin_data_save","display","display_clear","draw_bitmap","draw_char","draw_frame","draw_number","draw_string","load_game_state","read_data_array","save_game_state","set_cursor","set_cursor_range","set_cursor_x","set_cursor_y","set_font","set_font_mode","set_frame","FX_DATA_VECTOR_KEY_POINTER","FX_DATA_VECTOR_PAGE_POINTER","FX_SAVE_VECTOR_KEY_POINTER","FX_SAVE_VECTOR_PAGE_POINTER","FX_VECTOR_KEY_VALUE","SFC_ERASE","SFC_JEDEC_ID","SFC_POWERDOWN","SFC_READ","SFC_READSTATUS1","SFC_READSTATUS2","SFC_READSTATUS3","SFC_RELEASE_POWERDOWN","SFC_WRITE","SFC_WRITE_ENABLE","dbfBlack","dbfEndFrame","dbfExtraRow","dbfFlip","dbfInvert","dbfLastFrame","dbfMasked","dbfReverseBlack","dbfWhiteBlack","dbmBlack","dbmEndFrame","dbmFlip","dbmInvert","dbmLastFrame","dbmMasked","dbmNormal","dbmOverwrite","dbmReverse","dbmWhite","dcfBlack","dcfInvert","dcfMasked","dcfProportional","dcfReverseBlack","dcfWhiteBlack","dcmBlack","dcmInvert","dcmMasked","dcmNormal","dcmOverwrite","dcmProportional","dcmReverse","dcmWhite","ArdVoice","borrow","borrow_mut","from","into","is_voice_playing","new","play_voice","play_voice_complex","stop_voice","try_from","try_into","type_id","A","ANY_BUTTON","A_BUTTON","B","B_BUTTON","ButtonSet","DOWN","DOWN_BUTTON","LEFT","LEFT_BUTTON","RIGHT","RIGHT_BUTTON","UP","UP_BUTTON","flag_set","begin","begin_data","begin_data_save","display","display_clear","draw_bitmap","draw_char","draw_frame","draw_number","draw_string","load_game_state","read_data_array","save_game_state","set_cursor","set_cursor_range","set_cursor_x","set_cursor_y","set_font","set_font_mode","set_frame","BLUE_LED","GREEN_LED","RED_LED","RGB_OFF","RGB_ON","Parameters","Parameters","Serialprintable","Serialprintlnable","available","begin","default_parameters","default_parameters","end","print","print","print_2","println","println","println_2","read","read_as_utf8_str","draw_erase","draw_external_mask","draw_override","draw_plus_mask","draw_self_masked","Parameters","Parameters","Serialprintable","Serialprintlnable","available","begin","default_parameters","default_parameters","end","print","print","print_2","println","println","println_2","read","read_as_utf8_str","draw_erase","draw_external_mask","draw_override","draw_plus_mask","draw_self_masked"],"q":[[0,"arduboy_rust"],[27,"arduboy_rust::arduboy2"],[42,"arduboy_rust::arduboy_tones"],[44,"arduboy_rust::arduboy_tones::tones_pitch"],[291,"arduboy_rust::arduboyfx"],[297,"arduboy_rust::arduboyfx::fx"],[317,"arduboy_rust::arduboyfx::fx_consts"],[365,"arduboy_rust::arduino"],[368,"arduboy_rust::ardvoice"],[369,"arduboy_rust::c"],[370,"arduboy_rust::hardware"],[372,"arduboy_rust::hardware::buttons"],[391,"arduboy_rust::hardware::led"],[396,"arduboy_rust::heapless"],[766,"arduboy_rust::heapless::binary_heap"],[796,"arduboy_rust::heapless::sorted_linked_list"],[906,"arduboy_rust::prelude"],[1053,"arduboy_rust::prelude::arduboy2"],[1159,"arduboy_rust::prelude::arduboy_tones"],[1177,"arduboy_rust::prelude::arduboy_tones::tones_pitch"],[1424,"arduboy_rust::prelude::arduboyfx"],[1430,"arduboy_rust::prelude::arduboyfx::fx"],[1450,"arduboy_rust::prelude::arduboyfx::fx_consts"],[1498,"arduboy_rust::prelude::ardvoice"],[1511,"arduboy_rust::prelude::buttons"],[1526,"arduboy_rust::prelude::fx"],[1546,"arduboy_rust::prelude::led"],[1551,"arduboy_rust::prelude::serial"],[1568,"arduboy_rust::prelude::sprites"],[1573,"arduboy_rust::serial_print"],[1590,"arduboy_rust::sprites"]],"d":["This is the struct to interact in a save way with the …","This is the struct to interact in a save way with the …","This is the struct to interact in a save way with the …","Led is off","This item is to chose between Black or White","This is the struct to store and read structs objects …","Use this struct to store and read single bytes to/from …","The standard font size of the arduboy","The standard height of the arduboy","The standard width of the arduboy","Led is on","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","Clib functions you can use on the Arduboy","This is the way to go if you want print some random text","Create a const raw pointer to a ardvoice tone as u8, …","Create a const raw pointer to a sprite as u8, without …","Create a const raw pointer to a [u8;_] that saves text, …","Create a const raw pointer to a tone sequenze as u16, …","This is the Module to interact in a save way with the …","This is the important one to use this library effective in …","Create a space for Progmem variable","This is the Module to interact in a save way with the …","This is the module to interact in a save way with the …","This is the struct to interact in a save way with the …","Led is off","This item is to chose between Black or White","The standard font size of the arduboy","The standard height of the arduboy","This struct is used by a few Arduboy functions.","This struct is used by a few Arduboy functions.","The standard width of the arduboy","Led is on","Rect height","Rect width","Position X","Position X","Position Y","Position Y","This is the struct to interact in a save way with the …","A list of all tones available and used by the Sounds …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Functions given by the ArduboyFX library.","Consts given by the ArduboyFX library.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","A Arduino function to pause the cpu circles for a given …","A Arduino function to get a random number between 2 numbers","A Arduino function to get a random number smaller than the …","This is the struct to interact in a save way with the …","A C function to get the length of a string","A list of all six buttons available on the Arduboy","A list of all LED variables available","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 B button","This struct gives the library a understanding what Buttons …","Just a const for the DOWN button","Just a const for the DOWN button","Just a const for the LEFT button","Just a const for the LEFT button","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","","","","","","Just a const for the blue led","Just a const for the green led","Just a const for the red led","Just a const for led off","Just a const for led on","A priority queue implemented with a binary heap.","A fixed capacity double-ended queue.","A view into an entry in the map","A heapless::IndexMap using the default FNV hasher","A heapless::IndexSet using the default FNV hasher. A list …","A “history buffer”, similar to a write-only ring …","Fixed capacity IndexMap","Fixed capacity IndexSet.","A fixed capacity map / dictionary that performs lookups …","The entry corresponding to the key K exists in the map","An occupied entry which can be manipulated","An iterator on the underlying buffer ordered from oldest …","A fixed capacity String","The entry corresponding to the key K does not exist in the …","A view into an empty slot in the underlying map","A fixed capacity Vec","","","Returns a raw pointer to the vector’s buffer, which may …","Returns a pair of mutable slices which contain, in order, …","Converts a String into a mutable string slice.","Returns a mutable reference to the contents of this String.","Returns a raw pointer to the vector’s buffer.","","","","","","Returns the array slice backing the buffer, without …","Extracts a slice containing the entire vector.","Returns a pair of slices which contain, in order, the …","Extracts a string slice containing the entire string.","Provides a reference to the back element, or None if the …","Provides a mutable reference to the back element, or None …","A priority queue implemented with a binary heap.","","","","","","","","","","","","","","","","","","","","","","","","","Returns the maximum number of elements the deque can hold.","Returns the capacity of the buffer, which is the length of …","Returns the number of elements the map can hold","Returns the number of elements the set can hold","Returns the number of elements that the map can hold","Returns the maximum number of elements the String can hold","Returns the maximum number of elements the vector can hold.","Returns the capacity of the binary heap.","Clears the deque, removing all values.","Clears the buffer, replacing every element with the …","Remove all key-value pairs in the map, while preserving …","Clears the set, removing all values.","Clears the map, removing all key-value pairs","Truncates this String, removing all contents.","Clears the vector, removing all values.","Drops all items from the binary heap.","Clears the buffer, replacing every element with the given …","","","","","","","","","","","Returns true if the set contains a value.","Returns true if the map contains a value for the specified …","Returns true if the map contains a value for the specified …","","","","","","","","","","","","","","","","","Visits the values representing the difference, i.e. the …","","","","","","Returns true if needle is a suffix of the Vec.","Returns an entry for the corresponding key","","","","","","","","","","","","","","","","","","","","Extends the vec from an iterator.","","Clones and writes all elements in a slice to the buffer.","Clones and appends all elements in a slice to the Vec.","Get the first key-value pair","Get the first value","Get the first key-value pair, with mutable access to the …","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","Returns the argument unchanged.","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","","","","","","","","Constructs a new vector with a fixed capacity of N and …","","Provides a reference to the front element, or None if the …","Provides a mutable reference to the front element, or None …","Gets a reference to the value associated with this entry","Returns a reference to the value corresponding to the key.","Returns a reference to the value corresponding to the key","Gets a mutable reference to the value associated with this …","Returns a mutable reference to the value corresponding to …","Returns a mutable reference to the value corresponding to …","","","","","","","","","Overwrites the underlying map’s value with this entry’…","Inserts this entry into to underlying map, yields a …","Inserts a key-value pair into the map.","Adds a value to the set.","Inserts a key-value pair into the map.","Inserts an element at position index within the vector, …","Visits the values representing the intersection, i.e. the …","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Returns the contents of the vector as an array of length M …","Converts a String into a byte vector.","","","","","","","","","","","","","","Consumes this entry to yield to key associated with it","Consumes this entry and yields a reference to the …","Returns the underlying Vec<T,N>. Order is arbitrary and …","Returns true if self has no elements in common with other. …","Returns whether the deque is empty.","Returns true if the map contains no elements.","Returns true if the set contains no elements.","Returns true if the map contains no elements","Returns true if the vec is empty","Checks if the binary heap is empty.","Returns whether the deque is full (i.e. if …","Returns true if the vec is full","Returns true if the set is a subset of another, i.e. other …","Examples","Returns an iterator over the deque.","Return an iterator over the key-value pairs of the map, in …","Return an iterator over the values of the set, in their …","An iterator visiting all key-value pairs in arbitrary …","Returns an iterator visiting all values in the underlying …","Returns an iterator that allows modifying each value.","Return an iterator over the key-value pairs of the map, in …","An iterator visiting all key-value pairs in arbitrary …","Returns a mutable iterator visiting all values in the …","Gets a reference to the key that this entity corresponds to","Get the key associated with this entry","Return an iterator over the keys of the map, in their order","An iterator visiting all keys in arbitrary order","Get the last key-value pair","Get the last value","Get the last key-value pair, with mutable access to the …","Returns the number of elements currently in the deque.","Returns the current fill level of the buffer.","Return the number of key-value pairs in the map.","Returns the number of elements in the set.","Returns the number of elements in this map","Returns the length of the binary heap.","","","","Constructs a new, empty deque with a fixed capacity of N","Constructs a new history buffer.","Creates an empty IndexMap.","Creates an empty IndexSet","Creates an empty LinearMap","Constructs a new, empty String with a fixed capacity of N …","Constructs a new, empty vector with a fixed capacity of N","Creates an empty BinaryHeap as a $K-heap.","Constructs a new history buffer, where every element is …","","Returns an iterator for iterating over the buffer from …","","","Returns the top (greatest if max-heap, smallest if …","Returns a mutable reference to the greatest item in the …","Removes the last character from the string buffer and …","Removes the last element from a vector and returns it, or …","Removes the top (greatest if max-heap, smallest if …","Removes the item from the back of the deque and returns …","Removes an item from the back of the deque and returns it, …","Removes the item from the front of the deque and returns …","Removes an item from the front of the deque and returns …","Removes the last element from a vector and returns it","Removes the top (greatest if max-heap, smallest if …","","","","Appends the given char to the end of this String.","Appends an item to the back of the collection","Pushes an item onto the binary heap.","Appends an item to the back of the deque","Appends an item to the back of the deque","Appends an item to the front of the deque","Appends an item to the front of the deque","Appends a given string slice onto the end of this String.","Appends an item to the back of the collection","Pushes an item onto the binary heap without first checking …","Returns a reference to the most recently written value.","Removes this entry from the map and yields its value","Same as swap_remove","Removes a value from the set. Returns true if the value …","Removes a key from the map, returning the value at the key …","Removes and returns the element at position index within …","Removes this entry from the map and yields its …","Resizes the Vec in-place so that len is equal to new_len.","Resizes the Vec in-place so that len is equal to new_len.","Retains only the elements specified by the predicate.","Retains only the elements specified by the predicate, …","Forces the length of the vector to new_len.","A fixed sorted priority linked list, similar to BinaryHeap …","Returns true if needle is a prefix of the Vec.","Remove the key-value pair equivalent to key and return its …","Removes an element from the vector and returns it.","Removes an element from the vector and returns it.","Visits the values representing the symmetric difference, …","Shortens this String to the specified length.","Shortens the vector, keeping the first len elements and …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Visits the values representing the union, i.e. all the …","Return an iterator over the values of the map, in their …","An iterator visiting all values in arbitrary order","Return an iterator over mutable references to the the …","An iterator visiting all values mutably in arbitrary order","Writes an element to the buffer, overwriting the oldest …","","","","A priority queue implemented with a binary heap.","The binary heap kind: min-heap or max-heap","Max-heap","Min-heap","Structure wrapping a mutable reference to the greatest …","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Removes the peeked value from the heap and returns it.","","","","","","","","","","Comes from SortedLinkedList::find_mut.","Iterator for the linked list.","The linked list kind: min-list or max-list","Index for the SortedLinkedList with specific backing …","Index for the SortedLinkedList with specific backing …","Index for the SortedLinkedList with specific backing …","Marker for Max sorted SortedLinkedList.","Marker for Min sorted SortedLinkedList.","A node in the SortedLinkedList.","The linked list.","Trait for defining an index for the linked list, never …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Find an element in the list that can be changed and …","This will resort the element into the correct position in …","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","","Checks if the linked list is empty.","Checks if the linked list is full.","Get an iterator over the sorted list.","Create a new linked list.","Create a new linked list.","Create a new linked list.","","","","","Peek at the first element.","Pops the first element in the list.","This will pop the element from the list.","Pop an element from the list without checking so the list …","Pushes an element to the linked list and sorts it into …","Pushes a value onto the list without checking if the list …","","","","","","","","","","","","","","","","","","","","","","","","","","","","Just a const for the A button","Just a const for the any","Just a const for the A button","This is the struct to interact in a save way with the …","This is the struct to interact in a save way with the …","This is the struct to interact in a save way with the …","Just a const for the B button","Just a const for the blue led","Just a const for the B button","","","Led is off","This struct gives the library a understanding what Buttons …","This item is to chose between Black or White","Just a const for the DOWN button","Just a const for the DOWN button","","This is the struct to store and read structs objects …","Use this struct to store and read single bytes to/from …","Use this struct to store and read single bytes to/from …","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","A fixed capacity map / dictionary that performs lookups …","","","This struct is used by a few Arduboy functions.","","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","This struct is used by a few Arduboy functions.","A fixed capacity String","Just a const for the UP button","Just a const for the UP button","A fixed capacity Vec","The standard width of the arduboy","Led is on","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","This is the Module to interact in a save way with the …","","","","","","","","","","","","A list of all six buttons available on the Arduboy","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 size_t type, from stddef.h (or cstddef …","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.","","","","","","","A Arduino function to pause the cpu circles for a given …","","","This is the way to go if you want print some random text","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Functions given by the ArduboyFX library.","","Create a const raw pointer to a ardvoice tone as u8, …","","Create a const raw pointer to a sprite as u8, without …","Create a const raw pointer to a [u8;_] that saves text, …","Create a const raw pointer to a tone sequenze as u16, …","","","Rect height","","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","A list of all LED variables available","","","","","","","","","Create a space for Progmem variable","","A Arduino function to get a random number between 2 numbers","A Arduino function to get a random number smaller than the …","","","This is the Module to interact in a save way with the …","This is the module to interact in a save way with the …","A C function to get the length of a string","","","","","","","","","","","","","","","","","","Rect width","","","Position X","Position X","Position Y","Position Y","This is the struct to interact in a save way with the …","Led is off","This item is to chose between Black or White","The standard font size of the arduboy","The standard height of the arduboy","This struct is used by a few Arduboy functions.","This struct is used by a few Arduboy functions.","The standard width of the arduboy","Led is on","Get the current sound state.","Turn sound off (mute).","Turn sound on.","Combines the use function of audio_on() and …","Save the current sound state in EEPROM.","Toggle the sound on/off state.","Initialize the hardware, display the boot logo, provide …","","","","","","","","","Get the current state of all buttons as a bitmask.","Clear the display buffer and set the text cursor to …","","","","","Test if a point falls within a rectangle.","Test if a rectangle is intersecting with another rectangle.","Set the RGB LEDs digitally, to either fully on or fully …","Set one of the RGB LEDs digitally, to either fully on or …","Copy the contents of the display buffer to the display. …","Copy the contents of the display buffer to the display. …","Draw a circle of a given radius.","Draw a horizontal line.","Draw a vertical line.","Set a single pixel in the display buffer to the specified …","Draw a rectangle of a specified width and height.","Draw a rectangle with rounded corners.","Draw a triangle given the coordinates of each corner.","","Indicate if the specified number of frames has elapsed.","Exit the sketch and start the bootloader.","Draw a filled-in circle of a given radius.","Draw a filled-in rectangle of a specified width and height.","Draw a filled-in rectangle with rounded corners.","Draw a filled-in triangle given the coordinates of each …","Flip the display horizontally or set it back to normal.","Flip the display vertically or set it back to normal.","","","","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the state of the given pixel in the screen buffer.","","Rect height","Idle the CPU to save power.","Seed the random number generator with a random value.","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Invert the entire display or set it back to normal.","Check if a button has just been pressed.","Check if a button has just been released.","gives you a new instance of the Arduboy2","Indicate that it’s time to render the next frame.","","Test if the specified buttons are not pressed.","","Poll the buttons and track their state over time.","Test if the all of the specified buttons are pressed.","The Arduino Print class is available for writing text to …","Set the location of the text cursor.","Set the X coordinate of the text cursor location.","Set the Y coordinate of the text cursor location.","Set the frame rate used by the frame control functions.","Set the light output of the RGB LED.","Set the brightness of one of the RGB LEDs without …","Set the text background color.","Set the text foreground color.","Set the text character size.","Set or disable text wrap mode.","","","","","","","","","","","","","Rect width","Position X","Position X","Position Y","Position Y","This is the struct to interact in a save way with the …","","","Returns the argument unchanged.","Calls U::from(self).","Get a new instance of ArduboyTones","Stop playing the tone or sequence.","Check if a tone or tone sequence is playing.","Play a single tone.","Play two tones in sequence.","Play three tones in sequence.","Play a tone sequence from frequency/duration pairs in a …","Play a tone sequence from frequency/duration pairs in an …","A list of all tones available and used by the Sounds …","","","","Set the volume to always normal, always high, or tone …","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","Functions given by the ArduboyFX library.","Consts given by the ArduboyFX library.","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","This is the struct to interact in a save way with the …","","","Returns the argument unchanged.","Calls U::from(self).","","","","","","","","","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 B button","This struct gives the library a understanding what Buttons …","Just a const for the DOWN button","Just a const for the DOWN button","Just a const for the LEFT button","Just a const for the LEFT button","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","","","","","","","","","","","","","","","","","","","","","","Just a const for the blue led","Just a const for the green led","Just a const for the red led","Just a const for led off","Just a const for led on","","","","","Get the number of bytes (characters) available for reading …","Sets the data rate in bits per second (baud) for serial …","","","Disables serial communication, allowing the RX and TX pins …","The Arduino Serial Print class is available for writing …","","","The Arduino Serial Print class is available for writing …","","","Reads incoming serial data. Use only inside of available():","Reads incoming serial data.","“Erase” a sprite.","Draw a sprite using a separate image and mask array.","Draw a sprite by replacing the existing content completely.","Draw a sprite using an array containing both image and …","Draw a sprite using only the bits set to 1.","","","","","Get the number of bytes (characters) available for reading …","Sets the data rate in bits per second (baud) for serial …","","","Disables serial communication, allowing the RX and TX pins …","The Arduino Serial Print class is available for writing …","","","The Arduino Serial Print class is available for writing …","","","Reads incoming serial data. Use only inside of available():","Reads incoming serial data.","“Erase” a sprite.","Draw a sprite using a separate image and mask array.","Draw a sprite by replacing the existing content completely.","Draw a sprite using an array containing both image and …","Draw a sprite using only the bits set to 1."],"i":[0,0,0,82,0,0,0,0,0,0,82,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0,0,0,0,0,82,83,83,83,84,83,84,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,10,10,10,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,37,0,0,0,37,0,0,12,12,12,14,15,15,12,17,15,15,12,12,17,12,14,15,14,14,0,14,17,37,46,50,22,23,24,15,12,27,30,14,17,37,46,50,22,23,24,15,12,27,30,14,17,22,23,24,15,12,27,14,17,22,23,24,15,12,27,17,14,22,23,24,15,12,27,30,15,12,23,22,24,14,17,22,23,24,15,12,27,15,15,15,17,15,12,15,12,23,15,14,17,24,12,12,22,22,23,24,15,15,15,12,12,12,12,12,12,17,17,22,22,23,23,12,12,12,17,12,22,23,22,14,17,22,23,24,15,15,12,27,14,17,37,46,50,22,23,24,15,15,15,15,15,15,15,15,15,15,12,27,30,22,23,24,15,15,15,12,12,15,14,14,46,22,24,46,22,24,15,15,12,12,22,24,22,24,46,50,22,23,24,12,23,14,17,37,46,50,22,23,24,15,12,27,30,12,15,14,14,14,22,22,22,23,24,12,12,12,27,30,50,46,27,23,14,22,23,24,12,27,14,12,23,23,14,22,23,24,27,14,22,24,27,46,50,22,24,22,23,22,14,17,22,23,24,27,15,15,15,14,17,22,23,24,15,12,27,17,30,17,15,12,27,27,15,12,27,14,14,14,14,12,27,15,15,15,15,12,27,14,14,14,14,15,12,27,17,46,22,23,24,12,46,12,12,12,12,12,0,12,22,12,12,23,15,12,14,17,37,46,50,22,23,24,15,12,12,27,30,14,17,37,46,50,22,23,24,15,12,27,30,14,17,37,46,50,22,23,24,15,12,27,30,23,22,24,22,24,17,15,15,12,0,0,0,0,0,91,92,64,91,92,64,64,64,64,91,92,64,91,92,64,64,91,92,64,91,92,64,91,92,64,0,0,0,0,0,0,0,0,0,0,0,93,94,95,74,75,73,68,69,70,93,94,95,74,75,73,68,69,70,68,69,70,68,69,70,73,73,74,73,68,69,70,74,73,74,68,69,70,93,94,95,74,75,73,68,69,70,93,94,95,74,75,73,68,69,70,75,74,74,74,74,74,74,75,68,69,70,74,74,73,74,74,74,93,94,95,74,75,73,68,69,70,93,94,95,74,75,73,68,69,70,93,94,95,74,75,73,68,69,70,0,0,0,0,0,0,0,0,0,0,76,82,0,0,0,0,76,0,0,0,0,0,0,76,0,0,0,76,85,0,0,0,0,0,0,0,0,0,0,0,0,0,82,0,0,0,0,10,78,79,80,10,76,78,79,80,10,76,0,0,0,0,0,0,0,0,0,0,0,0,10,76,10,76,0,85,0,10,76,0,10,10,76,78,79,80,10,76,0,78,0,78,0,0,0,10,76,83,78,79,78,79,80,10,76,0,78,79,80,10,76,85,85,85,0,78,0,0,79,80,0,0,0,78,79,80,10,76,78,79,80,10,76,78,79,80,10,76,79,80,83,79,80,83,84,83,84,0,82,0,0,0,0,0,0,82,81,81,81,81,81,81,81,81,82,83,84,81,82,83,84,81,81,82,83,84,82,81,81,81,81,81,81,81,81,81,81,81,81,81,82,81,81,81,81,81,81,81,81,82,83,84,81,82,83,84,81,82,83,81,81,81,82,83,84,81,81,81,81,81,82,81,82,81,81,81,81,81,81,81,81,81,81,81,81,81,81,82,83,84,81,82,83,84,81,82,83,84,83,83,84,83,84,0,86,86,86,86,86,86,86,86,86,86,86,86,0,86,86,86,86,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,6,7,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,87,87,87,87,87,87,87,87,87,87,87,87,0,0,0,0,0,0,0,0,0,0,0,0,0,0,10,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,90,89,0,0,0,0,90,89,0,0,89,89,0,90,90,0,0,0,0,0,0,0,90,89,0,0,0,0,90,89,0,0,89,89,0,90,90,0,0,0,0,0,0,0],"f":[0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[1],[[]],0,0,[[]],[2],[[2,2]],[[]],[[]],[[3,3,4,5,5]],[5],[4,4],[[6,1]],[7],[[],5],[[4,5,5,5,5,8]],[[]],[[3,3]],[[3,3]],[3],[3],[[4,5]],[5],[[4,5]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[4],[[9,9],9],[9,9],0,[1,8],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[10,11],[10,11],[10,11],[10,11],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[12,13],[12,12],[12],[14],[15,16],[15,[[12,[5]]]],[12],[17,13],[15,16],[15,[[13,[5]]]],[12,12],[12,13],[17,13],[12,13],[14],[15,16],[14,18],[14,18],0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[14,8],[17,8],[[[22,[[0,[19,20]],21]]],8],[[[23,[[0,[19,20]],21]]],8],[[[24,[19]]],8],[15,8],[12,8],[[[27,[25,26]]],8],[14],[17],[[[22,[[0,[19,20]],21]]]],[[[23,[[0,[19,20]],21]]]],[[[24,[19]]]],[15],[12],[[[27,[25,26]]]],[[[17,[[0,[28,29]]]],[0,[28,29]]]],[[[14,[29]]],[[14,[29]]]],[[[22,[[0,[19,20,29]],29,29]]],[[22,[[0,[19,20,29]],29,29]]]],[[[23,[[0,[19,20,29]],29]]],[[23,[[0,[19,20,29]],29]]]],[[[24,[[0,[19,29]],29]]],[[24,[[0,[19,29]],29]]]],[15,15],[[[12,[29]]],[[12,[29]]]],[[[27,[[0,[25,29]],26]]],[[27,[[0,[25,29]],26]]]],[[[30,[29]]],[[30,[29]]]],[[15,15],31],[[[12,[25]],[12,[25]]],31],[[[23,[[33,[[0,[19,20,32]]]],[0,[19,20]],21]],[0,[19,20,32]]],11],[[[22,[[33,[[0,[19,20,32]]]],[0,[19,20]],21]],[0,[19,20,32]]],11],[[[24,[19]],19],11],[[],14],[[],17],[[],[[22,[[0,[19,20]],[0,[21,34]]]]]],[[],[[23,[[0,[19,20]],[0,[21,34]]]]]],[[],[[24,[19]]]],[[],15],[[],12],[[],[[27,[25,26]]]],[[]],[[]],[[]],[17,13],[15,16],[12,13],[15,16],[12,13],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],[[35,[[0,[19,20]],21]]]],[15],[14],[17],[24],[12],[[[12,[[36,[[36,[[36,[36]]]]]]]],[13,[[36,[[36,[[36,[36]]]]]]]]],11],[[[22,[[0,[19,20]],21]],[0,[19,20]]],[[37,[[0,[19,20]]]]]],[[[22,[[0,[19,20]],19,21]],[22,[[0,[19,20]],19,21]]],11],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],11],[[[24,[19,[36,[[36,[[36,[36]]]]]]]],[24,[19,[36,[[36,[[36,[36]]]]]]]]],11],[[15,15],11],[[15,16],11],[[15,16],11],[[[12,[36]],12],11],[[[12,[36]],13],11],[[[12,[36]],38],11],[[[12,[36]],13],11],[[[12,[36]],13],11],[[[12,[36]],38],11],[[[17,[29]],39]],[[17,39]],[[[22,[[0,[19,20]],21]],39]],[[[22,[[0,[19,20,28]],28,21]],39]],[[[23,[[0,[19,20,28]],21]],39]],[[[23,[[0,[19,20]],21]],39]],[[12,39]],[[12,39]],[[[12,[28]],39]],[[[17,[29]],[13,[29]]]],[[[12,[29]],[13,[29]]],40],[[[22,[[0,[19,20]],21]]],18],[[[23,[[0,[19,20]],21]]],[[18,[[0,[19,20]]]]]],[[[22,[[0,[19,20]],21]]],18],[[[14,[41]],42],[[40,[43]]]],[[[17,[41]],42],[[40,[43]]]],[[[22,[[0,[19,20,41]],41,21]],42],[[40,[43]]]],[[[23,[[0,[19,20,41]],21]],42],[[40,[43]]]],[[[24,[[0,[19,41]],41]],42],[[40,[43]]]],[[15,42],[[40,[43]]]],[[15,42],[[40,[43]]]],[[[12,[41]],42],[[40,[43]]]],[[[27,[[0,[25,41]],26]],42],[[40,[43]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[9,15],[3,15],[5,15],[2,15],[1,15],[16,15],[[]],[4,15],[44,15],[45,15],[[]],[[]],[[]],[39,[[22,[[0,[19,20]],[0,[21,34]]]]]],[39,[[23,[[0,[19,20]],[0,[21,34]]]]]],[39,[[24,[19]]]],[39,15],[39,15],[39,15],[39,12],[[[13,[29]]],[[40,[[12,[29]]]]]],[16,[[40,[15]]]],[14,18],[14,18],[[[46,[[0,[19,20]]]]]],[[[22,[[33,[[0,[20,19,32]]]],[0,[19,20]],21]],[0,[20,19,32]]],18],[[[24,[[33,[[0,[19,32]]]],19]],[0,[19,32]]],18],[[[46,[[0,[19,20]]]]]],[[[22,[[33,[[0,[20,19,32]]]],[0,[19,20]],21]],[0,[20,19,32]]],18],[[[24,[[33,[[0,[19,32]]]],19]],[0,[19,32]]],18],[[15,47]],[[15,48]],[[[12,[49]],47]],[[[12,[20]],48]],[[[22,[[0,[19,20,[33,[[0,[19,20,32]]]]]],21]],[0,[19,20,32]]]],[[[24,[[0,[[33,[[0,[19,32]]]],19]]]],[0,[19,32]]]],[[[22,[[0,[19,20,[33,[[0,[19,20,32]]]]]],21]],[0,[19,20,32]]]],[[[24,[[0,[[33,[[0,[19,32]]]],19]]]],[0,[19,32]]]],[[[46,[[0,[19,20]]]]]],[[[50,[[0,[19,20]]]]],40],[[[22,[[0,[19,20]],21]],[0,[19,20]]],[[40,[18]]]],[[[23,[[0,[19,20]],21]],[0,[19,20]]],[[40,[11,[0,[19,20]]]]]],[[[24,[19]],19],[[40,[18]]]],[[12,8],40],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],[[51,[[0,[19,20]],21]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[12,[[40,[38,12]]]],[15,[[12,[5]]]],[14],[14],[14],[[[22,[[0,[19,20]],21]]]],[[[22,[[0,[19,20]],21]]]],[[[22,[[0,[19,20]],21]]]],[[[23,[[0,[19,20]],21]]]],[[[24,[19]]]],[12],[12],[12],[[[27,[25,26]]]],[[]],[[[50,[[0,[19,20]]]]],[[0,[19,20]]]],[[[46,[[0,[19,20]]]]]],[[[27,[25,26]]],[[12,[25]]]],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],11],[14,11],[[[22,[[0,[19,20]],21]]],11],[[[23,[[0,[19,20]],21]]],11],[[[24,[19]]],11],[12,11],[[[27,[25,26]]],11],[14,11],[12,11],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],11],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],11],[14,52],[[[22,[[0,[19,20]],21]]],[[53,[[0,[19,20]]]]]],[[[23,[[0,[19,20]],21]]],[[54,[[0,[19,20]]]]]],[[[24,[19]]],[[55,[19]]]],[[[27,[25,26]]],[[56,[25]]]],[14,57],[[[22,[[0,[19,20]],21]]],[[58,[[0,[19,20]]]]]],[[[24,[19]]],[[59,[19]]]],[[[27,[25,26]]],[[60,[25]]]],[[[46,[[0,[19,20]]]]],[[0,[19,20]]]],[[[50,[[0,[19,20]]]]],[[0,[19,20]]]],[[[22,[[0,[19,20]],21]]],61],[[[24,[19]]],61],[[[22,[[0,[19,20]],21]]],18],[[[23,[[0,[19,20]],21]]],[[18,[[0,[19,20]]]]]],[[[22,[[0,[19,20]],21]]],18],[14,8],[17,8],[[[22,[[0,[19,20]],21]]],8],[[[23,[[0,[19,20]],21]]],8],[[[24,[19]]],8],[[[27,[25,26]]],8],[[15,16],11],[[15,16],11],[[15,15],11],[[],14],[[],17],[[],[[22,[62]]]],[[],[[23,[62]]]],[[],24],[[],15],[[],12],[[],27],[[[0,[28,29]]],[[17,[[0,[28,29]]]]]],[30,18],[17,30],[[15,15],[[18,[31]]]],[[[12,[[63,[[63,[[63,[63]]]]]]]],[12,[[63,[[63,[[63,[63]]]]]]]]],[[18,[31]]]],[[[27,[25,26]]],[[18,[25]]]],[[[27,[25,26]]],[[18,[[64,[25,26]]]]]],[15,[[18,[65]]]],[12,18],[[[27,[25,26]]],[[18,[25]]]],[14,18],[14],[14,18],[14],[12],[[[27,[25,26]]],25],[15],[15],[15],[[15,65],40],[12,40],[[[27,[25,26]],25],[[40,[25]]]],[14,40],[14],[14,40],[14],[[15,16],40],[12],[[[27,[25,26]],25]],[17,18],[[[46,[[0,[19,20]]]]]],[[[22,[[33,[[0,[20,19,32]]]],[0,[19,20]],21]],[0,[20,19,32]]],18],[[[23,[[33,[[0,[19,20,32]]]],[0,[19,20]],21]],[0,[19,20,32]]],11],[[[24,[[33,[[0,[19,32]]]],19]],[0,[19,32]]],18],[[12,8]],[[[46,[[0,[19,20]]]]]],[[[12,[29]],8,29],40],[[[12,[[0,[29,34]]]],8],40],[[12,66]],[[12,66]],[[12,8]],0,[[[12,[[36,[[36,[[36,[36]]]]]]]],[13,[[36,[[36,[[36,[36]]]]]]]]],11],[[[22,[[33,[[0,[20,19,32]]]],[0,[19,20]],21]],[0,[20,19,32]]],18],[[12,8]],[[12,8]],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],61],[[15,8]],[[12,8]],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[[13,[29]]],[[40,[[12,[29]]]]]],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[[23,[[0,[19,20]],21]],[23,[[0,[19,20]],21]]],61],[[[22,[[0,[19,20]],21]]],61],[[[24,[19]]],61],[[[22,[[0,[19,20]],21]]],61],[[[24,[19]]],61],[17],[[15,65],[[40,[43]]]],[[15,16],[[40,[43]]]],[[[12,[5]],16],[[40,[43]]]],0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[[64,[25,26]]],25],[[[64,[25,26]]],25],[[[64,[25,26]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[[64,[25,26]]],25],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],67],[[],67],[[],67],0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[68,68],[69,69],[70,70],[[68,68],31],[[69,69],31],[[70,70],31],[[[73,[25,71,72]]]],[[[73,[25,71,72]]]],[[[74,[71]]]],[[[73,[25,71,72]]]],[[68,68],11],[[69,69],11],[[70,70],11],[[[74,[25,71,72]],66],[[18,[[73,[25,71,72]]]]]],[[[73,[25,71,72]]]],[[[74,[[0,[25,41]],71,72]],42],[[40,[43]]]],[[68,42],[[40,[43]]]],[[69,42],[[40,[43]]]],[[70,42],[[40,[43]]]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[[74,[25,71,72]]],11],[[[74,[25,71,72]]],11],[[[74,[25,71,72]]],[[75,[25,71,72]]]],[[],[[74,[69]]]],[[],[[74,[68]]]],[[],[[74,[70]]]],[[[75,[25,71,72]]],18],[[68,68],[[18,[31]]]],[[69,69],[[18,[31]]]],[[70,70],[[18,[31]]]],[[[74,[25,71,72]]],[[18,[25]]]],[[[74,[25,71,72]]],[[40,[25]]]],[[[73,[25,71,72]]],25],[[[74,[25,71,72]]],25],[[[74,[25,71,72]],25],[[40,[25]]]],[[[74,[25,71,72]],25]],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],[[],67],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[10,10],10],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],0,0,0,0,0,0,0,0,0,0,0,0,[10,10],[76,76],[[10,10],31],[[76,76],31],[[25,25,25],25],[[]],[4],[[10,10],11],[[76,76],11],0,0,[[10,42],77],[[76,42],77],[[]],[[]],[[]],[[]],[[]],0,[78],0,[78],0,0,0,[[10,47]],[[76,47]],0,[78],[79],[[]],[[]],[[]],[[]],[[]],0,[3,78],[3,79],[3,80],[[10,10],[[18,[31]]]],[[76,76],[[18,[31]]]],[[]],[[]],[[]],0,[78],[[9,9],9],[9,9],[79,5],[80,5],0,0,[1,8],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],67],[[],67],[[],67],[[],67],[[],67],[[79,5]],[[80,5]],0,[[79,5]],[[80,5]],0,0,0,0,0,0,0,0,0,0,0,0,0,[81,11],[81],[81],[81],[81],[81],[81],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[81,5],[81],[82,82],[83,83],[84,84],[[82,82],31],[[81,84,83],11],[[81,83,83],11],[[81,5,5,5]],[[81,5,5]],[81],[81],[[81,3,3,5,82]],[[81,3,3,5,82]],[[81,3,3,5,82]],[[81,3,3,82]],[[81,3,3,5,5,82]],[[81,3,3,5,5,5,82]],[[81,3,3,3,3,3,3,82]],[[82,82],11],[[81,5],11],[81],[[81,3,3,5,82]],[[81,3,3,5,5,82]],[[81,3,3,5,5,5,82]],[[81,3,3,3,3,3,3,82]],[[81,11]],[[81,11]],[[82,42],77],[[83,42],77],[[84,42],77],[[]],[[]],[[]],[[]],[[81,5,5],82],[[82,47]],0,[81],[81],[[]],[[]],[[]],[[]],[[81,11]],[[81,10],11],[[81,10],11],[[],81],[81,11],[82],[[81,10],11],[[82,82],[[18,[31]]]],[81],[[81,10],11],[[81,85]],[[81,3,3]],[[81,3]],[[81,3]],[[81,5]],[[81,5,5,5]],[[81,5,5]],[[81,82]],[[81,82]],[[81,5]],[[81,11]],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],40],[[],67],[[],67],[[],67],[[],67],0,0,0,0,0,0,[[]],[[]],[[]],[[]],[[],86],[86],[86,11],[[86,2,4]],[[86,2,4,2,4]],[[86,2,4,2,4,2,4]],[[86,2]],[[86,4]],0,[[],40],[[],40],[[],67],[[86,5]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[1],[[]],0,0,[[]],[2],[[2,2]],[[]],[[]],[[3,3,4,5,5]],[5],[4,4],[[6,1]],[7],[[],5],[[4,5,5,5,5,8]],[[]],[[3,3]],[[3,3]],[3],[3],[[4,5]],[5],[[4,5]],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[87,11],[[],87],[[87,5]],[[87,5,4,4,88]],[87],[[],40],[[],40],[[],67],0,0,0,0,0,0,0,0,0,0,0,0,0,0,0,[[]],[2],[[2,2]],[[]],[[]],[[3,3,4,5,5]],[5],[4,4],[[6,1]],[7],[[],5],[[4,5,5,5,5,8]],[[]],[[3,3]],[[3,3]],[3],[3],[[4,5]],[5],[[4,5]],0,0,0,0,0,0,0,0,0,[[],3],[4],[[]],[[]],[[]],[89],[[]],[[]],[90],[[]],[[]],[[],3],[[],16],[[3,3,5,5]],[[3,3,5,5,5,5]],[[3,3,5,5]],[[3,3,5,5]],[[3,3,5,5]],0,0,0,0,[[],3],[4],[[]],[[]],[[]],[89],[[]],[[]],[90],[[]],[[]],[[],3],[[],16],[[3,3,5,5]],[[3,3,5,5,5,5]],[[3,3,5,5]],[[3,3,5,5]],[[3,3,5,5]]],"c":[],"p":[[15,"i8"],[15,"u16"],[15,"i16"],[15,"u32"],[15,"u8"],[8,"DrawableNumber"],[8,"DrawableString"],[15,"usize"],[15,"i32"],[3,"ButtonSet"],[15,"bool"],[3,"Vec"],[15,"slice"],[3,"Deque"],[3,"String"],[15,"str"],[3,"HistoryBuffer"],[4,"Option"],[8,"Eq"],[8,"Hash"],[8,"BuildHasher"],[3,"IndexMap"],[3,"IndexSet"],[3,"LinearMap"],[8,"Ord"],[8,"Kind"],[3,"BinaryHeap"],[8,"Copy"],[8,"Clone"],[3,"OldestOrdered"],[4,"Ordering"],[8,"Sized"],[8,"Borrow"],[8,"Default"],[3,"Difference"],[8,"PartialEq"],[4,"Entry"],[15,"array"],[8,"IntoIterator"],[4,"Result"],[8,"Debug"],[3,"Formatter"],[3,"Error"],[15,"i64"],[15,"u64"],[3,"OccupiedEntry"],[8,"Hasher"],[8,"Hasher"],[8,"Hash"],[3,"VacantEntry"],[3,"Intersection"],[3,"Iter"],[3,"Iter"],[3,"Iter"],[3,"Iter"],[3,"Iter"],[3,"IterMut"],[3,"IterMut"],[3,"IterMut"],[3,"IterMut"],[8,"Iterator"],[3,"BuildHasherDefault"],[8,"PartialOrd"],[3,"PeekMut"],[15,"char"],[8,"FnMut"],[3,"TypeId"],[3,"LinkedIndexU8"],[3,"LinkedIndexU16"],[3,"LinkedIndexUsize"],[8,"SortedLinkedListIndex"],[8,"Kind"],[3,"FindMut"],[3,"SortedLinkedList"],[3,"Iter"],[4,"Base"],[6,"Result"],[3,"EEPROM"],[3,"EEPROMBYTE"],[3,"EEPROMBYTECHECKLESS"],[3,"Arduboy2"],[4,"Color"],[3,"Rect"],[3,"Point"],[8,"Printable"],[3,"ArduboyTones"],[3,"ArdVoice"],[15,"f32"],[8,"Serialprintable"],[8,"Serialprintlnable"],[4,"Min"],[4,"Max"],[3,"Min"],[3,"Max"],[3,"Node"]]},\ "ardvoice":{"doc":"","t":"FF","n":["loop_","setup"],"q":[[0,"ardvoice"]],"d":["",""],"i":[0,0],"f":[[[]],[[]]],"c":[],"p":[]},\ "atomic_polyfill":{"doc":"","t":"RNNDDDENNNLLLLLLLLLLLLFLLLLFLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLLFLLLLLLLLLLLLLLL","n":["ATOMIC_BOOL_INIT","AcqRel","Acquire","AtomicBool","AtomicI8","AtomicU8","Ordering","Relaxed","Release","SeqCst","as_ptr","as_ptr","as_ptr","borrow","borrow","borrow","borrow","borrow_mut","borrow_mut","borrow_mut","borrow_mut","clone","compiler_fence","default","default","default","eq","fence","fmt","fmt","fmt","fmt","from","from","from","from","from","from","from","from_mut","from_mut","from_mut","from_mut_slice","from_mut_slice","from_mut_slice","from_ptr","from_ptr","from_ptr","get_mut","get_mut","get_mut","get_mut_slice","get_mut_slice","get_mut_slice","hash","into","into","into","into","into_inner","into_inner","into_inner","load","load","load","new","new","new","spin_loop_hint","store","store","store","try_from","try_from","try_from","try_from","try_into","try_into","try_into","try_into","type_id","type_id","type_id","type_id"],"q":[[0,"atomic_polyfill"]],"d":["An AtomicBool initialized to false.","Has the effects of both Acquire and Release together: For …","When coupled with a load, if the loaded value was written …","A boolean type which can be safely shared between threads.","An integer type which can be safely shared between threads.","An integer type which can be safely shared between threads.","Atomic memory orderings","No ordering constraints, only atomic operations.","When coupled with a store, all previous operations become …","Like Acquire/Release/AcqRel (for load, store, and …","Returns a mutable pointer to the underlying bool.","Returns a mutable pointer to the underlying integer.","Returns a mutable pointer to the underlying integer.","","","","","","","","","","A compiler memory fence.","Creates an AtomicBool initialized to false.","","","","An atomic fence.","","","","","Converts a bool into an AtomicBool.","Returns the argument unchanged.","Returns the argument unchanged.","Returns the argument unchanged.","Converts an i8 into an AtomicI8.","Converts an u8 into an AtomicU8.","Returns the argument unchanged.","Get atomic access to a &mut bool.","Get atomic access to a &mut i8.","Get atomic access to a &mut u8.","Get atomic access to a &mut [bool] slice.","Get atomic access to a &mut [i8] slice.","Get atomic access to a &mut [u8] slice.","Creates a new AtomicBool from a pointer.","Creates a new reference to an atomic integer from a …","Creates a new reference to an atomic integer from a …","Returns a mutable reference to the underlying bool.","Returns a mutable reference to the underlying integer.","Returns a mutable reference to the underlying integer.","Get non-atomic access to a &mut [AtomicBool] slice.","Get non-atomic access to a &mut [AtomicI8] slice","Get non-atomic access to a &mut [AtomicU8] slice","","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Calls U::from(self).","Consumes the atomic and returns the contained value.","Consumes the atomic and returns the contained value.","Consumes the atomic and returns the contained value.","Loads a value from the bool.","Loads a value from the atomic integer.","Loads a value from the atomic integer.","Creates a new AtomicBool.","Creates a new atomic integer.","Creates a new atomic integer.","Signals the processor that it is inside a busy-wait …","Stores a value into the bool.","Stores a value into the atomic integer.","Stores a value into the atomic integer.","","","","","","","","","","","",""],"i":[0,7,7,0,0,0,0,7,7,7,1,3,5,1,7,3,5,1,7,3,5,7,0,1,3,5,7,0,1,7,3,5,1,1,7,3,3,5,5,1,3,5,1,3,5,1,3,5,1,3,5,1,3,5,7,1,7,3,5,1,3,5,1,3,5,1,3,5,0,1,3,5,1,7,3,5,1,7,3,5,1,7,3,5],"f":[0,0,0,0,0,0,0,0,0,0,[1,2],[3,4],[5,6],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[[]],[7,7],[7],[[],1],[[],3],[[],5],[[7,7],2],[7],[[1,8],[[10,[9]]]],[[7,8],[[10,[9]]]],[[3,8],[[10,[9]]]],[[5,8],[[10,[9]]]],[2,1],[[]],[[]],[[]],[4,3],[6,5],[[]],[2,1],[4,3],[6,5],[[[11,[2]]],[[11,[1]]]],[[[11,[4]]],[[11,[3]]]],[[[11,[6]]],[[11,[5]]]],[2,1],[4,3],[6,5],[1,2],[3,4],[5,6],[[[11,[1]]],[[11,[2]]]],[[[11,[3]]],[[11,[4]]]],[[[11,[5]]],[[11,[6]]]],[[7,12]],[[]],[[]],[[]],[[]],[1,2],[3,4],[5,6],[[1,7],2],[[3,7],4],[[5,7],6],[2,1],[4,3],[6,5],[[]],[[1,2,7]],[[3,4,7]],[[5,6,7]],[[],10],[[],10],[[],10],[[],10],[[],10],[[],10],[[],10],[[],10],[[],13],[[],13],[[],13],[[],13]],"c":[0,68],"p":[[3,"AtomicBool"],[15,"bool"],[3,"AtomicI8"],[15,"i8"],[3,"AtomicU8"],[15,"u8"],[4,"Ordering"],[3,"Formatter"],[3,"Error"],[4,"Result"],[15,"slice"],[8,"Hasher"],[3,"TypeId"]]},\ "byteorder":{"doc":"This crate provides convenience methods for encoding and …","t":"GEIGEGGLLLLLLLLLLLLLLLLKLLKLLLLLLKLLKLLKLLKLLLLLLLLLLLLLLLLLLLLLLLLLLKLLKLLKLLKLLLKLLKLLLKLLKLLKLLKLLLLLLLLLLLLLLLLLLLLLLLLLKLLKLLKLLKLLLKLLKLLLKLLKLLKLLKLL","n":["BE","BigEndian","ByteOrder","LE","LittleEndian","NativeEndian","NetworkEndian","borrow","borrow","borrow_mut","borrow_mut","clone","clone","cmp","cmp","default","default","eq","eq","fmt","fmt","from","from","from_slice_f32","from_slice_f32","from_slice_f32","from_slice_f64","from_slice_f64","from_slice_f64","from_slice_i128","from_slice_i16","from_slice_i32","from_slice_i64","from_slice_u128","from_slice_u128","from_slice_u128","from_slice_u16","from_slice_u16","from_slice_u16","from_slice_u32","from_slice_u32","from_slice_u32","from_slice_u64","from_slice_u64","from_slice_u64","hash","hash","into","into","partial_cmp","partial_cmp","read_f32","read_f32_into","read_f32_into_unchecked","read_f64","read_f64_into","read_f64_into_unchecked","read_i128","read_i128_into","read_i16","read_i16_into","read_i24","read_i32","read_i32_into","read_i48","read_i64","read_i64_into","read_int","read_int128","read_u128","read_u128","read_u128","read_u128_into","read_u128_into","read_u128_into","read_u16","read_u16","read_u16","read_u16_into","read_u16_into","read_u16_into","read_u24","read_u32","read_u32","read_u32","read_u32_into","read_u32_into","read_u32_into","read_u48","read_u64","read_u64","read_u64","read_u64_into","read_u64_into","read_u64_into","read_uint","read_uint","read_uint","read_uint128","read_uint128","read_uint128","try_from","try_from","try_into","try_into","type_id","type_id","write_f32","write_f32_into","write_f64","write_f64_into","write_i128","write_i128_into","write_i16","write_i16_into","write_i24","write_i32","write_i32_into","write_i48","write_i64","write_i64_into","write_i8_into","write_int","write_int128","write_u128","write_u128","write_u128","write_u128_into","write_u128_into","write_u128_into","write_u16","write_u16","write_u16","write_u16_into","write_u16_into","write_u16_into","write_u24","write_u32","write_u32","write_u32","write_u32_into","write_u32_into","write_u32_into","write_u48","write_u64","write_u64","write_u64","write_u64_into","write_u64_into","write_u64_into","write_uint","write_uint","write_uint","write_uint128","write_uint128","write_uint128"],"q":[[0,"byteorder"]],"d":["A type alias for BigEndian.","Defines big-endian serialization.","ByteOrder describes types that can serialize integers as …","A type alias for LittleEndian.","Defines little-endian serialization.","Defines system native-endian serialization.","Defines network byte order serialization.","","","","","","","","","","","","","","","Returns the argument unchanged.","Returns the argument unchanged.","Converts the given slice of IEEE754 single-precision (4 …","","","Converts the given slice of IEEE754 double-precision (8 …","","","Converts the given slice of signed 128 bit integers to a …","Converts the given slice of signed 16 bit integers to a …","Converts the given slice of signed 32 bit integers to a …","Converts the given slice of signed 64 bit integers to a …","Converts the given slice of unsigned 128 bit integers to a …","","","Converts the given slice of unsigned 16 bit integers to a …","","","Converts the given slice of unsigned 32 bit integers to a …","","","Converts the given slice of unsigned 64 bit integers to a …","","","","","Calls U::from(self).","Calls U::from(self).","","","Reads a IEEE754 single-precision (4 bytes) floating point …","Reads IEEE754 single-precision (4 bytes) floating point …","DEPRECATED.","Reads a IEEE754 double-precision (8 bytes) floating point …","Reads IEEE754 single-precision (4 bytes) floating point …","DEPRECATED.","Reads a signed 128 bit integer from buf.","Reads signed 128 bit integers from src into dst.","Reads a signed 16 bit integer from buf.","Reads signed 16 bit integers from src to dst.","Reads a signed 24 bit integer from buf, stored in i32.","Reads a signed 32 bit integer from buf.","Reads signed 32 bit integers from src into dst.","Reads a signed 48 bit integer from buf, stored in i64.","Reads a signed 64 bit integer from buf.","Reads signed 64 bit integers from src into dst.","Reads a signed n-bytes integer from buf.","Reads a signed n-bytes integer from buf.","Reads an unsigned 128 bit integer from buf.","","","Reads unsigned 128 bit integers from src into dst.","","","Reads an unsigned 16 bit integer from buf.","","","Reads unsigned 16 bit integers from src into dst.","","","Reads an unsigned 24 bit integer from buf, stored in u32.","Reads an unsigned 32 bit integer from buf.","","","Reads unsigned 32 bit integers from src into dst.","","","Reads an unsigned 48 bit integer from buf, stored in u64.","Reads an unsigned 64 bit integer from buf.","","","Reads unsigned 64 bit integers from src into dst.","","","Reads an unsigned n-bytes integer from buf.","","","Reads an unsigned n-bytes integer from buf.","","","","","","","","","Writes a IEEE754 single-precision (4 bytes) floating point …","Writes IEEE754 single-precision (4 bytes) floating point …","Writes a IEEE754 double-precision (8 bytes) floating point …","Writes IEEE754 double-precision (8 bytes) floating point …","Writes a signed 128 bit integer n to buf.","Writes signed 128 bit integers from src into dst.","Writes a signed 16 bit integer n to buf.","Writes signed 16 bit integers from src into dst.","Writes a signed 24 bit integer n to buf, stored in i32.","Writes a signed 32 bit integer n to buf.","Writes signed 32 bit integers from src into dst.","Writes a signed 48 bit integer n to buf, stored in i64.","Writes a signed 64 bit integer n to buf.","Writes signed 64 bit integers from src into dst.","Writes signed 8 bit integers from src into dst.","Writes a signed integer n to buf using only nbytes.","Writes a signed integer n to buf using only nbytes.","Writes an unsigned 128 bit integer n to buf.","","","Writes unsigned 128 bit integers from src into dst.","","","Writes an unsigned 16 bit integer n to buf.","","","Writes unsigned 16 bit integers from src into dst.","","","Writes an unsigned 24 bit integer n to buf, stored in u32.","Writes an unsigned 32 bit integer n to buf.","","","Writes unsigned 32 bit integers from src into dst.","","","Writes an unsigned 48 bit integer n to buf, stored in u64.","Writes an unsigned 64 bit integer n to buf.","","","Writes unsigned 64 bit integers from src into dst.","","","Writes an unsigned integer n to buf using only nbytes.","","","Writes an unsigned integer n to buf using only nbytes.","",""],"i":[0,0,0,0,0,0,0,1,2,1,2,1,2,1,2,1,2,1,2,1,2,1,2,25,1,2,25,1,2,25,25,25,25,25,1,2,25,1,2,25,1,2,25,1,2,1,2,1,2,1,2,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,1,2,25,1,2,25,1,2,25,1,2,25,25,1,2,25,1,2,25,25,1,2,25,1,2,25,1,2,25,1,2,1,2,1,2,1,2,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,25,1,2,25,1,2,25,1,2,25,1,2,25,25,1,2,25,1,2,25,25,1,2,25,1,2,25,1,2,25,1,2],"f":[0,0,0,0,0,0,0,[[]],[[]],[[]],[[]],[1,1],[2,2],[[1,1],3],[[2,2],3],[[],1],[[],2],[[1,1],4],[[2,2],4],[[1,5],6],[[2,5],6],[[]],[[]],[[[8,[7]]]],[[[8,[7]]]],[[[8,[7]]]],[[[8,[9]]]],[[[8,[9]]]],[[[8,[9]]]],[[[8,[10]]]],[[[8,[11]]]],[[[8,[12]]]],[[[8,[13]]]],[[[8,[14]]]],[[[8,[14]]]],[[[8,[14]]]],[[[8,[15]]]],[[[8,[15]]]],[[[8,[15]]]],[[[8,[16]]]],[[[8,[16]]]],[[[8,[16]]]],[[[8,[17]]]],[[[8,[17]]]],[[[8,[17]]]],[[1,18]],[[2,18]],[[]],[[]],[[1,1],[[19,[3]]]],[[2,2],[[19,[3]]]],[[[8,[20]]],7],[[[8,[20]],[8,[7]]]],[[[8,[20]],[8,[7]]]],[[[8,[20]]],9],[[[8,[20]],[8,[9]]]],[[[8,[20]],[8,[9]]]],[[[8,[20]]],10],[[[8,[20]],[8,[10]]]],[[[8,[20]]],11],[[[8,[20]],[8,[11]]]],[[[8,[20]]],12],[[[8,[20]]],12],[[[8,[20]],[8,[12]]]],[[[8,[20]]],13],[[[8,[20]]],13],[[[8,[20]],[8,[13]]]],[[[8,[20]],21],13],[[[8,[20]],21],10],[[[8,[20]]],14],[[[8,[20]]],14],[[[8,[20]]],14],[[[8,[20]],[8,[14]]]],[[[8,[20]],[8,[14]]]],[[[8,[20]],[8,[14]]]],[[[8,[20]]],15],[[[8,[20]]],15],[[[8,[20]]],15],[[[8,[20]],[8,[15]]]],[[[8,[20]],[8,[15]]]],[[[8,[20]],[8,[15]]]],[[[8,[20]]],16],[[[8,[20]]],16],[[[8,[20]]],16],[[[8,[20]]],16],[[[8,[20]],[8,[16]]]],[[[8,[20]],[8,[16]]]],[[[8,[20]],[8,[16]]]],[[[8,[20]]],17],[[[8,[20]]],17],[[[8,[20]]],17],[[[8,[20]]],17],[[[8,[20]],[8,[17]]]],[[[8,[20]],[8,[17]]]],[[[8,[20]],[8,[17]]]],[[[8,[20]],21],17],[[[8,[20]],21],17],[[[8,[20]],21],17],[[[8,[20]],21],14],[[[8,[20]],21],14],[[[8,[20]],21],14],[[],22],[[],22],[[],22],[[],22],[[],23],[[],23],[[[8,[20]],7]],[[[8,[7]],[8,[20]]]],[[[8,[20]],9]],[[[8,[9]],[8,[20]]]],[[[8,[20]],10]],[[[8,[10]],[8,[20]]]],[[[8,[20]],11]],[[[8,[11]],[8,[20]]]],[[[8,[20]],12]],[[[8,[20]],12]],[[[8,[12]],[8,[20]]]],[[[8,[20]],13]],[[[8,[20]],13]],[[[8,[13]],[8,[20]]]],[[[8,[24]],[8,[20]]]],[[[8,[20]],13,21]],[[[8,[20]],10,21]],[[[8,[20]],14]],[[[8,[20]],14]],[[[8,[20]],14]],[[[8,[14]],[8,[20]]]],[[[8,[14]],[8,[20]]]],[[[8,[14]],[8,[20]]]],[[[8,[20]],15]],[[[8,[20]],15]],[[[8,[20]],15]],[[[8,[15]],[8,[20]]]],[[[8,[15]],[8,[20]]]],[[[8,[15]],[8,[20]]]],[[[8,[20]],16]],[[[8,[20]],16]],[[[8,[20]],16]],[[[8,[20]],16]],[[[8,[16]],[8,[20]]]],[[[8,[16]],[8,[20]]]],[[[8,[16]],[8,[20]]]],[[[8,[20]],17]],[[[8,[20]],17]],[[[8,[20]],17]],[[[8,[20]],17]],[[[8,[17]],[8,[20]]]],[[[8,[17]],[8,[20]]]],[[[8,[17]],[8,[20]]]],[[[8,[20]],17,21]],[[[8,[20]],17,21]],[[[8,[20]],17,21]],[[[8,[20]],14,21]],[[[8,[20]],14,21]],[[[8,[20]],14,21]]],"c":[53,56],"p":[[4,"BigEndian"],[4,"LittleEndian"],[4,"Ordering"],[15,"bool"],[3,"Formatter"],[6,"Result"],[15,"f32"],[15,"slice"],[15,"f64"],[15,"i128"],[15,"i16"],[15,"i32"],[15,"i64"],[15,"u128"],[15,"u16"],[15,"u32"],[15,"u64"],[8,"Hasher"],[4,"Option"],[15,"u8"],[15,"usize"],[4,"Result"],[3,"TypeId"],[15,"i8"],[8,"ByteOrder"]]},\ diff --git a/docs/doc/settings.html b/docs/doc/settings.html index d426141..18d1924 100644 --- a/docs/doc/settings.html +++ b/docs/doc/settings.html @@ -1 +1 @@ -Rustdoc settings

    Rustdoc settings

    Back
    \ No newline at end of file +Rustdoc settings

    Rustdoc settings

    Back
    \ No newline at end of file diff --git a/docs/doc/src/arduboy_rust/hardware/buttons.rs.html b/docs/doc/src/arduboy_rust/hardware/buttons.rs.html index 0583ac3..47f650f 100644 --- a/docs/doc/src/arduboy_rust/hardware/buttons.rs.html +++ b/docs/doc/src/arduboy_rust/hardware/buttons.rs.html @@ -67,6 +67,10 @@ 67 68 69 +70 +71 +72 +73

    //! A list of all six buttons available on the Arduboy
     /// Just a `const` for the UP button
     pub const UP: ButtonSet = ButtonSet {
    @@ -92,6 +96,10 @@
     pub const B: ButtonSet = ButtonSet {
         flag_set: 0b00000100,
     };
    +/// Just a `const` for the any
    +pub const ANY_BUTTON: ButtonSet = ButtonSet {
    +    flag_set: 0b11111111,
    +};
     /// Just a `const` for the UP button
     pub const UP_BUTTON: ButtonSet = UP;
     /// Just a `const` for the RIGHT button
    diff --git a/docs/doc/src/arduboy_rust/library/arduboy2.rs.html b/docs/doc/src/arduboy_rust/library/arduboy2.rs.html
    index cf9a5dd..38ceef4 100644
    --- a/docs/doc/src/arduboy_rust/library/arduboy2.rs.html
    +++ b/docs/doc/src/arduboy_rust/library/arduboy2.rs.html
    @@ -798,15 +798,49 @@
     798
     799
     800
    +801
    +802
    +803
    +804
    +805
    +806
    +807
    +808
    +809
    +810
    +811
    +812
    +813
    +814
    +815
    +816
    +817
    +818
    +819
    +820
    +821
    +822
    +823
    +824
    +825
    +826
    +827
    +828
    +829
    +830
    +831
    +832
     
    //! 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.
     #![allow(dead_code)]
    +
     use crate::hardware::buttons::ButtonSet;
     use crate::print::Printable;
     use core::ffi::{c_char, c_int, c_long, c_size_t, c_uchar, c_uint, c_ulong};
     use core::mem;
     use core::ops::Not;
    +
     /// The standard font size of the arduboy
     ///
     /// this is to calculate with it.
    @@ -829,6 +863,7 @@
         /// Led is on
         White,
     }
    +
     impl Not for Color {
         type Output = Self;
     
    @@ -839,6 +874,7 @@
             }
         }
     }
    +
     /// This struct is used by a few Arduboy functions.
     #[derive(Debug, Clone, Copy)]
     pub struct Rect {
    @@ -851,6 +887,7 @@
         /// Rect height
         pub height: u8,
     }
    +
     /// This struct is used by a few Arduboy functions.
     #[derive(Debug, Clone, Copy)]
     pub struct Point {
    @@ -862,6 +899,7 @@
     
     /// This is the struct to interact in a save way with the Arduboy2 C++ library.
     pub struct Arduboy2 {}
    +
     impl Arduboy2 {
         /// gives you a new instance of the [Arduboy2]
         /// ## Example
    @@ -1148,7 +1186,7 @@
         /// ```
         /// #![allow(non_upper_case_globals)]
         /// use arduboy_rust::prelude::*;
    -    /// const arduboy:Arduboy2 =Arduboy2::new();
    +    /// const arduboy: Arduboy2 = Arduboy2::new();
         /// let value: i16 = 42;
         ///
         /// arduboy.print(b"Hello World\n\0"[..]); // Prints "Hello World" and then sets the
    @@ -1311,10 +1349,10 @@
         ///Parameters
         ///-    color	The name of the LED to set. The value given should be one of RED_LED, GREEN_LED or BLUE_LED.
         ///-    val	The brightness value for the LED, from 0 to 255.
    -    /// 
    +    ///
         ///**Note**
         ///> In order to use this function, the 3 parameter version must first be called at least once, in order to initialize the hardware.
    -    /// 
    +    ///
         ///This 2 parameter version of the function will set the brightness of a single LED within the RGB LED without affecting the current brightness of the other two. See the description of the 3 parameter version of this function for more details on the RGB LED.
         pub fn set_rgb_led_single(&self, color: u8, val: u8) {
             unsafe { set_rgb_led_single(color, val) }
    @@ -1350,7 +1388,7 @@
         ///```
         /// #![allow(non_upper_case_globals)]
         /// use arduboy_rust::prelude::*;
    -    /// const arduboy:Arduboy2 =Arduboy2::new();
    +    /// const arduboy: Arduboy2 = Arduboy2::new();
         ///
         /// if arduboy.everyXFrames(5) {
         ///     if arduboy.pressed(A_BUTTON) {
    @@ -1436,10 +1474,30 @@
         pub fn idle(&self) {
             unsafe { idle() }
         }
    +    ///Get the current state of all buttons as a bitmask.
    +    ///
    +    ///### Returns
    +    ///A bitmask of the state of all the buttons.
    +    ///
    +    ///The returned mask contains a bit for each button. For any pressed button, its bit will be 1. For released buttons their associated bits will be 0.
    +    ///
    +    ///The following defined mask values should be used for the buttons:
    +    /// LEFT_BUTTON, RIGHT_BUTTON, UP_BUTTON, DOWN_BUTTON, A_BUTTON, B_BUTTON 
    +    pub fn buttons_state(&self) -> u8 {
    +        unsafe { arduboy_buttons_state() }
    +    }
    +    ///Exit the sketch and start the bootloader.
    +    ///
    +    ///The sketch will exit and the bootloader will be started in command mode. The effect will be similar to pressing the reset button.
    +    ///
    +    ///This function is intended to be used to allow uploading a new sketch, when the USB code has been removed to gain more code space. Ideally, the sketch would present a "New Sketch Upload" menu or prompt telling the user to "Press and hold the DOWN button when the procedure to upload a new sketch has been initiated". 
    +    ///The sketch would then wait for the DOWN button to be pressed and then call this function.
    +    pub fn exit_to_bootloader(&self) {
    +        unsafe { arduboy_exit_to_bootloader() }
    +    }
     }
     
     extern "C" {
    -
         #[link_name = "arduboy_begin"]
         fn begin();
     
    @@ -1597,5 +1655,11 @@
     
         #[link_name = "arduboy_set_rgb_led"]
         fn set_rgb_led(red: c_uchar, green: c_uchar, blue: c_uchar);
    +
    +    #[link_name = "arduboy_buttons_state"]
    +    fn arduboy_buttons_state() -> u8;
    +
    +    #[link_name = "arduboy_exit_to_bootloader"]
    +    fn arduboy_exit_to_bootloader();
     }
     
    \ No newline at end of file diff --git a/docs/doc/src/arduboy_rust/library/arduboyfx/fx.rs.html b/docs/doc/src/arduboy_rust/library/arduboyfx/fx.rs.html index b6fdc77..606eada 100644 --- a/docs/doc/src/arduboy_rust/library/arduboyfx/fx.rs.html +++ b/docs/doc/src/arduboy_rust/library/arduboyfx/fx.rs.html @@ -113,22 +113,42 @@ 113 114 115 +116 +117 +118 +119 +120 +121 +122 +123 +124 +125 +126 +127 +128 +129 +130 +131 +132 +133 +134 +135 +136
    //! Functions given by the ArduboyFX library.
     //!
     //! You can use the 'FX::' module to access the functions after the import of the prelude
     //! ```
     //! use arduboy_rust::prelude::*;
     //!
    -//! fn setup(){
    +//! fn setup() {
     //!     FX::begin()
     //! }
    -//!
     //! ```
     //! You will need to uncomment the ArduboyFX_Library in the import_config.h file.
     #![allow(non_upper_case_globals)]
     use super::drawable_number::DrawableNumber;
     use super::drawable_string::DrawableString;
    -use core::ffi::{c_int, c_long, c_size_t, c_uchar, c_uint, c_ulong};
    +use core::ffi::{c_int, c_size_t, c_uchar, c_uint, c_ulong};
     pub fn begin() {
         unsafe { arduboyfx_begin() }
     }
    @@ -181,13 +201,29 @@
     pub fn set_cursor_y(y: i16) {
         unsafe { arduboyfx_set_cursor_y(y) }
     }
    -pub fn set_cursor_range(left: i32, wrap: i32) {
    +pub fn set_cursor_range(left: i16, wrap: i16) {
         unsafe { arduboyfx_set_cursor_range(left, wrap) }
     }
     pub fn set_font(address: u32, mode: u8) {
         unsafe { arduboyfx_set_font(address, mode) }
     }
    +pub fn set_font_mode(mode: u8) {
    +    unsafe { arduboyfx_set_font_mode(mode) };
    +}
    +pub fn load_game_state<T>(your_struct: &mut T) -> u8 {
    +    let pointer = your_struct as *mut T;
    +    let object_pointer = pointer as *mut u8;
    +    let object_size = core::mem::size_of::<T>();
     
    +    unsafe { arduboyfx_load_game_state(object_pointer, object_size) }
    +}
    +pub fn save_game_state<T>(your_struct: &T) {
    +    let pointer = your_struct as *const T;
    +    let object_pointer = pointer as *const u8;
    +    let object_size = core::mem::size_of::<T>();
    +
    +    unsafe { arduboyfx_save_game_state(object_pointer, object_size) }
    +}
     extern "C" {
         #[link_name = "arduboyfx_begin"]
         fn arduboyfx_begin();
    @@ -222,10 +258,16 @@
         fn arduboyfx_set_cursor_y(y: c_int);
         #[link_name = "arduboyfx_set_font"]
         fn arduboyfx_set_font(address: c_ulong, mode: c_uchar);
    +    #[link_name = "arduboyfx_set_font_mode"]
    +    fn arduboyfx_set_font_mode(mode: c_uchar);
         #[link_name = "arduboyfx_set_cursor_range"]
    -    fn arduboyfx_set_cursor_range(left: c_long, wrap: c_long);
    +    fn arduboyfx_set_cursor_range(left: c_int, wrap: c_int);
         #[link_name = "arduboyfx_draw_char"]
         fn arduboyfx_draw_char(c: c_uchar);
    +    #[link_name = "arduboyfx_load_game_state"]
    +    fn arduboyfx_load_game_state(object: *mut u8, size: usize) -> u8;
    +    #[link_name = "arduboyfx_save_game_state"]
    +    fn arduboyfx_save_game_state(object: *const u8, size: usize);
     
     }
     
    \ No newline at end of file diff --git a/docs/doc/src/arduboy_rust/prelude.rs.html b/docs/doc/src/arduboy_rust/prelude.rs.html index eb35ed9..9dcd067 100644 --- a/docs/doc/src/arduboy_rust/prelude.rs.html +++ b/docs/doc/src/arduboy_rust/prelude.rs.html @@ -36,9 +36,6 @@ 36 37 38 -39 -40 -41
    //! This is the important one to use this library effective in your project
     //!
     //! Import the module:
    @@ -52,23 +49,20 @@
     pub use crate::heapless::{LinearMap, String, Vec};
     pub use crate::library::arduboy2::{self, *};
     pub use crate::library::arduboy_tones::{self, ArduboyTones};
    +pub use crate::library::arduboyfx::{self, fx};
     pub use crate::library::arduino::*;
     pub use crate::library::ardvoice::{self, ArdVoice};
     pub use crate::library::c::*;
    -#[doc(hidden)]
    -pub use crate::library::arduboyfx::{ fx as FX};
    -pub use crate::library::arduboyfx::{self};
     pub use crate::library::eeprom::{EEPROM, EEPROMBYTE, EEPROMBYTECHECKLESS};
     #[doc(hidden)]
     pub use crate::library::progmem::Pstring;
     pub use crate::library::sprites;
     pub use crate::print::*;
    +#[doc(inline)]
    +pub use crate::serial_print as serial;
     pub use crate::{
         f, get_ardvoice_tone_addr, get_sprite_addr, get_string_addr, get_tones_addr, progmem,
    -
     };
    -#[doc(inline)]
    -pub use crate::{serial_print as serial};
     use core::cmp;
     pub use core::ffi::{
         c_char, c_double, c_float, c_int, c_long, c_longlong, c_size_t, c_uchar, c_uint, c_ulong,
    diff --git a/docs/doc/src/arduboy_rust/serial_print.rs.html b/docs/doc/src/arduboy_rust/serial_print.rs.html
    index c00cb92..dd2eaa8 100644
    --- a/docs/doc/src/arduboy_rust/serial_print.rs.html
    +++ b/docs/doc/src/arduboy_rust/serial_print.rs.html
    @@ -410,6 +410,12 @@
     410
     411
     412
    +413
    +414
    +415
    +416
    +417
    +418
     
    //! This is the Module to interact in a save way with the Arduino Serial C++ library.
     //!
     //! You will need to uncomment the Arduino_Serial_Library in the import_config.h file.
    @@ -435,6 +441,7 @@
     ///
     ///Example
     /// ```
    +/// use arduboy_rust::prelude::*;
     /// let value: i16 = 42;
     ///
     /// serial::print(b"Hello World\n\0"[..]); // Prints "Hello World" and then sets the
    @@ -454,6 +461,7 @@
     ///
     ///Example
     /// ```
    +/// use arduboy_rust::prelude::*;
     /// let value: i16 = 42;
     ///
     /// serial::print(b"Hello World\n\0"[..]); // Prints "Hello World" and then sets the
    @@ -470,6 +478,7 @@
     ///
     /// ### Example
     /// ```
    +/// use arduboy_rust::prelude::*;
     /// serial::begin(9600)
     /// ```
     pub fn begin(baud_rates: u32) {
    @@ -481,10 +490,11 @@
     }
     /// Reads incoming serial data.
     /// Use only inside of [available()]:
    -/// ```
    -/// if (serial::available() > 0) {
    +///```
    +/// use arduboy_rust::prelude::*;
    +/// if serial::available() > 0 {
     ///     // read the incoming byte:
    -///     let incoming_byte: i16 = Serial::read();
    +///     let incoming_byte: i16 = serial::read();
     ///
     ///     // say what you got:
     ///     serial::print("I received: ");
    @@ -501,23 +511,24 @@
     ///
     /// Use only inside of [available()]:
     /// ```
    -/// if (Serial::available() > 0) {
    +/// use arduboy_rust::prelude::*;
    +/// if serial::available() > 0 {
     ///     // read the incoming byte:
    -///     let incomingByte: &str = Serial::read_as_utf8_str();
    +///     let incoming_byte: &str = serial::read_as_utf8_str();
     ///
     ///     // say what you got:
    -///     Serial::print("I received: ");
    -///     Serial::println(incomingByte);
    +///     serial::print("I received: ");
    +///     serial::println(incoming_byte);
     /// }
     /// ```
     /// ### Returns
     ///
     ///The first byte of incoming serial data available (or -1 if no data is available). Data type: &str.
     pub fn read_as_utf8_str() -> &'static str {
    -    let intcoming_byte = unsafe { serial_read() };
    +    let incoming_byte = unsafe { serial_read() };
         static mut L: [u8; 2] = [0, 0];
         unsafe {
    -        L[0] = intcoming_byte as u8;
    +        L[0] = incoming_byte as u8;
         }
         unsafe { core::str::from_utf8(&L).unwrap() }
     }
    @@ -525,13 +536,14 @@
     /// Get the number of bytes (characters) available for reading from the serial port. This is data that’s already arrived and stored in the serial receive buffer (which holds 64 bytes).
     /// ### Example
     /// ```
    -/// if (Serial::available() > 0) {
    +/// use arduboy_rust::prelude::*;
    +/// if serial::available() > 0 {
     ///     // read the incoming byte:
    -///     incomingByte = Serial::read();
    +///     let incoming_byte = serial::read();
     ///
     ///     // say what you got:
    -///     Serial::print("I received: ");
    -///     Serial::println(incomingByte);
    +///     serial::print("I received: ");
    +///     serial::println(incoming_byte);
     /// }
     /// ```
     pub fn available() -> i16 {
    @@ -630,7 +642,7 @@
     
         fn default_parameters() -> Self::Parameters {}
     }
    -impl<const N: usize> Serialprintlnable for crate::heapless::String<N> {
    +impl<const N: usize> Serialprintlnable for heapless::String<N> {
         type Parameters = ();
     
         fn println_2(self, _params: Self::Parameters) {
    @@ -773,7 +785,7 @@
     
         fn default_parameters() -> Self::Parameters {}
     }
    -impl<const N: usize> Serialprintable for crate::heapless::String<N> {
    +impl<const N: usize> Serialprintable for heapless::String<N> {
         type Parameters = ();
     
         fn print_2(self, _params: Self::Parameters) {
    diff --git a/import_config.h b/import_config.h
    index aedc54b..3e09dc4 100644
    --- a/import_config.h
    +++ b/import_config.h
    @@ -17,7 +17,7 @@
     
     #define Arduboy2_Library ;
     // #define ArduboyTones_Library ;
    - #define ArduboyFX_Library ;
    +// #define ArduboyFX_Library ;
     // #define ArdVoice_Library ;
     #define EEPROM_Library ;
     #define Arduino_Library ;