kwindrem / VeCanSetup

Manages Victrion VenusOs VeCan (aka CANbus) ports
46 stars 6 forks source link

Waveshare 16MHz support #27

Closed ArjanGoossens closed 1 year ago

ArjanGoossens commented 1 year ago

It seems there is another Waveshare variant (which i have) with a 16MHz crystal.

Can you add the 16MHz version as well?

Overlay config is the same as for the 12MHz, just a different frequency

Many thanks!

this config works for me:

begin CAN overlay

Waveshare 1-channel CANbus Hat 16 MHz crystal

instantiates as can0 ONLY !!!

use udev rules to rename

[all] dtparam=spi=on dtoverlay=mcp2515-can0,oscillator=16000000,interrupt=25,spimaxfrequency=2000000

end CAN overlay

kwindrem commented 1 year ago

done