a-function-definition-is-not-allowed-here-before-token

Hello - and thanks in advance for any help - i am very rusty with the C programming...

i can't see what is wrong in my code, the error is pointing at void loop():

int LFOPin = 3;
int LFO = 0 ;

void setup() {
// put your setup code here, to run once:

{
Serial.begin(9600);
pinMode(LFOPin, OUTPUT);
}

void loop() {
// put your main code here, to run repeatedly:
if (Serial.available()>0
{

LFO = Serial.read();
analogWrite(LFOPin, LFO)}

delay(100)
}

Check your curly brackets, parentheses and semicolons. You can use the autoformatter in the Arduino IDE to help you.

Also, Arduino uses C++, not C.

Please use [code][/code] when posting code.

Pieter

You have one too few } in the setup function. Or in actual fact one too many {

thanks to both of you, sorry for my clumsy posting. That fixed it x