This commit is contained in:
2026-01-28 09:04:46 +01:00
parent e85e3a4a8c
commit f0376ea7f6
4 changed files with 41 additions and 13 deletions
+22
View File
@@ -0,0 +1,22 @@
#ifndef LOWLEVEL_H
#define LOWLEVEL_H
#include <Adafruit_NeoPixel.h>
#include "config.h"
#include "structs.h"
extern Adafruit_NeoPixel pixels;
extern unsigned char saved_images_count;
extern Cursor cursor1;
extern uint32_t saved_imaged[2][16][16];
// Function declarations
void setPixel(unsigned short x, unsigned short y, uint32_t color);
uint32_t getPixelColor(unsigned short x, unsigned short y);
void drawImageFromSaved(unsigned short offset_x, unsigned short offset_y, unsigned char i);
void drawCharacter(const bool (*character)[5], unsigned char height, unsigned char width, uint32_t color, Cursor (*used_cursor));
void fillPixels(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2, uint32_t color);
void shiftGivenRectangle(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2, unsigned char shift_by);
#endif // LOWLEVEL_H