-
Notifications
You must be signed in to change notification settings - Fork 2
/
config.py
46 lines (37 loc) · 844 Bytes
/
config.py
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
35
36
37
38
39
40
41
42
43
44
45
# config.py
# global application parameters
from array import array
# Debuglevels: 0=none, 1=verbose
DEBUG = True
USE_WIFI = False
WIFI_SSID = 'your SSID'
WIFI_PASS = 'your passcode'
WIFI_IP = 'your fixed IP' # fixed IP
WIFI_SUBNET = 'your netmask'
WIFI_GATEWAY = 'your IPgateway'
WIFI_DNS1 = 'your DNS'
# TTN
# These you need to replace with your own keys (check TTN Console)!
APP_EUI = 'your APP_EUI'
APP_KEY = 'your APP_KEY'
# you can filter that port out in the TTN mapper integration
TTN_FPort = 1
# GPS UART connection
TX = "P3"
RX = "P4"
# Display I2C connection
SDA = "P9"
SCL = "P8"
# Display contrast (1..255)
CONTRAST = 250
# Display SIGNON message
SIGNON = "TTN Tracker 1.0.1"
# Update interval
UPDATE = 30
# led colors
OFF = 0x000000
RED = 0xff0000
BLUE = 0x0000ff
GREEN = 0x00ff00
YELLOW = 0x7f7f00
PURPLE = 0x7f007f