diff --git a/lwcpu/src/lib.rs b/lwcpu/src/lib.rs index b1a3481..bb9785d 100644 --- a/lwcpu/src/lib.rs +++ b/lwcpu/src/lib.rs @@ -163,7 +163,11 @@ impl Buttons { pub const UP : u8 = 0b10000000; #[inline] - pub fn read() -> u8 { + pub fn read1() -> u8 { return unsafe { read_volatile(BUTTONS_POINTER) }; } + #[inline] + pub fn read2() -> u8 { + return unsafe { read_volatile(BUTTONS_POINTER.byte_offset(3)) }; + } }