All pastes #2103932 Raw Edit

Untitled

public text v1 · immutable
#2103932 ·published 2012-01-18 22:51 UTC
rendered paste body
#define LED 13

void ranum() {
  delay(int(random(30, 1001)));
}

void setup() {
  pinMode(LED, OUTPUT); //set pin 13 as output
  randomSeed(analogRead(0));
}

void loop() {
  digitalWrite(LED, HIGH);
  ranum();
  digitalWrite(LED, LOW);
  ranum();
}


ERROR:  
sketch_jan18a.cpp: In function 'void ranum()':
sketch_jan18a:3: error: void value not ignored as it ought to be