2021-02-08 20:50:53 +01:00
|
|
|
#pragma once
|
|
|
|
|
|
|
|
#include <stdint.h>
|
2021-02-08 21:03:52 +01:00
|
|
|
#include <stdbool.h>
|
2021-02-08 20:50:53 +01:00
|
|
|
|
2021-02-08 22:07:32 +01:00
|
|
|
#define DISPLAY_LINE_CURRENT_IDENTIFIER 0
|
2021-02-09 09:57:24 +01:00
|
|
|
#define DISPLAY_LINE_LAST_CONTACTS_START 5
|
|
|
|
#define DISPLAY_LINE_BATTERY_VOLTAGE 20
|
2021-02-08 22:07:32 +01:00
|
|
|
|
2021-02-08 20:50:53 +01:00
|
|
|
#ifdef PLATFORM_PINETIME
|
|
|
|
#include "display_pinetime.h"
|
|
|
|
#define platform_display_init pinetime_display_init
|
|
|
|
#define platform_display_set_brightness pinetime_display_set_brightness
|
2021-02-08 21:03:52 +01:00
|
|
|
#define platform_display_draw_string pinetime_display_draw_string
|
|
|
|
#define platform_display_set_powersave pinetime_display_set_powersave
|
2021-02-08 20:50:53 +01:00
|
|
|
#else
|
|
|
|
static inline int platform_display_init() { return 0; }
|
2021-02-08 21:03:52 +01:00
|
|
|
static inline void platform_display_set_brightness(uint8_t brightness) { (void)brightness; }
|
|
|
|
static inline void platform_display_draw_string(uint8_t x, uint8_t y, const char *str) { (void)x; (void)y; (void)str; }
|
|
|
|
static inline void platform_display_set_powersave(bool powersave) { (void)powersave; }
|
2021-02-08 20:50:53 +01:00
|
|
|
#endif
|