diff options
author | Jakob Stendahl <jakob.stendahl@outlook.com> | 2016-10-18 13:05:46 +0200 |
---|---|---|
committer | Jakob Stendahl <jakob.stendahl@outlook.com> | 2016-10-18 13:05:46 +0200 |
commit | 6dafff0b4844f50df78bc23cb5aa26ba339cc3b0 (patch) | |
tree | 404bca4bc4e25b4899510f0535207111d1c7403f /Raspberry Pi/python.py | |
parent | af2d66f9e7a604cfec51d6e7b66d5f90827fe7bb (diff) | |
download | i2c-Neopixel-6dafff0b4844f50df78bc23cb5aa26ba339cc3b0.tar.gz i2c-Neopixel-6dafff0b4844f50df78bc23cb5aa26ba339cc3b0.zip |
Updates
Added Try Catch
Cleanup of line formatting
Diffstat (limited to 'Raspberry Pi/python.py')
-rw-r--r-- | Raspberry Pi/python.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/Raspberry Pi/python.py b/Raspberry Pi/python.py index 6ebb805..ee61bec 100644 --- a/Raspberry Pi/python.py +++ b/Raspberry Pi/python.py @@ -66,9 +66,9 @@ def main(): """ Wait for heartbeat from Arduino """ while True: try: - if i2cPixel.greeting(): - print "Arduino is Online" - break + if i2cPixel.greeting(): + print "Arduino is Online" + break except Exception: pass |