CAN-BUS V2 Shield - Example Sketches

Hello,

I have recently purchased a pair of Seeed can-bus v2 shields, each connected to an Arduino Uno board.

Using the send & receive .ino files I am successfully managing to transmit and receive data across my can-bus. I downloaded the zip files that are referred to on the seeed website, which are on the github website. That’s great.

However when I look at both send and receive example on the github I am puzzled with part of the code. In particular looking at the “void setup() { “ . From what I can work out there doesn’t appear to be a matching “}” ie right-hand braces/curly brackets.

When I attempt to insert a “}” at what appears to me to be the end of the void setup it matches with the start “{” but fails to compile.

Leaving the example as it is, does however run. However I am experiencing issues when using some of the digital pins on the UNO and running a temperature sensor.

I am a beginner so perhaps I am missing something obvious.

Advice/comments would be appreciated.