pub fn clear_to(page: Page, pal8bpp: u8) {
    let pal8bpp_32 = pal8bpp as u32;
    let bulk_color = (pal8bpp_32 << 24) | (pal8bpp_32 << 16) | (pal8bpp_32 << 8) | pal8bpp_32;
    let words = match page {
      Page::Zero => Self::PAGE0_WORDS,
      Page::One => Self::PAGE1_WORDS,
    };
    for va in words.iter() {
      va.write(bulk_color)
    }
  }
/// Clear the screen to the palette index specified.
///
/// Takes ~215,000 cycles (~76% of a frame)
Clear the screen to the palette index specified.
Clear the screen to the palette index specified .
pub fn clear_to(page: Page, pal8bpp: u8) {
    let pal8bpp_32 = pal8bpp as u32;
    let bulk_color = (pal8bpp_32 << 24) | (pal8bpp_32 << 16) | (pal8bpp_32 << 8) | pal8bpp_32;
    let words = match page {
      Page::Zero => Self::PAGE0_WORDS,
      Page::One => Self::PAGE1_WORDS,
    };
    for va in words.iter() {
      va.write(bulk_color)
    }
  }
pub fn clear_to ( page : Page , pal8bpp : u8 ) { let pal8bpp_32 = pal8bpp as u32 ; let bulk_color = ( pal8bpp_32 << 24 ) | ( pal8bpp_32 << 16 ) | ( pal8bpp_32 << 8 ) | pal8bpp_32 ; let words = match page { Page :: Zero => Self :: PAGE0_WORDS , Page :: One => Self :: PAGE1_WORDS , } ; for va in words . iter ( ) { va . write ( bulk_color ) } }
Clear the screen to the palette index specified.
Clear the screen to the palette index specified .
page
Page
pal8bpp
u8
page
Page
pal8bpp
u8