Pages: [1]   Go Down
Author Topic: high and low output (LED)  (Read 320 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
Online Online
Faraday Member
**
Karma: 108
Posts: 3786
"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

Created Libraries:
TFT_Extension, OneWireKeypad, SerialServo, (UPD)WiiClassicController, VWID

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
Jump to: