github.com/tinygo-org/tinygo@v0.31.3-0.20240404173401-90b0bf646c27/src/examples/can/feather-m4-can.go (about)

     1  //go:build feather_m4_can
     2  
     3  package main
     4  
     5  import (
     6  	"machine"
     7  )
     8  
     9  func init() {
    10  	// power on the CAN Transceiver
    11  	// https://learn.adafruit.com/adafruit-feather-m4-can-express/pinouts#can-bus-3078990-8
    12  	boost_en := machine.BOOST_EN
    13  	boost_en.Configure(machine.PinConfig{Mode: machine.PinOutput})
    14  	boost_en.High()
    15  }