I am working on a project where a CAN-BUS Shield v2.0 read the messages on a specific CAN ID, and if the first bit on that CAN ID = X, the arduino begins one code, and if its Y, it begins another.
I can't find any sort of examples where this is done.... Can anyone help by posting or linking a project, where the CAN Message VALUE is used as a variable for an IF/Then statement?
A good example would be engine speed... If the engine speed is over 1000, turn on an LED, if its under 1000 keep LED off... I can't find anything of this nature and I am hoping someone can help.
Everything I have found, just prints the CAN msgs to the serial port, no examples of using the value as an input to another line of code.