run AStyle
This commit is contained in:
parent
25c644f012
commit
07a66b0505
@ -43,8 +43,7 @@ class Scanner_ShiftRegsPISOMultiRow : public ScannerInterface
|
|||||||
private:
|
private:
|
||||||
const bool strobeOn; //logic level of strobe on, active state HIGH or LOW
|
const bool strobeOn; //logic level of strobe on, active state HIGH or LOW
|
||||||
const bool strobeOff; //logic level of strobe off, complement of strobeOn
|
const bool strobeOff; //logic level of strobe off, complement of strobeOn
|
||||||
const uint8_t slaveSelect; //controller's pin number that is
|
const uint8_t slaveSelect;//controller pin number connected to shift register SHIFT-LOAD pin
|
||||||
// connected to shift register's SHIFT-LOAD pin
|
|
||||||
const uint8_t byte_count; //number of bytes to read from shift registers
|
const uint8_t byte_count; //number of bytes to read from shift registers
|
||||||
public:
|
public:
|
||||||
Scanner_ShiftRegsPISOMultiRow(const bool strobeOn,
|
Scanner_ShiftRegsPISOMultiRow(const bool strobeOn,
|
||||||
|
@ -45,8 +45,7 @@ Controller's MISO pin is connected to shift register's serial output (QH) pin
|
|||||||
class Scanner_ShiftRegsPISOSingleRow : public ScannerInterface
|
class Scanner_ShiftRegsPISOSingleRow : public ScannerInterface
|
||||||
{
|
{
|
||||||
private:
|
private:
|
||||||
const uint8_t slaveSelect; //controller's pin number that is
|
const uint8_t slaveSelect;//controller pin number connected to shift register SHIFT-LOAD pin
|
||||||
// connected to shift register's SHIFT-LOAD pin
|
|
||||||
const uint8_t byte_count; //number of bytes to read from shift registers
|
const uint8_t byte_count; //number of bytes to read from shift registers
|
||||||
public:
|
public:
|
||||||
Scanner_ShiftRegsPISOSingleRow(const bool strobeOn,
|
Scanner_ShiftRegsPISOSingleRow(const bool strobeOn,
|
||||||
|
@ -68,7 +68,8 @@ Row row_L1(scanner_L, 1, ptrsKeys_L1, KEY_COUNT_L1);
|
|||||||
Key* ptrsKeys_R0[] = { &s_6, &s_5, &s_4, &s_3, //shift register on right
|
Key* ptrsKeys_R0[] = { &s_6, &s_5, &s_4, &s_3, //shift register on right
|
||||||
&s_c, &s_d, &s_e, &s_f,
|
&s_c, &s_d, &s_e, &s_f,
|
||||||
&s_2, &s_1, &s_0, &s_g, //shift register on left
|
&s_2, &s_1, &s_0, &s_g, //shift register on left
|
||||||
&s_a, &s_b }; //unused input pins are grounded
|
&s_a, &s_b
|
||||||
|
}; //unused input pins are grounded
|
||||||
Row row_R0(scanner_R, 0, ptrsKeys_R0, sizeof(ptrsKeys_R0)/sizeof(*ptrsKeys_R0));
|
Row row_R0(scanner_R, 0, ptrsKeys_R0, sizeof(ptrsKeys_R0)/sizeof(*ptrsKeys_R0));
|
||||||
|
|
||||||
// ################### MAIN ####################
|
// ################### MAIN ####################
|
||||||
|
Reference in New Issue
Block a user