-
Notifications
You must be signed in to change notification settings - Fork 4
Expand file tree
/
Copy pathsettings.py
More file actions
38 lines (31 loc) · 773 Bytes
/
settings.py
File metadata and controls
38 lines (31 loc) · 773 Bytes
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
# Twitter settings
consumer_key="your consumer key"
consumer_secret="your consumer secret"
access_key = "your acces key"
access_secret = "your access secret"
track=["what", "you want", "to", "track"]
screen_name="yourtwitterid"
# Log file
LOG="twitterbox.log"
DEBUG=False
# Where did you plug in the light?
LIGHT_PIN = 4
LIGHT_DELAY = 10
# Define GPIO to LCD mapping
LCD_RS = 7
LCD_E = 8
LCD_D4 = 25
LCD_D5 = 24
LCD_D6 = 23
LCD_D7 = 18
# Define some device constants
LCD_WIDTH = 16 # Maximum characters per line
LCD_CHR = True
LCD_CMD = False
LCD_LINE_1 = 0x80 # LCD RAM address for the 1st line
LCD_LINE_2 = 0xC0 # LCD RAM address for the 2nd line
# Timing constants
E_PULSE = 0.00005
E_DELAY = 0.00005
# Now get the local settings
from local_settings import *