projet crepp_git/crepp-projects/station-meteo/firmware/receiver/v1.0 · branche main
platformio.ini Voir sur GitLab
; PlatformIO Project Configuration File
;
;   Build options: build flags, source filter
;   Upload options: custom upload port, speed and extra flags
;   Library options: dependencies, extra library storages
;   Advanced options: extra scripting
;
; Please visit documentation for the other options and examples
; https://docs.platformio.org/page/projectconf.html

[env:pico2w]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
board = rpipico2w
framework = arduino
board_build.core = earlephilhower
build_flags = 

    -D USER_SETUP_LOADED       ; Indispensable — dit à TFT_eSPI d'utiliser tes defines

	;-D TFT_RGB_ORDER=TFT_BGR
    -D ILI9488_DRIVER=1          

	-D TFT_WIDTH=320
	-D TFT_HEIGHT=480
	
	-D TFT_MISO=12
	-D TFT_MOSI=11
	-D TFT_SCLK=10
	-D TFT_CS=2
	-D TFT_DC=1
	-D TFT_RST=0
    -D TFT_BL=3
	
	-D LOAD_GLCD=1
	-D LOAD_GFXFF=1
	-D SMOOTH_FONT=1
	
	-D SPI_FREQUENCY=27000000 

	-D TFT_BACKLIGHT_ON=HIGH

    -D TFT_SPI_PORT=1 ; SPI1          ; SPI1 explicitement pour utiliser les pins SPI1 (GPIO 12, 13, 14)

monitor_speed = 115200
lib_deps = bodmer/TFT_eSPI@^2.5.43
		    https://gitlab.com/crepp_git/crepp.io/codes/pico-include-lib