Files
pti-ledy/prototypes.h
T
2026-02-05 14:40:45 +01:00

26 lines
1.2 KiB
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 TextNode text_nodes[MAX_TEXT_NODES_COUNT];
extern MultiColorTextNode multi_color_text_node[MAX_TEXT_NODES_COUNT];
extern Cursor cursor;
extern unsigned char brightness;
void drawImageFromMemoryByIndex(unsigned char image_index, short pos_x, short pos_y, unsigned char brightness = 100);
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 addNewMultiColor(char text[TEXT_MAX_LENGTH + 1], RGBWithIndex colors[4], unsigned char color_count, bool handle_pos_via_cursor, short pos_x, short pos_y, unsigned char scroll_slowness, bool is_scrolling, bool is_small);
void scrollAllMultiColorTexts(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