Loading...
Pages: [1]   Go Down
Author Topic: high and low output (LED)  (Read 74 times)
0 Members and 1 Guest are viewing this topic.
Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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
Logged

Queens, New York
Offline Offline
Edison Member
*
Karma: 29
Posts: 1563
"Of all the things I've ever lost, I miss my mind the most" -Ozzy Osbourne
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

IF/ELSE statements. if(LEDstate != HIGH) { // go to accel function and get accelerometer data }, else //do nothing
Logged

UNO, MEGA, NANO, 4x4 keypad, micro servos, RF transceivers, bluetooth, ultrasonic sensor, 20x4 I2C LCD, 3.2 TFT touch screen, L298N Dual motor driver, Voice Recognition 15W, Gameduino

Arduino Tutorials, coming soon.

"If your doing nothing, it does not mean your lazy, it just means your open for anything that suits you" - Unknown

Offline Offline
Newbie
*
Karma: 0
Posts: 15
View Profile
 Bigger Bigger  Smaller Smaller  Reset Reset

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

Pages: [1]   Go Up
Print
 
Jump to: