Skip to content

Instantly share code, notes, and snippets.

View javacafe01's full-sized avatar
:octocat:
not doing my work

Gokul Swaminathan javacafe01

:octocat:
not doing my work
View GitHub Profile
@javacafe01
javacafe01 / main.cpp
Last active April 19, 2023 11:27
test-can
#include "mbed.h"
#include "InterfaceCAN.h"
#define CAN1_RX PD_0 // RX port
#define CAN1_TX PD_1 // TX port
#define VESC_DUTY_EXTENDED_ID 0x00 // ID to run duty cycle mode
#define VESC_ID 101 // ID of the Vesc
function allowDrop(ev) {
ev.preventDefault();
}
function drag(ev) {
ev.dataTransfer.setData("text", ev.target.id);
}
function drop(ev) {
ev.preventDefault();