cursor writing now works
This commit is contained in:
@@ -144,18 +144,12 @@ void loop()
|
|||||||
{
|
{
|
||||||
pixels.clear();
|
pixels.clear();
|
||||||
handle_server();
|
handle_server();
|
||||||
if (text_nodes[0].is_deleted)
|
if (text_nodes[0].is_deleted && text_nodes[2].is_deleted)
|
||||||
{
|
{
|
||||||
cursor.x = PANEL_MAX_X + 1;
|
cursor.x = PANEL_MAX_X + 1;
|
||||||
addNewTextNode("color", 0xFF121212, true);
|
addNewTextNode("color", 0xFF121212, true);
|
||||||
}
|
|
||||||
else if (text_nodes[1].is_deleted)
|
|
||||||
{
|
|
||||||
addNewTextNode("ful ", 0xFF000036, true);
|
addNewTextNode("ful ", 0xFF000036, true);
|
||||||
}
|
addNewTextNode("test", 0xFF121212, true);
|
||||||
else if (text_nodes[2].is_deleted)
|
|
||||||
{
|
|
||||||
{addNewTextNode("test", 0xFF121212, true);
|
|
||||||
}
|
}
|
||||||
scrollAllScrollableTexts();
|
scrollAllScrollableTexts();
|
||||||
pixels.show();
|
pixels.show();
|
||||||
|
|||||||
@@ -0,0 +1,25 @@
|
|||||||
|
#ifndef PROTOTYPES_H
|
||||||
|
#define PROTOTYPES_H
|
||||||
|
|
||||||
|
#include <Adafruit_NeoPixel.h>
|
||||||
|
#include "config.h"
|
||||||
|
#include "structs.h"
|
||||||
|
|
||||||
|
// lowLevel.ino
|
||||||
|
void setPixel(short x, short y, uint32_t color);
|
||||||
|
uint32_t getPixelColor(short x, short y);
|
||||||
|
void drawImageFromSaved(short offset_x, short offset_y, unsigned char i);
|
||||||
|
void drawCharacterPart(const bool* character_row, unsigned char width, uint32_t color, short start_x, short start_y);
|
||||||
|
void drawCharacter(const bool (*character)[5], unsigned char height, unsigned char width, uint32_t color, Cursor (*used_cursor));
|
||||||
|
void fillPixels(short x1, short y1, short x2, 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);
|
||||||
|
|
||||||
|
// server.ino
|
||||||
|
void handleRoot();
|
||||||
|
void handleUpload();
|
||||||
|
void handleShowSaved();
|
||||||
|
void start_server();
|
||||||
|
void handle_server();
|
||||||
|
|
||||||
|
#endif // PROTOTYPES_H
|
||||||
Reference in New Issue
Block a user