tinygo.org/x/drivers@v0.27.1-0.20240509133757-7dbca2a54349/examples/flash/console/qspi/main.go (about)

     1  package main
     2  
     3  import (
     4  	"machine"
     5  
     6  	"tinygo.org/x/drivers/examples/flash/console"
     7  	"tinygo.org/x/drivers/flash"
     8  )
     9  
    10  func main() {
    11  	console_example.RunFor(
    12  		flash.NewQSPI(
    13  			machine.QSPI_CS,
    14  			machine.QSPI_SCK,
    15  			machine.QSPI_DATA0,
    16  			machine.QSPI_DATA1,
    17  			machine.QSPI_DATA2,
    18  			machine.QSPI_DATA3,
    19  		),
    20  	)
    21  }