Skip to content

Commit

Permalink
fix LovyanGFX/examples_for_picosdk/spi/LGFX_config.hpp
Browse files Browse the repository at this point in the history
  • Loading branch information
Prime9999 committed Oct 8, 2024
1 parent 5582933 commit c34308e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions examples_for_picosdk/spi/LGFX_config.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -62,11 +62,11 @@ class LGFX : public lgfx::LGFX_Device
_panel_instance.config(cfg);
}

#if USE_BACKLIGHT
#ifdef USE_BACKLIGHT
{ // バックライト制御の設定を行います。(必要なければ削除)
auto cfg = _light_instance.config(); // バックライト設定用の構造体を取得します。

cfg.pin_bl = TFT_BLK // バックライトが接続されているピン番号
cfg.pin_bl = TFT_BLK; // バックライトが接続されているピン番号
cfg.invert = false; // バックライトの輝度を反転させる場合 true
cfg.freq = 44100; // バックライトのPWM周波数
cfg.pwm_channel = 6; // 使用するPWMのチャンネル番号
Expand Down

0 comments on commit c34308e

Please sign in to comment.