Skip to content
Snippets Groups Projects
Select Git revision
  • d808720f7a5863938d9ba17b0e970533d966bdcd
  • master default
2 results

spiframe.h

Blame
  • 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