rwblinn Well-Known Member Licensed User Longtime User Feb 7, 2017 #1 Hi, working to wrap the Arduino MultiFunctionShield Library. The lib makes use of an internal timer handling interrupts. One of the first public voids in multifunctshield.h is an interrupt pointer, which is used by f.e. blinking functions. Code: Copy void (*userInterrupt)() = NULL; How to wrap a void like this? EDIT 20170209 [SOLVED] By using the object Timer1 and MFS as defined in the library h files. The wrapped library is posted here. Last edited: Feb 9, 2017
Hi, working to wrap the Arduino MultiFunctionShield Library. The lib makes use of an internal timer handling interrupts. One of the first public voids in multifunctshield.h is an interrupt pointer, which is used by f.e. blinking functions. Code: Copy void (*userInterrupt)() = NULL; How to wrap a void like this? EDIT 20170209 [SOLVED] By using the object Timer1 and MFS as defined in the library h files. The wrapped library is posted here.
Erel B4X founder Staff member Licensed User Longtime User Feb 7, 2017 #2 Working with interrupts is more difficult. You can see an example in rWire (WireSlave implementation). It uses pollers.setInterrupt.
Working with interrupts is more difficult. You can see an example in rWire (WireSlave implementation). It uses pollers.setInterrupt.