File evabScreenSerialPixel.h¶
File List > src > evabScreenSerialPixel.h
Go to the documentation of this file
#pragma once
#include <evabScreenPage8Base.h>
#include <evabIFont.h>
namespace evab
{
class ScreenSerialPixel : public ScreenPage8Base
{
public:
ScreenSerialPixel(IFont *aFont);
void clear();
void PrintToSerial();
Coor Size() override;
unsigned short Serialize(const Coor &aPos, const Coor &aSize, bool isFocused);
void Deserialize(unsigned short aSerialized, Coor &aPos, Coor &aSize, bool &isFocused);
private:
void drawVerticalSlice(Coor aPosition, unsigned char aCutColumn, unsigned char aSlice) override;
private:
uint8_t mBuffer[1024]; // 8 pages * 128 bytes = 1024 bytes
};
}