mirror of
https://github.com/Seeed-Studio/Seeed_Arduino_CAN.git
synced 2026-07-27 19:55:59 +00:00
Update README.md
This commit is contained in:
@@ -129,8 +129,9 @@ You can choise one of two method to receive: interrup-based and polling
|
||||
Example of poll read
|
||||
|
||||
```C++
|
||||
struct can_frame frame;
|
||||
|
||||
void loop() {
|
||||
struct can_frame frame;
|
||||
if (mcp2551.readMessage(&frame) == MCP_CAN::ERROR_OK) {
|
||||
// frame contains received message
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user