Im having a weird error

Im making a rock paper scissors program in arduino (im a beginner), and i'm having this error:

error: invalid conversion from 'void (*)()' to 'uint8_t {aka unsigned char}' [-fpermissive]

and here is the section of the code where there is the error:

void loop() {
    while(true){
	start();
    	int pc_input = random(1, 3);
	    if (digitalRead(pedra_inp) == 1) {
        	if (pc_input == 1) {
            	digitalWrite(pedrapc, HIGH);
            	empate();
            	digitalWrite(pedrapc, LOW);
            	delay(500);
            	continue;
        	}

and the rest of the code is more comparation of inputs.
Anyone can explain me what is that error?

Please post a complete sketch that can be compiled so that the problem can be seen in context.

Also post the output ot the serial port as that includes other information such as line no.

countrypaul:
Also post the output ot the serial port as that includes other information such as line no.

The code doesn’t compile - there can’t be any serial output.

TheMemberFormerlyKnownAsAWOL:
The code doesn't compile - there can't be any serial output.

Don't know why I said serial port - obviously thinking about something else, I meant the output area.

This topic was automatically closed 120 days after the last reply. New replies are no longer allowed.