Select Git revision
Forked from
KSZK / DevTeam / kszkepzes / old / kszkepzes-frontend
Source project has a limited visibility.
-
Tamás Szabó authoredTamás Szabó authored
spiframe.h 443 B
#ifndef SPIFRAME_H
#define SPIFRAME_H
#include <stdint.h>
#include "mxframe.h"
class SpiFrame
{
private:
enum Color {RED, GREEN, BLUE};
bool LedCoordToPixel(const MxFrame &mxframe, int bitpos, int colorbit, enum Color color, int column);
bool PixelToLedCoord(int x, int y, enum Color color);
public:
SpiFrame();
SpiFrame(const MxFrame& mxframe);
uint16_t data[64 * 24];
uint32_t length;
};
#endif // SPIFRAME_H