rm-hull / luma.core

A component library providing a Pillow-compatible drawing canvas, and other functionality to support drawing primitives and text-rendering capabilities for small displays on the Raspberry Pi and other single board computers.
https://luma-core.readthedocs.io
MIT License
149 stars 52 forks source link

Format cmdline display options #69

Closed thijstriemstra closed 7 years ago

thijstriemstra commented 7 years ago

It's currently printed twice (and becoming a long list). I also suggest to use pygame or different emulator as the default option.

  --display {ssd1306,ssd1322,ssd1325,ssd1331,sh1106,pcd8544,st7735,max7219,neopixel,capture,gifanim,pygame}, -d {ssd1306,ssd1322,ssd1325,ssd1331,sh1106,pcd8544,st7735,max7219,neopixel,capture,gifanim,pygame}
                        Display type, supports real devices or emulators
                        (default: ssd1306)
thijstriemstra commented 7 years ago

70 now shows:

General:
  --config CONFIG, -f CONFIG
                        Load configuration settings from a file (default:
                        None)
  --display , -d        Display type, supports real devices or emulators.
                        Allowed values are: ssd1306, ssd1322, ssd1325,
                        ssd1331, sh1106, pcd8544, st7735, capture, gifanim,
                        pygame (default: pygame)
  --width WIDTH         Width of the device in pixels (default: 128)
  --height HEIGHT       Height of the device in pixels (default: 64)
  --rotate , -r         Rotation factor. Allowed values are: 0, 1, 2, 3
                        (default: 0)
  --interface , -i      Serial interface type. Allowed values are: i2c, spi,
                        bitbang (default: i2c)
..
etc..