Go Down

Topic: high and low output (LED) (Read 370 times) previous topic - next topic

nagasaker

My problem is when the LED is "High" or "On", I want the code(inside) to be disable... e.g. accelerometer code... I want to put an LED on it when it is turn on, the accelerometer will not be function...

and when the LED is "Low" or "Off", I want it to go back or enable...

Can anyone willing to help me to teach what is the command fit for it....


this is my email address: rowell_regis19@lsu.edu.ph

HazardsMind

IF/ELSE statements. if(LEDstate != HIGH) { // go to accel function and get accelerometer data }, else //do nothing
My GitHub:
https://github.com/AndrewMascolo?tab=repositories

nagasaker

oh yeah... i try.. thanks for that....

Go Up
 


Please enter a valid email to subscribe

Confirm your email address

We need to confirm your email address.
To complete the subscription, please click the link in the email we just sent you.

Thank you for subscribing!

Arduino
via Egeo 16
Torino, 10131
Italy