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

That is correct you only have a single argument to the function (and its wrong anyway :slight_smile: ). As with the calls above it you need the port number (Pin_LED_Red, Green or Blue) and either HIGH or LOW to tell the port which state you want with a comma between the two arguments (which is what it is currently complaining about). pinMode is a function not a variable (it would complain about that next). You likely need to convert what random returns to either a zero or a one and use that as the value of the second argument to the digital write function.


Viewing all articles
Browse latest Browse all 28182

Trending Articles



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