mirror of
https://github.com/tinygo-org/drivers.git
synced 2026-08-02 22:17:49 +00:00
b1529dcf7a
* QSPI/SPI: flash memory functions
22 lines
314 B
Go
22 lines
314 B
Go
package main
|
|
|
|
import (
|
|
"machine"
|
|
|
|
"tinygo.org/x/drivers/examples/flash/console"
|
|
"tinygo.org/x/drivers/flash"
|
|
)
|
|
|
|
func main() {
|
|
console_example.RunFor(
|
|
flash.NewQSPI(
|
|
machine.QSPI_CS,
|
|
machine.QSPI_SCK,
|
|
machine.QSPI_DATA0,
|
|
machine.QSPI_DATA1,
|
|
machine.QSPI_DATA2,
|
|
machine.QSPI_DATA3,
|
|
),
|
|
)
|
|
}
|