Merge pull request #156 from lalalademaxiya1/keychron_hc595_driver_fix

Updated matrix.c of some boards
This commit is contained in:
lokher 2023-08-05 21:36:52 +08:00 committed by GitHub
commit af8d6b4a28
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 7 additions and 7 deletions

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);

View File

@ -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);