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

MiniMatrixRPi.pro

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