Read second set of buttons

master
D4VID 3 months ago
parent 015769cbdc
commit bc96bad885

@ -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)) };
}
}

Loading…
Cancel
Save