aboutsummaryrefslogtreecommitdiff
path: root/Raspberry Pi/python.py
diff options
context:
space:
mode:
Diffstat (limited to 'Raspberry Pi/python.py')
-rw-r--r--Raspberry Pi/python.py14
1 files changed, 14 insertions, 0 deletions
diff --git a/Raspberry Pi/python.py b/Raspberry Pi/python.py
index 71df0de..8ed3130 100644
--- a/Raspberry Pi/python.py
+++ b/Raspberry Pi/python.py
@@ -5,12 +5,26 @@ import i2cPixel
""" Decalrations """
pixels = 10
+addresses = [0, 24, 25, 35] # legg til en start og en stopp for hvert trinn
def hexToRgb(value):
value = value.lstrip('#')
lv = len(value)
return tuple(int(value[i:i+lv/3], 16) for i in range(0, lv, lv/3))
+def lightStaircase(direction):
+ repeats = len(addresses)
+ repeats = repeats / 2
+
+ if direction = "up":
+ loopCondition = repeats
+ while loopCondition >> pixels
+
+ else:
+ loopCondition = 0
+
+ return true
+
def main():
""" Setup i2c communication """