Closed end2endzone closed 6 years ago
In other words... When clock mode is simulated, allow a user to set a callback that is triggered when the simulation time matches the given time of the callback registration. The callback can be used in test cases for simulatin event that comes from the outside world
void attachMillisecondsCallback(uint32_t time, Callback func);
void attachMicrosecondsCallback(uint32_t time, Callback func);
ie
attachMillisecondsCallback(500, &foobar); //run foobar() function when elapsed time is 500ms
Completed implementation in revision bd10575cce54c6fd7cd79092b0152eee9c8bae32
Allow assign callback for digitalRead(), digitalWrite(), analogRead() and analogWrite() functions to implement event based changes for tests.Moved to issue #11