I need help developing a new program.
code: [select]
void main(){
const int ledpin = 13
const int analog_in = a0
const int min_sensorvalue = 0
const int max_sensorvalue = 2000
int sensorvalue = 0
}
void setup( ){
}
void loop( ){
sensorvalue = analogread(analog_in)
if(sensorvalue > max_sensorvalue){
sensorvalue = max_sensorvalue
}
else if(sensorvalue < min_sensorvalue){
sensorvalue = min_sensorvalue
}
digitalwrite(ledpin, high)
delay(sensorvalue)
digitalwrite(ledpin, low)
}
i keep getting ton of error messages when compile it
update moderatore: replaced quotes code tags + fixed copy error
do have question ?
do have complete program chance ?
did mean have main() function or accident ?
have read http://forum.arduino.cc/index.php?topic=97455.0 ?
do have complete program chance ?
did mean have main() function or accident ?
have read http://forum.arduino.cc/index.php?topic=97455.0 ?
Arduino Forum > Using Arduino > Programming Questions > I need help developing a new program.
arduino
Comments
Post a Comment