Pico2 support (#299)

* Add support for Pico2/2W boards

* Update documentation to include Pico2/2W

* update language support
This commit is contained in:
Dave
2024-12-21 12:00:23 -06:00
committed by GitHub
parent 8bcd2aa456
commit 8b11882c52
5 changed files with 28 additions and 17 deletions

View File

@@ -24,10 +24,10 @@ noStorageStatus = noStoragePin.value
# GP15 not connected == USB NOT visible
# GP15 connected to GND == USB visible
if(board.board_id == 'raspberry_pi_pico'):
if(board.board_id == 'raspberry_pi_pico' or board.board_id == 'raspberry_pi_pico2'):
# On Pi Pico, default to USB visible
noStorage = not noStorageStatus
elif(board.board_id == 'raspberry_pi_pico_w'):
elif(board.board_id == 'raspberry_pi_pico_w' or board.board_id == 'raspberry_pi_pico2_w'):
# on Pi Pico W, default to USB hidden by default
# so webapp can access storage
noStorage = noStorageStatus