forked from reklis/raspberrypi-twitter-mood-light
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathconfig.py
More file actions
42 lines (36 loc) · 911 Bytes
/
config.py
File metadata and controls
42 lines (36 loc) · 911 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
39
40
41
# Get your own
# http://dev.twitter.com
OAUTH_KEYS = {
'consumer_key': "9YxBTkCcerf1rG9Erdi3g",
'consumer_secret': "3fzuMs9W9jOYKgxBszvuwBbovdITQLxoTCfG1qRs",
'access_token_key': "19676092-ib5d9bnDiSX5bORp6qpHOl3EKxn1dKzI0tK08KigH",
'access_token_secret': "tJw9MKss6FEVIbVwfI2dXxFfJEWWOPHymcCNc5Gmg"
}
MOOD_LIMIT = 500
MOOD_FOLDER = "mood"
MOOD_COLORS = {
'anger': 'red',
'joy': 'yellow',
'love': 'pink',
'fear': 'green',
'surprise': 'lightblue',
'sadness': 'darkblue'
}
LED_COLORS = {
'white': 0xFFFFFF,
'red': 0xFF0000,
'pink': 0xFF00aa,
'orange': 0xFF3001,
'yellow': 0xFFaa00,
'green': 0x00FF00,
'darkblue': 0x0000FF,
'magenta': 0xFF00EE,
'black': 0x000000,
'lightblue': 0x00FFFF
}
# http://www.hobbytronics.co.uk/image/data/tutorial/raspberry-pi/gpio-pinout.jpg
LED_PINS = {
'red': 11, # GPIO 17
'green': 13, # GPIO 21
'blue': 15 # GPIO 22
}