blob: 58aeb2f2ebdcced00411d56793c05d2a7add098b (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#pragma once
#include "api.hpp"
// Base app
class BaseApp {
public:
uint app_id = 0; // CHECK: This has to be overwritten by derived classes
virtual int render(Api *app_api) = 0; // Has to be implemented
virtual int btnpressed(Api *app_api, uint gpio, unsigned long delta) {};
virtual int bgrefresh(Api *app_api, bool in_foreground) {};
};
|