pub fn keypad_set_event_raw(
        &mut self,
        key_raw: u8,
        edge: keypad::Edge,
        status: keypad::Status,
    ) -> Result<(), Error> {
        let stat: u8 = (1 << ((edge as u8) + 1)) | (status as u8);
        self.write(keypad::BASE, keypad::functions::EVENT, &[key_raw, stat])
    }
/// Set or clear the trigger event on a given key.
///
/// I'm unclear on how these key numbers are typically set. For the Neotrellis,
/// there is some complicated bit mask/shifting to go from 0-16 to the
/// actual u8 values
Set or clear the trigger event on a given key.
I'm unclear on how these key numbers are typically set. For the Neotrellis,
there is some complicated bit mask/shifting to go from 0-16 to the
actual u8 values
Set or clear the trigger event on a given key . I ' m unclear on how these key numbers are typically set . For the Neotrellis there is some complicated bit mask / shifting to go from 0 - 16 to the actual u8 values
pub fn keypad_set_event_raw(
        &mut self,
        key_raw: u8,
        edge: keypad::Edge,
        status: keypad::Status,
    ) -> Result<(), Error> {
        let stat: u8 = (1 << ((edge as u8) + 1)) | (status as u8);
        self.write(keypad::BASE, keypad::functions::EVENT, &[key_raw, stat])
    }
pub fn keypad_set_event_raw ( & mut self , key_raw : u8 , edge : keypad :: Edge , status : keypad :: Status , ) -> Result < ( ) , Error > { let stat : u8 = ( 1 << ( ( edge as u8 ) + 1 ) ) | ( status as u8 ) ; self . write ( keypad :: BASE , keypad :: functions :: EVENT , & [ key_raw , stat ] ) }
Set or clear the trigger event on a given key.
Set or clear the trigger event on a given key .
&mut self
key_raw
u8
edge
keypad::Edge
status
keypad::Status