-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconstants.py
More file actions
37 lines (32 loc) · 1.28 KB
/
Copy pathconstants.py
File metadata and controls
37 lines (32 loc) · 1.28 KB
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
import os
# Define ROM Addresses
ROM1 = [0x28,0xAD,0xCA,0x2B,0x04,0x00,0x00,0xED]
ROM2 = [0x28,0xA3,0xF6,0x2A,0x04,0x00,0x00,0xD4]
ROM3 = [0x28,0x80,0x49,0x2B,0x04,0x00,0x00,0x94]
# Define Pins
SOLENOID_PIN = 11
PUMP_PIN = 13
# Define MMI defs
FIRE_SWITCH_ON = 2
FIRE_SWITCH_AUTO = 1
FIRE_SWITCH_OFF = 0
PUMP_SWITCH_ON = 2
PUMP_SWITCH_AUTO = 1
PUMP_SWITCH_OFF = 0
# Resource Paths
if (os.name != 'nt'):
SEVEN_SEGMENT_FONT_PATH = "/home/pi/BrewComputer/resources/7segment.ttf"
BLYNK_ICON_PATH = '/home/pi/BrewComputer/resources/blynk.png'
WIFI_ICON_PATH = '/home/pi/BrewComputer/resources/wifi.png'
DATABASE_ICON_PATH = '/home/pi/BrewComputer/resources/database.png'
AMERICAN_FLAG_PATH = '/home/pi/BrewComputer/resources/americanFlag.png'
BREWERY_PNG_PATH = '/home/pi/BrewComputer/resources/breweryLayout.png'
OLD_BREWERY_PNG_PATH = '/home/pi/BrewComputer/resources/baseSetup.png'
else:
SEVEN_SEGMENT_FONT_PATH = "resources/7segment.ttf"
BLYNK_ICON_PATH = 'resources/blynk.png'
WIFI_ICON_PATH = 'resources/wifi.png'
DATABASE_ICON_PATH = 'resources/database.png'
AMERICAN_FLAG_PATH = 'resources/americanFlag.png'
BREWERY_PNG_PATH = 'resources/breweryLayout.png'
OLD_BREWERY_PNG_PATH = 'resources/baseSetup.png'