github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/examples/i2c-target/main_feather_rp2040.go (about)

     1  //go:build rp2040
     2  
     3  package main
     4  
     5  import "machine"
     6  
     7  const (
     8  	TARGET_SCL = machine.GPIO25
     9  	TARGET_SDA = machine.GPIO24
    10  )
    11  
    12  var (
    13  	controller = machine.I2C1
    14  	target     = machine.I2C0
    15  )