Missing Adafruit_SSD1306 library

In the error message we can see the script contains:

where setPeriod is a method member of the TimerOne class. TimerOne.setPeriod(interval) would be an error; you can only apply setPeriod to an instance of TimerOne, such as Timer1. So, no, replacing Timerone with TimerOne will not work. Replacing it with Timer1 might.

1 Like

Ah right (not wishing to threadjack)

A simple example of class would be “int” and the variable XYZ would be of class int.

(Of course technically speaking int is a fundamental type, not a class, but that’s C++ for you.)

3 Likes