Skip to content
Snippets Groups Projects
Select Git revision
  • 31628fd790d400e3e34bb543fae35c9fc7cd3d2f
  • master default protected
  • Patrik
  • own-vm
  • Mike
5 results

eloadas.html

Blame
  • Forked from Tóth Miklós Tibor / Linux presentation 2020
    Source project has a limited visibility.
    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