#include "CAN.h" void setup() { Serial.begin(115200); CAN.begin(500E3); // Set CAN speed to 500 kbps Serial.println("CAN initialized"); } void loop() { CAN.beginPacket(0x123); // CAN ID CAN.write('H'); CAN.write('i'); CAN.endPacket(); delay(1000); }