-1

I'm using MCP2515 CAN controller and TJA1050 transceiver. I want to send some square waves to TJA1050 with digital write and delay instruction of Arduino. How can I do that? I also read the MCP2515's datasheet. It has 5 GPIOs. Can I use these pins to send square waves to the transceiver? Here is the library I used:https://github.com/Seeed-Studio/CAN_BUS_Shield The examples of this library contains a sample code as gpioread and gpiowrite but when I compile them I got error: exit status 1 'class MCP_CAN' has no member named 'pinMode'

Thanks in advance.

1
  • 1
    Why would you want to "send some square waves" to a CAN transceiver? Commented Oct 1, 2018 at 9:56

1 Answer 1

0

This is not really a general Arduino question but...

The compiler is telling you that the member function 'pinMode' is not available. A closer look at the commit history for the library reveals that they have recently rolled back to a "working version". There is a commit with the member functions 'pinMode', 'digitalRead' and 'digitalWrite' included.

Please see: https://github.com/Seeed-Studio/CAN_BUS_Shield/commit/15c6bfb80a50c924a9c708117a66a66b54af5370

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.