maxgerhardt / platform-raspberrypi

Raspberry Pi: development platform for PlatformIO
Apache License 2.0
94 stars 46 forks source link

how do we revert to a previous version for Arduino-pico on Platform-IO? #48

Closed LazaroFilm closed 2 months ago

LazaroFilm commented 7 months ago

I'm having a bug with the latest Arduino Pico version and need to revert to the previous release to trouble shoot. Ho do I do that?

; 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:waveshare_rp2040_touch]
platform = https://github.com/maxgerhardt/platform-raspberrypi.git
;platform = raspberrypi
board = waveshare_rp2040_plus_4mb
framework = arduino
board_build.core = earlephilhower
lib_deps = 
    bodmer/TFT_eSPI
    adafruit/Adafruit NeoPixel
    lvgl/lvgl
    sparkfun/SparkFun BNO08x Cortex Based IMU@^1.0.3
board_build.filesystem_size = 0m
build_flags = -O2
maxgerhardt commented 2 months ago

Use

platform_packages = 
   framework-arduinopico@https://github.com/earlephilhower/arduino-pico.git#783bee5c49c8ce0631cf9bb3bc70b3ae4aefebbb

or whatever commit you need. This is a officially documented PlatformIO feature: https://docs.platformio.org/en/latest/projectconf/sections/env/options/platform/platform_packages.html