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

     1  package main
     2  
     3  import (
     4  	"machine"
     5  
     6  	console_example "tinygo.org/x/drivers/examples/flash/console"
     7  	"tinygo.org/x/drivers/flash"
     8  )
     9  
    10  func main() {
    11  	console_example.RunFor(
    12  		flash.NewSPI(
    13  			&machine.SPI1,
    14  			machine.SPI1_SDO_PIN,
    15  			machine.SPI1_SDI_PIN,
    16  			machine.SPI1_SCK_PIN,
    17  			machine.SPI1_CS_PIN,
    18  		),
    19  	)
    20  }