void change_widget(PtWidget_t * w)
{
//operation on widget w
PtSetResource(w, …);
}
Unfortunately all changes from change_widget() are visualized where lopp is finished.
But I want to change widgets one by one (with interval 200ms).
Any suggestions?
THe Photon programming environment is event driven. Although you can queue work in the callback, the work gets done when the photon main loop takes over. Perhaps if you explain what you are trying to do, we can explain a different approach to achieve it.
A different way to look at it is that every photon call just enqueues work - doesn’t actually do anything - until you finish your function and return to the main loop.