Hi,
I've got a sketch working and doing cool stuff based on physical switches to adjust my settings based on code like this:
if (digitalRead(expPin) == HIGH)
{
numSteps = 800;
}
else
{
numSteps = 400;
}
I'd now like to write an app to replace the physical switches and have it communicate with my arduino over bluetooth. I've been searching and can't see anything obvious to confirm this can be done.
Is it possible to have if statements based on values set in an app over bluetooth and, if so, could you share some sample code?
Many thanks....