G’day,
For some reason my OneWire failed due to the zapped Tiva output pin. After a rewire to another pin and a sketch redefinition it’s working again. This got me thinking that a good fault finding process would be to allow the customer to be able to flip to another predefined pin without flashing a new sketch. E.g during setup() if a push button is held depressed Pin X is used for the OneWire, otherwise Pin Y.
Now for my problem.
After moving DS18B20 ds(PIN_OW); into the setup() area’ I get the justifiable error
'ds' was not declared in this scope
Original code
#include "TM4C_DS18B20.h"
DS18B20 ds(PIN_OW);
New Code
#include "TM4C_DS18B20.h"
setup()
DS18B20 ds(PIN_OW);
Is there a workaround solution for this.