platform for developing on SQFMI's Watchy
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 

22 lines
441 B

#include "watchos.h"
class Task_Test : public IRunnable, public Task, public EventListener
{
public:
Task_Test()
{
watchos::subscribe(this, 0xffffffffffffffffu, 0xffffu);
}
void tick()
{
Event* e;
while (this->hasEvent())
{
e = this->getEvent();
watchos::debug("Got event: src %#020llx evt %#06x param1 %#04x param2 %#04x", e->source, e->event, e->param1, e->param2);
this->popEvent();
}
}
};