How to add variable for prescale_factor to wiring.h

CaptainJack:
Ah I see, might it be a better idea to declare a variable in the library and set it with a global function?

That certainly seems like a better approach. That way, it can have a default value that matches the standard value, unless the sketch changes it.

The only challenge I can see is making sure that the value is changed BEFORE any code that needs it defined is executed.