23 lines
898 B
C
23 lines
898 B
C
#ifndef PROTOTYPES_H
|
|
#define PROTOTYPES_H
|
|
|
|
#include "structs.h"
|
|
#include <Adafruit_NeoPixel.h>
|
|
|
|
extern Adafruit_NeoPixel pixels;
|
|
extern Image saved_images[MAX_IMAGES_SAVED];
|
|
extern unsigned char saved_images_count;
|
|
extern TextNode text_nodes[MAX_TEXT_NODES_COUNT];
|
|
extern Cursor cursor;
|
|
|
|
|
|
void drawImageFromMemoryByIndex(unsigned char image_index, short pos_x, short pos_y, unsigned char dim_percentage = 0);
|
|
void setPixel(short x, short y, uint32_t color);
|
|
void start_server();
|
|
void handle_server();
|
|
void addNewTextNode(char text[TEXT_MAX_LENGTH + 1], uint32_t color, bool handle_pos_via_cursor, short pos_x, short pos_y, unsigned char scroll_slowness, bool is_scrolling, bool is_small);
|
|
void scrollAllScrollableTexts(bool split_scroll_mode);
|
|
void drawCharacter(const bool (*character)[5], unsigned char height, unsigned char width, uint32_t color, Cursor (*used_cursor));
|
|
|
|
|
|
#endif // PROTOTYPES_H
|