mirror of
https://github.com/meshtastic/firmware.git
synced 2025-08-22 13:08:06 +00:00
trunk fmt
This commit is contained in:
parent
0aef8703b6
commit
bed2bfa074
@ -247,10 +247,10 @@ class LGFX : public lgfx::LGFX_Device
|
|||||||
cfg.use_lock = true; // Set to true to use transaction locking
|
cfg.use_lock = true; // Set to true to use transaction locking
|
||||||
cfg.dma_channel = SPI_DMA_CH_AUTO; // SPI_DMA_CH_AUTO; // Set DMA channel to use (0=not use DMA / 1=1ch / 2=ch /
|
cfg.dma_channel = SPI_DMA_CH_AUTO; // SPI_DMA_CH_AUTO; // Set DMA channel to use (0=not use DMA / 1=1ch / 2=ch /
|
||||||
// SPI_DMA_CH_AUTO=auto setting)
|
// SPI_DMA_CH_AUTO=auto setting)
|
||||||
cfg.pin_sclk = TFT_SCLK; // Set SPI SCLK pin number
|
cfg.pin_sclk = TFT_SCLK; // Set SPI SCLK pin number
|
||||||
cfg.pin_mosi = TFT_MOSI; // Set SPI MOSI pin number
|
cfg.pin_mosi = TFT_MOSI; // Set SPI MOSI pin number
|
||||||
cfg.pin_miso = TFT_MISO; // Set SPI MISO pin number (-1 = disable)
|
cfg.pin_miso = TFT_MISO; // Set SPI MISO pin number (-1 = disable)
|
||||||
cfg.pin_dc = TFT_DC; // Set SPI DC pin number (-1 = disable)
|
cfg.pin_dc = TFT_DC; // Set SPI DC pin number (-1 = disable)
|
||||||
|
|
||||||
_bus_instance.config(cfg); // applies the set value to the bus.
|
_bus_instance.config(cfg); // applies the set value to the bus.
|
||||||
_panel_instance.setBus(&_bus_instance); // set the bus on the panel.
|
_panel_instance.setBus(&_bus_instance); // set the bus on the panel.
|
||||||
@ -260,7 +260,7 @@ class LGFX : public lgfx::LGFX_Device
|
|||||||
auto cfg = _panel_instance.config(); // Gets a structure for display panel settings.
|
auto cfg = _panel_instance.config(); // Gets a structure for display panel settings.
|
||||||
|
|
||||||
cfg.pin_cs = TFT_CS; // Pin number where CS is connected (-1 = disable)
|
cfg.pin_cs = TFT_CS; // Pin number where CS is connected (-1 = disable)
|
||||||
cfg.pin_rst = TFT_RST; // Pin number where RST is connected (-1 = disable)
|
cfg.pin_rst = TFT_RST; // Pin number where RST is connected (-1 = disable)
|
||||||
cfg.pin_busy = TFT_BUSY; // Pin number where BUSY is connected (-1 = disable)
|
cfg.pin_busy = TFT_BUSY; // Pin number where BUSY is connected (-1 = disable)
|
||||||
|
|
||||||
// The following setting values are general initial values for each panel, so please comment out any
|
// The following setting values are general initial values for each panel, so please comment out any
|
||||||
@ -274,7 +274,7 @@ class LGFX : public lgfx::LGFX_Device
|
|||||||
cfg.dummy_read_pixel = 8; // Number of bits for dummy read before pixel readout
|
cfg.dummy_read_pixel = 8; // Number of bits for dummy read before pixel readout
|
||||||
cfg.dummy_read_bits = 1; // Number of bits for dummy read before non-pixel data read
|
cfg.dummy_read_bits = 1; // Number of bits for dummy read before non-pixel data read
|
||||||
cfg.readable = true; // Set to true if data can be read
|
cfg.readable = true; // Set to true if data can be read
|
||||||
cfg.invert = false; // Set to true if the light/darkness of the panel is reversed
|
cfg.invert = false; // Set to true if the light/darkness of the panel is reversed
|
||||||
cfg.rgb_order = false; // Set to true if the panel's red and blue are swapped
|
cfg.rgb_order = false; // Set to true if the panel's red and blue are swapped
|
||||||
cfg.dlen_16bit =
|
cfg.dlen_16bit =
|
||||||
false; // Set to true for panels that transmit data length in 16-bit units with 16-bit parallel or SPI
|
false; // Set to true for panels that transmit data length in 16-bit units with 16-bit parallel or SPI
|
||||||
@ -292,7 +292,7 @@ class LGFX : public lgfx::LGFX_Device
|
|||||||
auto cfg = _light_instance.config(); // Gets a structure for backlight settings.
|
auto cfg = _light_instance.config(); // Gets a structure for backlight settings.
|
||||||
|
|
||||||
cfg.pin_bl = TFT_BL; // Pin number to which the backlight is connected
|
cfg.pin_bl = TFT_BL; // Pin number to which the backlight is connected
|
||||||
cfg.invert = false; // true to invert the brightness of the backlight
|
cfg.invert = false; // true to invert the brightness of the backlight
|
||||||
// cfg.freq = 44100; // PWM frequency of backlight
|
// cfg.freq = 44100; // PWM frequency of backlight
|
||||||
// cfg.pwm_channel = 1; // PWM channel number to use
|
// cfg.pwm_channel = 1; // PWM channel number to use
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user