This commit is contained in:
2024-02-12 14:56:40 -03:00
parent 3d9c549b35
commit 4a3dc0e752
7 changed files with 427 additions and 16 deletions

View File

@@ -0,0 +1,40 @@
/*
* SSL_Display.hpp
*
* Created on: Feb 11, 2024
* Author: Gabriel
*/
#ifndef SRC_COMPONENTS_SSL_DISPLAY_HPP_
#define SRC_COMPONENTS_SSL_DISPLAY_HPP_
#include <FreeRTOS.h>
#include "ILI9341.hpp"
#include "SSL_GFX.hpp"
class SSL_Display {
public:
SSL_Display(ILI9341* hDisplay);
virtual ~SSL_Display();
int32_t init();
private:
ILI9341* hDisplay;
SSL_GFX robots[12] = {
SSL_GFX(hDisplay, 0, 0, buffer, 19200),
SSL_GFX(hDisplay, 80, 0, buffer, 19200),
SSL_GFX(hDisplay, 160, 0, buffer, 19200),
SSL_GFX(hDisplay, 0, 80, buffer, 19200),
SSL_GFX(hDisplay, 80, 80, buffer, 19200),
SSL_GFX(hDisplay, 160, 80, buffer, 19200),
SSL_GFX(hDisplay, 0, 160, buffer, 19200),
SSL_GFX(hDisplay, 80, 160, buffer, 19200),
SSL_GFX(hDisplay, 160, 160, buffer, 19200),
SSL_GFX(hDisplay, 0, 240, buffer, 19200),
SSL_GFX(hDisplay, 80, 240, buffer, 19200),
SSL_GFX(hDisplay, 160, 240, buffer, 19200),
};
uint8_t buffer[80][80][3];
};
#endif /* SRC_COMPONENTS_SSL_DISPLAY_HPP_ */