diff options
author | Jakob Stendahl <JakobS1n@users.noreply.github.com> | 2016-10-02 10:21:13 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-10-02 10:21:13 +0200 |
commit | 175d4b91a2c53f67d6e4efa4fb2e62b753707d18 (patch) | |
tree | b9c8df1be7a14012b946f060f2906f702b4fd43d | |
parent | 2ad11be2858a7e521924971baa6d6eee4b3a281f (diff) | |
download | i2c-Neopixel-175d4b91a2c53f67d6e4efa4fb2e62b753707d18.tar.gz i2c-Neopixel-175d4b91a2c53f67d6e4efa4fb2e62b753707d18.zip |
Update python.py
Just a save
-rw-r--r-- | Raspberry Pi/python.py | 14 |
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 """ |