aboutsummaryrefslogtreecommitdiffhomepage
path: root/src/examples/caninterrupt/feather-m4-can.go
blob: d53cadf9d568161f88ceaf32cd4678f07ae61b42 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
//go:build feather_m4_can

package main

import (
	"machine"
)

func init() {
	// power on the CAN Transceiver
	// https://learn.adafruit.com/adafruit-feather-m4-can-express/pinouts#can-bus-3078990-8
	boost_en := machine.BOOST_EN
	boost_en.Configure(machine.PinConfig{Mode: machine.PinOutput})
	boost_en.High()
}