diff --git a/config.json b/config.json index b87a72b..b80d302 100644 --- a/config.json +++ b/config.json @@ -20,7 +20,7 @@ "columns": 32, "stride": 8, "fps": 10, - "rotation" : 0 + "rotation" : 180 }, "Boot": { "intensity": 0.03 diff --git a/demoscene.py b/demoscene.py index ff190e4..4c52068 100755 --- a/demoscene.py +++ b/demoscene.py @@ -12,7 +12,7 @@ class DemoScene: self.display = display self.intensity = 32 self.x_pos = 0 - self.text = 'example' + self.text = 'DoubleU LaMatrix' if not config: return if 'intensity' in config: diff --git a/main.py b/main.py index bd1951a..97ace50 100755 --- a/main.py +++ b/main.py @@ -44,7 +44,7 @@ else: try: # If the rpi_ws281x Python module is available, then use that... from raspberrypihal import RaspberryPiHAL as HAL - except exception as e: + except Exception as e: # ...else assume that there's an MCU (driving the display) connected # to a serial port print('HAL: failed: {}'.format(e.args[0])) diff --git a/raspberrypihal.py b/raspberrypihal.py index ed5928c..6c7c722 100644 --- a/raspberrypihal.py +++ b/raspberrypihal.py @@ -1,4 +1,4 @@ - q# HAL for Raspberry Pi with https://github.com/rpi-ws281x/rpi-ws281x-python +# HAL for Raspberry Pi with https://github.com/rpi-ws281x/rpi-ws281x-python # See https://github.com/jgarff/rpi_ws281x for more details on this library. # # The below code assumes the LED strip is connected to GPIO 18 (PCM CLK) @@ -37,7 +37,7 @@ class RaspberryPiHAL: self.right_button.when_pressed = self.button_irq_press self.left_button.when_released = self.button_irq self.right_button.when_released = self.button_irq - self.suspend_host_pin.when_held = self.button_irw_held + #self.suspend_host_pin.when_held = self.button_irq_held self.left_down_t = 0 self.right_down_t = 0 self.button_state = 0