Do you see e.g. char notes[] in your post? That's why we ask to use code tags so the forum software does not think that e.g. [] is a special character.
Please edit your post, select all code and click the </> button to apply so-called code tags and next save your post. It makes it easier to read, easier to copy and prevents the forum software from incorrect interpretation of the code.
The IDE has a very useful function called Auto Format (in the Tools menu. If you use that, you should be able to see straight away what is wrong. After an Auto Format, your code looks like
void setBrightnessI2C(byte value)
{
Wire.beginTransmission(s7sAddress);
Wire.write(0x7A); // Set brightness command byte
Wire.write(value); // brightness data byte
Wire.endTransmission();
}
{
Wire.beginTransmission(s7sAddress);
Wire.write(0x77);
Wire.write(decimals);
Wire.endTransmission();
}
As @Idahowalker pointed out, the second part is outside a function.
You're also missing some semi-colons; this is visible after the Auto Format. E.g.
if ((currentTime > startTime) & (currentTime < 10001)) {
if (counter < 10000)
setDecimalsI2C(0b00000100)
else
setDecimalsI2C(0b00001000)
}
where the second setDecimalsI2C in not aligned at the same level as the first one.
And lastly the setDecimalsI2C function is nowhere to be found in the code.
//Edit: I see you have another topic about setDecimalsI2C as well. Do not crosspost, it wastes people's time.