summaryrefslogtreecommitdiff
path: root/main.h
blob: e3df3190111cef670148faf25d9fb54cadb7b854 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
#pragma once
#include <stdint.h>
#include "config.h"

#ifdef ARDUINO
#define NO_DISPLAY
#define harfe_debug(...)
#define harfe_error(...)
#else
#define harfe_debug printf
#define harfe_error fprintf
#endif

uint32_t now(); // get monotonic time in ms

extern int g_width;
extern int g_height;
extern int g_harfe_connected;

/* 0 unconfigured
   1 import from Harfe
   2 import from File
   3 modified locally
*/
extern ConfigSource g_config_source;

extern int g_harfe_fd;