Files
pti-ledy/lowLevel.h
T
2026-01-29 11:37:29 +01:00

24 lines
946 B
C

#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 shiftGivenRectangleLeft(short x1, short y1, short x2, short y2, unsigned char shift_by);
void shiftGivenRectangleRight(short x1, short y1, short x2, short y2, unsigned char shift_by);
#endif // LOWLEVEL_H