Removed due to rude people
Where and what value are the pullup resistors on SCL and SDA?
Clearly, you cannot use PB0 for both SDA and OC0A or /OC1A.
Avoid using String objects. They cause program crashes and memory problems on AVR based Arduinos.
yea, i ended up removing the PWM freq change code a few hours ago
The posted code will not work.
If you have questions about code, post the actual code in question, not some other code.
By mistake, do you mean the incorrect schematic, or the wrong code?
Do hurry back to the forum!