reordering the crate and addind more documentation and added the docs to the same repo
This commit is contained in:
parent
6fb155dff3
commit
34c781e882
1035 changed files with 11041 additions and 18 deletions
|
@ -3,6 +3,7 @@
|
|||
//Include the Arduboy Library
|
||||
//Initialize the arduboy object
|
||||
use arduboy_rust::prelude::*;
|
||||
const arduboy: Arduboy2 = Arduboy2::new();
|
||||
//The setup() function runs once when you turn your Arduboy on
|
||||
#[no_mangle]
|
||||
pub unsafe extern "C" fn setup() {
|
||||
|
|
|
@ -2,6 +2,7 @@
|
|||
//Include the Arduboy Library
|
||||
//Initialize the arduboy object
|
||||
use arduboy_rust::prelude::*;
|
||||
const arduboy: Arduboy2 = Arduboy2::new();
|
||||
//Initialize our counter variable
|
||||
#[allow(non_upper_case_globals)]
|
||||
static mut counter: c_int = 0;
|
||||
|
|
|
@ -3,6 +3,7 @@
|
|||
//Include the Arduboy Library
|
||||
//Initialize the arduboy object
|
||||
use arduboy_rust::prelude::*;
|
||||
const arduboy: Arduboy2 = Arduboy2::new();
|
||||
//Initialize our counter variable
|
||||
|
||||
static mut counter: c_int = 0;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
//Include the Arduboy Library
|
||||
//Initialize the arduboy object
|
||||
use arduboy_rust::prelude::*;
|
||||
const arduboy: Arduboy2 = Arduboy2::new();
|
||||
|
||||
//Initialize variables used in this game
|
||||
static mut playerwin: c_int = 0;
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
//Initialize the arduboy object
|
||||
#[allow(unused_imports)]
|
||||
use arduboy_rust::prelude::*;
|
||||
const arduboy: Arduboy2 = Arduboy2::new();
|
||||
|
||||
#[link_section = ".progmem.data"]
|
||||
static background_sprite: [u8; 10] = [8, 8, 0x81, 0x00, 0x12, 0x40, 0x04, 0x11, 0x00, 0x04];
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
//Initialize the arduboy object
|
||||
#[allow(unused_imports)]
|
||||
use arduboy_rust::prelude::*;
|
||||
const arduboy: Arduboy2 = Arduboy2::new();
|
||||
|
||||
// #[link_section = ".progmem.data"]
|
||||
|
||||
|
|
|
@ -4,6 +4,7 @@
|
|||
//Include the Arduboy Library
|
||||
#[allow(unused_imports)]
|
||||
use arduboy_rust::prelude::*;
|
||||
const arduboy: Arduboy2 = Arduboy2::new();
|
||||
|
||||
// Progmem data
|
||||
|
||||
|
|
|
@ -4,10 +4,10 @@
|
|||
|
||||
//Include the Arduboy Library
|
||||
//Initialize the arduboy object
|
||||
use arduboy_rust::arduboy_tone_pitch::*;
|
||||
#[allow(unused_imports)]
|
||||
use arduboy_rust::prelude::*;
|
||||
|
||||
use arduboy_tone::arduboy_tone_pitch::*;
|
||||
const arduboy: Arduboy2 = Arduboy2::new();
|
||||
const sound: ArduboyTones = ArduboyTones::new();
|
||||
// Progmem data
|
||||
progmem!(
|
||||
static text1: [u8; _] = *b"I'm a PROGMEM Text\0";
|
||||
|
|
|
@ -2,9 +2,12 @@
|
|||
#![allow(non_upper_case_globals)]
|
||||
//Include the Arduboy Library
|
||||
//Initialize the arduboy object
|
||||
use arduboy_rust::arduboy_tone_pitch::*;
|
||||
#[allow(unused_imports)]
|
||||
use arduboy_rust::prelude::*;
|
||||
use arduboy_tone::arduboy_tone_pitch::*;
|
||||
const arduboy: Arduboy2 = Arduboy2::new();
|
||||
const sound: ArduboyTones = ArduboyTones::new();
|
||||
const NDUR: u16 = 100;
|
||||
|
||||
progmem!(
|
||||
static allNotes: [u16; _] = [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue