mirror of
https://github.com/Keychron/qmk_firmware.git
synced 2024-11-29 12:17:50 +06:00
Merge pull request #156 from lalalademaxiya1/keychron_hc595_driver_fix
Updated matrix.c of some boards
This commit is contained in:
commit
af8d6b4a28
|
@ -53,7 +53,7 @@ static void HC595_output(uint16_t data) {
|
|||
uint8_t n = 1;
|
||||
uint8_t i;
|
||||
|
||||
for (i = 1; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
for (i = 0; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
writePinLow(HC595_SHCP);
|
||||
if (data & 0x1) {
|
||||
writePinHigh(HC595_DS);
|
||||
|
|
|
@ -53,7 +53,7 @@ static void HC595_output(uint16_t data) {
|
|||
uint8_t n = 1;
|
||||
uint8_t i;
|
||||
|
||||
for (i = 1; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
for (i = 0; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
writePinLow(HC595_SHCP);
|
||||
if (data & 0x1) {
|
||||
writePinHigh(HC595_DS);
|
||||
|
|
|
@ -53,7 +53,7 @@ static void HC595_output(uint16_t data) {
|
|||
uint8_t i;
|
||||
uint8_t n = 1;
|
||||
|
||||
for (i = 1; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
for (i = 0; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
writePinLow(HC595_SHCP);
|
||||
if (data & 0x1) {
|
||||
writePinHigh(HC595_DS);
|
||||
|
|
|
@ -53,7 +53,7 @@ static void HC595_output(uint16_t data) {
|
|||
uint8_t n = 1;
|
||||
uint8_t i;
|
||||
|
||||
for (i = 1; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
for (i = 0; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
writePinLow(HC595_SHCP);
|
||||
if (data & 0x1) {
|
||||
writePinHigh(HC595_DS);
|
||||
|
|
|
@ -53,7 +53,7 @@ static void HC595_output(uint16_t data) {
|
|||
uint8_t n = 1;
|
||||
uint8_t i;
|
||||
|
||||
for (i = 1; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
for (i = 0; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
writePinLow(HC595_SHCP);
|
||||
if (data & 0x1) {
|
||||
writePinHigh(HC595_DS);
|
||||
|
|
|
@ -53,7 +53,7 @@ static void HC595_output(uint32_t data) {
|
|||
uint8_t i;
|
||||
uint8_t n = 1;
|
||||
|
||||
for (i = 1; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
for (i = 0; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
writePinLow(HC595_SHCP);
|
||||
if (data & 0x1) {
|
||||
writePinHigh(HC595_DS);
|
||||
|
|
|
@ -53,7 +53,7 @@ static void HC595_output(uint16_t data) {
|
|||
uint8_t i;
|
||||
uint8_t n = 1;
|
||||
|
||||
for (i = 1; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
for (i = 0; i < (MATRIX_COLS - DIRECT_COL_NUM); i++) {
|
||||
writePinLow(HC595_SHCP);
|
||||
if (data & 0x1) {
|
||||
writePinHigh(HC595_DS);
|
||||
|
|
Loading…
Reference in New Issue
Block a user