mirror of
https://github.com/osiweb/unified_retro_keyboard.git
synced 2024-11-22 04:33:19 +00:00
Arch file support for 4-bit row address.
This commit is contained in:
parent
a2a6be49a4
commit
6e462589cc
@ -498,7 +498,7 @@ asdf_cols_t asdf_arch_read_row(uint8_t row)
|
||||
asdf_cols_t cols = 0;
|
||||
|
||||
// first, output the new row value:
|
||||
ASDF_ROW_PORT = (ASDF_ROW_PORT & ~ASDF_ROW_MASK) | row << ASDF_ROW_OFFSET;
|
||||
ASDF_ROW_PORT = (ASDF_ROW_PORT & ~ASDF_ROW_MASK) | ((row & ASDF_ROW_MASK) << ASDF_ROW_OFFSET);
|
||||
|
||||
|
||||
// read in the columns. Set LOAD mode and pulse clock.
|
||||
|
@ -179,7 +179,7 @@
|
||||
|
||||
#define ASDF_ROW_PORT PORTC
|
||||
#define ASDF_ROW_DDR DDRC
|
||||
#define ASDF_ROW_MASK 0x07
|
||||
#define ASDF_ROW_MASK 0x0f
|
||||
#define ASDF_ROW_OFFSET 0
|
||||
|
||||
#define ASDF_COL_PORT PORTB
|
||||
|
Loading…
Reference in New Issue
Block a user