Skip to content

Commit

Permalink
Update SwSetting for is31fl3743a
Browse files Browse the repository at this point in the history
Signed-off-by: Daniel Schaefer <[email protected]>
  • Loading branch information
JohnAZoidberg committed Oct 1, 2023
1 parent 9ab8797 commit b58d7f3
Showing 1 changed file with 21 additions and 17 deletions.
38 changes: 21 additions & 17 deletions src/lib.rs
Original file line number Diff line number Diff line change
Expand Up @@ -202,22 +202,26 @@ enum Page {

#[repr(u8)]
pub enum SwSetting {
// SW1-SW9 active
Sw1Sw9 = 0b0000,
// SW1-SW8 active, SW9 not active
Sw1Sw8 = 0b0001,
// SW1-SW7 active, SW8-SW9 not active
Sw1Sw7 = 0b0010,
// SW1-SW6 active, SW7-SW9 not active
Sw1Sw6 = 0b0011,
// SW1-SW5 active, SW6-SW9 not active
Sw1Sw5 = 0b0100,
// SW1-SW4 active, SW5-SW9 not activee
Sw1Sw4 = 0b0101,
// SW1-SW3 active, SW4-SW9 not active
Sw1Sw3 = 0b0110,
// SW1-SW2 active, SW3-SW9 not active
Sw1Sw2 = 0b0111,
// SW1-SW11 active
Sw1Sw11 = 0b0000,
// SW1-SW10 active, SW11 not active
Sw1Sw10 = 0b0001,
// SW1-SW7 active, SW10-SW11 not active
Sw1Sw9 = 0b0010,
// SW1-SW8 active, SW9-SW11 not active
Sw1Sw8 = 0b0011,
// SW1-SW7 active, SW8-SW11 not active
Sw1Sw7 = 0b0100,
// SW1-SW6 active, SW7-SW11 not active
Sw1Sw6 = 0b0101,
// SW1-SW5 active, SW6-SW11 not active
Sw1Sw5 = 0b0110,
// SW1-SW4 active, SW5-SW11 not activee
Sw1Sw4 = 0b0111,
// SW1-SW3 active, SW4-SW11 not active
Sw1Sw3 = 0b1000,
// SW1-SW2 active, SW3-SW11 not active
Sw1Sw2 = 0b1001,
// All CSx pins only act as current sink, no scanning
NoScan = 0b1000,
NoScan = 0b1010,
}

0 comments on commit b58d7f3

Please sign in to comment.