Flash a Go program that:
See the Quick Install.
pico: press and hold the BOOTSEL button
pico: connect the pico to the Chromebook
pico: release the button
chromeos: open the Files application
chromeos: verify the RPI-RP2 disk is mounted
chromeos: right click the mount and share with Linux:
/mnt/chromeos/removable/RPI-RP2/
Blink the LED using the example code:
mkdir blinky
go mod init blinky
package main
import (
"machine"
"time"
)
func main() {
led := machine.LED
led.Configure(machine.PinConfig{Mode: machine.PinOutput})
for {
led.Low()
time.Sleep(time.Millisecond * 500)
led.High()
time.Sleep(time.Millisecond * 500)
}
}
tinygo build -o /mnt/chromeos/removable/RPI-RP2/firmware.uf2 -target=pico
(markdown)