Skip to content

Commit

Permalink
Update drv_st7735.c
Browse files Browse the repository at this point in the history
  • Loading branch information
openshwprojects committed Dec 4, 2024
1 parent ee03aae commit e18895a
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/driver/drv_st7735.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ as well as Adafruit raw 1.8" TFT display
#include "drv_st7735.h"
#ifdef PLATFORM_ESPIDF
#include "driver/gpio.h"
#include "soc/gpio_reg.h.h"
#endif


Expand Down Expand Up @@ -285,9 +286,10 @@ Bcmd[] = { // Initialization commands for 7735B screens
#define digitalPinToPort(pin) (0)
#if WINDOWS
#define portOutputRegister(port) (0)
#else
#elif PLATFORM_ESPIDF
#define portOutputRegister(port) ((volatile uint32_t *)GPIO_OUT_REG)

#else
#define portOutputRegister(port) (0)
#endif
#define digitalPinToBitMask(pin) (1UL << (pin))

Expand Down

0 comments on commit e18895a

Please sign in to comment.