Skip to content

Commit

Permalink
q
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Dec 4, 2024
1 parent 57f5a8d commit 5d12ab5
Showing 1 changed file with 15 additions and 4 deletions.
19 changes: 15 additions & 4 deletions src/driver/drv_st7735.c
Original file line number Diff line number Diff line change
Expand Up @@ -318,12 +318,12 @@ Bcmd[] = { // Initialization commands for 7735B screens
*csport &= ~cspinmask;
if (_rst)
{
//pinMode(_rst, OUTPUT);
//digitalWrite(_rst, HIGH);
HAL_PIN_Setup_Output(_rst, OUTPUT);
HAL_PIN_SetOutputValue(_rst, 1);
delay_ms(500);
//digitalWrite(_rst, LOW);
HAL_PIN_SetOutputValue(_rst, 0);
delay_ms(500);
//digitalWrite(_rst, HIGH);
HAL_PIN_SetOutputValue(_rst, 1);
delay_ms(500);
}

Expand Down Expand Up @@ -653,6 +653,17 @@ static commandResult_t Cmd_ST7735_Init(const void *context, const char *cmd, con

return CMD_RES_OK;
}
/*
startDriver ST7735
ST7735_Init
again:
delay_s 1
ST7735_Test
delay_s 1
ST7735_Test2
goto again
*/
void ST7735_Init() {
CMD_RegisterCommand("ST7735_Test", CMD_ST7735_Test, NULL);
CMD_RegisterCommand("ST7735_Test2", CMD_ST7735_Test2, NULL);
Expand Down

0 comments on commit 5d12ab5

Please sign in to comment.