Instantly share code, notes, and snippets.
maresaku
/ RaspberryPiPicoW_GC9A01A_NtcTimeDate.py
Created
May 4, 2025 15:20
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import network | |
import time | |
import ntptime | |
import vga1_bold_16x32 as font | |
import gc | |
import gc9a01 | |
import tft_config | |
#wifi接続 |
maresaku
/ WaveshareRP2040-LCD-1.28_FaceMove.py
Created
May 3, 2025 16:16
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#GC9A01ディスプレイドライバをインポート(おそらく、UF2ファイル側にある設定) | |
import gc9a01 | |
#tft_config.pyをインポート | |
import tft_config | |
#timeモジュールをインポート | |
import time | |
#縦長(TALL)の設定を適用 | |
tft = tft_config.config(tft_config.TALL) | |
#ディスプレイを初期化する |
maresaku
/ WaveshareRP2040-LCD-1.28_Face.py
Created
May 3, 2025 16:08
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#GC9A01ディスプレイドライバをインポート(おそらく、UF2ファイル側にある設定) | |
import gc9a01 | |
#tft_config.pyをインポート | |
import tft_config | |
#縦長(TALL)の設定を適用 | |
tft = tft_config.config(tft_config.TALL) | |
#ディスプレイを初期化する。 | |
tft.init() |
maresaku
/ WaveshareRP2040-LCD-1.28_JpgKoinobori.py
Created
May 3, 2025 16:03
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#gc(ガベージコレクション)モジュールをインポート(不要なオブジェクトを解放するために使用) | |
import gc | |
#GC9A01ディスプレイドライバをインポート(おそらく、UF2ファイル側にある設定) | |
import gc9a01 | |
#tft_config.pyをインポート | |
import tft_config | |
#gcを有効にすることで、自動メモリ管理を活用 | |
gc.enable() | |
#未使用のオブジェクトを解放してメモリを回収 |
maresaku
/ WaveshareRP2040-LCD-1.28_JpgJapan.py
Created
May 3, 2025 10:35
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#gc(ガベージコレクション)モジュールをインポート(不要なオブジェクトを解放するために使用) | |
import gc | |
#GC9A01ディスプレイドライバをインポート(おそらく、UF2ファイル側にある設定) | |
import gc9a01 | |
#tft_config.pyをインポート | |
import tft_config | |
#gcを有効にすることで、自動メモリ管理を活用 | |
gc.enable() | |
#未使用のオブジェクトを解放してメモリを回収 |
maresaku
/ WaveshareRP2040-LCD-1.28_JpgBluemarble.py
Created
May 3, 2025 10:27
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#vga1_bold_16x32.pyをインポートしてfontして扱う | |
import vga1_bold_16x32 as font | |
#GC9A01ディスプレイドライバをインポート(おそらく、UF2ファイル側にある設定) | |
import gc9a01 | |
#tft_config.pyをインポート | |
import tft_config | |
#timeモジュールをインポート | |
import time | |
#縦長(TALL)の設定を適用 |
maresaku
/ WaveshareRP2040-LCD-1.28_RotationHelloWorld.py
Created
May 3, 2025 10:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#vga1_bold_16x32.pyをインポートしてfontして扱う | |
import vga1_bold_16x32 as font | |
#GC9A01ディスプレイドライバをインポート(おそらく、UF2ファイル側にある設定) | |
import gc9a01 | |
#tft_config.pyをインポート | |
import tft_config | |
#timeモジュールをインポート | |
import time | |
#縦長(TALL)の設定を適用 |
maresaku
/ WaveshareRP2040-LCD-1.28_HelloWorld.py
Last active
May 3, 2025 10:09
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#vga1_bold_16x32.pyをインポートしてfontして扱う | |
import vga1_bold_16x32 as font | |
#GC9A01ディスプレイドライバをインポート(おそらく、UF2ファイル側にある設定) | |
import gc9a01 | |
#tft_config.pyをインポート | |
import tft_config | |
#縦長(TALL)の設定を適用 | |
tft = tft_config.config(tft_config.TALL) |