Closed thijstriemstra closed 7 years ago
Wasn't using master here but still.
$ git branch
master
* optimize-display
Agree about the devicenotfounderror, but interesting in that:
3d_box.py: error: [Errno 5] Input/output error
Possibly the simple 'hack' to the second point would be to wrap the atexit handler in a try/except/pass - after all we are in the process of exiting.
With serial-error
branch this now shows:
$ python examples/3d_box.py -i i2c
usage: 3d_box.py [-h] [--config CONFIG]
[--display {ssd1306,ssd1322,ssd1325,ssd1331,sh1106,pcd8544,st7735,max7219,neopixel}]
[--width WIDTH] [--height HEIGHT] [--rotate {0,1,2,3}]
[--interface {i2c,spi}] [--i2c-port I2C_PORT]
[--i2c-address I2C_ADDRESS] [--spi-port SPI_PORT]
[--spi-device SPI_DEVICE] [--spi-bus-speed SPI_BUS_SPEED]
[--bcm-data-command BCM_DATA_COMMAND] [--bcm-reset BCM_RESET]
[--bcm-backlight BCM_BACKLIGHT]
[--block-orientation {horizontal,vertical}]
[--mode {1,RGB,RGBA}]
[--framebuffer {diff_to_previous,full_frame}]
[--bgr {True,False}]
3d_box.py: error: I2C device not found on address: 60
Was getting this traceback when there wasn't any I2C device connected to the RPi:
I thought this
OSError
business was already fixed before; it should throw a devicenotfound error..