Updated matrix.c of some boards

This commit is contained in:
lalalademaxiya1 2023-08-03 09:44:51 +08:00
parent 02a4691a88
commit 4832cd381c
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);