23 lines
883 B
C
23 lines
883 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 shiftGivenRectangle(unsigned short x1, unsigned short y1, unsigned short x2, unsigned short y2, unsigned char shift_by);
|
|
|
|
#endif // LOWLEVEL_H
|
|
|