That is correct you only have a single argument to the function (and its wrong anyway ). 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.
↧