Hey guys,
I want to use the ShiftReg123LCD library (https://code.google.com/p/shiftreglcd123/) but in the code, it uses DelayMicroseconds quite often.
In my current project, systick is disabled so the delay won't work. I have derived a timer that increments by 0.1uS every 3 interrupts (the interrupt occurs at 28125Hz) by multiplying this by 10, I get a rough 1uS timebase.
To create the delay I can just do:
//interrupttick is the 0.1us timebase
oldtime = interrupttick*10;
while(interrupttick*10 - oldtime < delaytime){}
which will delay for 'delaytime' amount of microseconds. How can I easily implement this into the library? I've never written a library before and don't know how to incorporate my interrupttick variable into the library.
Thanks,