- Mon Dec 09, 2013 3:53 am
#5535
From: AleEscalanteH
There is my error page, it pop out when i paste the code in arduinodev.
hope you can help me..
#include <OBD.h>
COBD obd; /* for Model A (UART version) */
void setup()
{
// we'll use the debug LED as output
pinMode(13, OUTPUT);
// start communication with OBD-II adapter
obd.begin();
// initiate OBD-II connection until success
while (!obd.init());
}
void loop()
{
int value;
// save engine RPM in variable 'value', return true on success
if (obd.read(PID_RPM, value)) {
// light on LED on Arduino board when the RPM exceeds 3000
digitalWrite(13, value > 3000 ? HIGH : LOW);
}
}
[img]
There is my error page, it pop out when i paste the code in arduinodev.
hope you can help me..
#include <OBD.h>
COBD obd; /* for Model A (UART version) */
void setup()
{
// we'll use the debug LED as output
pinMode(13, OUTPUT);
// start communication with OBD-II adapter
obd.begin();
// initiate OBD-II connection until success
while (!obd.init());
}
void loop()
{
int value;
// save engine RPM in variable 'value', return true on success
if (obd.read(PID_RPM, value)) {
// light on LED on Arduino board when the RPM exceeds 3000
digitalWrite(13, value > 3000 ? HIGH : LOW);
}
}
[img]