-
Notifications
You must be signed in to change notification settings - Fork 15
/
HAL.h
34 lines (26 loc) · 861 Bytes
/
HAL.h
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
28
29
30
31
32
33
34
/*
* HAL.h
*
* Generic HAL interface
*
* (c) 2019 Lee Dowthwaite. All Rights Reserved.
*/
#define HELTEC
#ifdef HELTEC
// LoRa Settings
// From Heltec docs: Replace BAND to fit your hardware and location. e.g. 433E6, 470E6, 868E6, 915E6
// (it’s very important! Wrong working band will damage hardware and may illegal for your location law)
#define LORA_BAND 868e6 // 868MHz
// ESP32 I/O config
// schematic: https://github.com/Heltec-Aaron-Lee/WiFi_Kit_series/blob/master/SchematicDiagram/WiFi_LoRa_32(V2)/WIFI_LoRa_32_V2(868-915).PDF
# define LED_BUILTIN (25)
# define BTN_PROG (0)
#else
# define LED_BUILTIN (2) // standard ESP32
# define BTN_PROG (0)
#endif
// Board support interface
void configureBoard();
// Display driver interface
void clearDisplay();
void displayString(int x, int y, const char *str);