add support extended id for mcp2515 (#857)

* add support extended id for mcp2515
* fix mcp2512 example code
* revert Pin control
This commit is contained in:
nobonobo
2026-04-20 18:51:56 +09:00
committed by GitHub
parent e960a6ff57
commit 1c10dea443
3 changed files with 53 additions and 42 deletions
+1 -1
View File
@@ -21,7 +21,7 @@ func main() {
SDI: machine.SPI0_SDI_PIN,
Mode: 0})
can := mcp2515.New(spi, csPin)
can.Configure()
can.Configure(mcp2515.Configuration{})
err := can.Begin(mcp2515.CAN500kBps, mcp2515.Clock8MHz)
if err != nil {
failMessage(err.Error())