Expected initializer before int

int rotDirection = 0;

what do i fix for it to function properly

In the Arduino IDE, use Ctrl T or CMD T to format your code then copy the complete sketch.

Use the </> icon from the ‘posting menu’ to attach the copied sketch.

Probably the line BEFORE that line. The error says "Expected initializer BEFORE int" so the problem is probably the previous line not being complete.

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