ESP32-PaxCounter/include/display.h

26 lines
1.0 KiB
C
Raw Normal View History

2018-07-17 15:15:58 +02:00
#ifndef _DISPLAY_H
#define _DISPLAY_H
2018-07-15 14:28:05 +02:00
2018-12-22 14:37:47 +01:00
#include "cyclic.h"
2019-09-29 16:46:48 +02:00
#include "qrcode.h"
2018-07-15 14:28:05 +02:00
extern uint8_t DisplayIsOn;
2019-02-23 21:51:24 +01:00
2019-05-31 13:20:11 +02:00
void refreshTheDisplay(bool nextPage = false);
2019-10-01 13:02:30 +02:00
void init_display(uint8_t verbose = 0);
void draw_page(time_t t, uint8_t page);
2019-10-01 13:02:30 +02:00
void dp_printf(uint16_t x, uint16_t y, uint8_t font, uint8_t inv,
const char *format, ...);
void dp_printqr(uint16_t offset_x, uint16_t offset_y, const char *Message);
void oledfillRect(uint16_t x, uint16_t y, uint16_t width, uint16_t height,
uint8_t bRender);
2019-10-05 13:12:58 +02:00
void oledScrollBufferHorizontal(uint8_t *buf, const uint16_t width,
const uint16_t height, bool left = true);
void oledScrollBufferVertical(uint8_t *buf, const uint16_t width,
const uint16_t height, int offset = 0);
2019-10-01 13:02:30 +02:00
int oledDrawPixel(uint8_t *buf, const uint16_t x, const uint16_t y,
const uint8_t dot);
2019-10-01 18:06:49 +02:00
void oledPlotCurve(uint16_t count, bool reset);
2019-10-04 15:47:33 +02:00
void oledRescaleBuffer(uint8_t *buf, const int factor);
2018-07-15 14:28:05 +02:00
#endif