You Reply: Ok thanks for your reply, sorry can you check if the below code is correct to check if it pass or not? thank you for usual support :)
#include <Arduino.h>
#include <Wire.h>
#include <OBD.h>
COBD obd; /* for Model A (UART version) */
int led = 13;
int led2 = 12;
void setup()
{
// we'll use the debug LED as output
// start communication with OBD-II adapter
obd.begin();
pinMode(led, OUTPUT);
pinMode(led2, OUTPUT);
// initiate OBD-II connection until success
}
void loop()
{
if (obd.init())
{
digitalWrite(led2, HIGH); // turn the LED2 on (HIGH is the voltage level)
delay(100); // wait for a second
digitalWrite(led2, LOW); // turn the LED2 off by making the voltage LOW
delay(100);
}
else
{
digitalWrite(led, HIGH); // turn the LED on (HIGH is the voltage level)
delay(100); // wait for a second
digitalWrite(led, LOW); // turn the LED off by making the voltage LOW
delay(100);
}
}