Vasily Davydov 1709c0520b event: add pressure member
Addition of a pressure parameter called from main
and displayed on lcd
2022-10-14 16:33:44 +03:00

37 lines
624 B
C++

/*
* Event.h
*
* Created on: Oct 5, 2022
* Author: tylen
*/
#ifndef EVENT_H_
#define EVENT_H_
class Event
{
public:
virtual ~Event (){};
enum eventType
{
/** Start of the event */
eEnter,
/** End of the event*/
eExit,
/** Button toggle event type (has values:
* temperature or button) */
eKey,
/** Time event */
eTick
};
Event (eventType e = eTick, uint8_t b = 0) : type (e), button (b){};
Event (eventType e = eTick, int16_t pres = 0) : type (e), pressure (pres){};
eventType type;
uint8_t button;
int16_t pressure;
int temp;
};
#endif /* EVENT_H_ */