Go Down

Topic: programming of a project to light the lamps with palms (I'm using mac) (Read 163 times) previous topic - next topic

murillo1U

Hi, my name is Murillo, I'm brazilian, and I'm testing a arduino to light up lamps with palms. I'm do my project based in a post in the internet, but when I'm pass the informations the the arduino, the arduino's program tells me "programer is not responding". What I'm missing??
this is the Program

int pino_som = 7;
int pino_rele = 5;
boolean rele = HIGH;

void setup() {
  pinMode(pino_som, INPUT);
  pinMode(pino_rele, OUTPUT);
 }

void loop() {
  int som = digitalRead(pino_som);

  if(som){
    rele = !rele;
    digitalWrite(pino_rele, rele);
    delay(1000);
   }
 }

 




Go Up