#include <__dd_misc_value.h>
newState: the next state when it is due time for next state; stateChangeInMillis: the time delay (in millis) for the new state to be effective (state changed)