#include <OBD2UART.h> COBD obd; void setup() { pinMode(13, OUTPUT); obd.begin(); while (!obd.init()); } void loop() { int value; if (obd.readPID(PID_RPM, value)) { Serial.println(value); delay(1000); } }
int x; int y="010C"; x=value-y; Serial.println(x);
obd.read(PID_RPM,value)
Serial.println((unsigned int)value % 10000)
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)