Quantcast
Channel: fritzing forum - Latest posts
Viewing all articles
Browse latest Browse all 28182

Help needed with a random color RGB LED program

$
0
0

// put your setup code here, to run once:
int Pin_LED_Red = 5;
int Pin_LED_Green = 4;
int Pin_LED_Blue = 3;
void setup() {
pinMode(Pin_LED_Red, OUTPUT);
pinMode(Pin_LED_Green, OUTPUT);
pinMode(Pin_LED_Blue, OUTPUT);
int rand = random(3, 5);
void loop()
// put your main code here, to run repeatedly:
;digitalWrite(Pin_LED_Red, HIGH);
digitalWrite(Pin_LED_Green, HIGH);
digitalWrite(Pin_LED_Blue, HIGH);
digitalWrite(pinMode)rand = random(3, 5)); * i suspect the error is here as well
delay(500);
digitalWrite(pinMode)rand = random(3, 5)); *the error is here
delay(500);
}the error says too few arguments to function 'void digitalWrite(uint8_t,uint8_t)'
please help i'm a beginner and hope that you can help me :stuck_out_tongue:


Viewing all articles
Browse latest Browse all 28182

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>