diff --git a/gfxlcd/tests/dummy_test.py b/gfxlcd/tests/dummy_test.py new file mode 100644 index 0000000..360a45d --- /dev/null +++ b/gfxlcd/tests/dummy_test.py @@ -0,0 +1,6 @@ +from nose.tools import assert_equal + + +class DummyTest(object): + def test_init(self): + assert_equal(1, 1) diff --git a/readme.md b/readme.md index 90cec37..f260d85 100644 --- a/readme.md +++ b/readme.md @@ -16,7 +16,7 @@ Wiring is below Initialization === -##SSD1306 +## SSD1306 ### SPI from driver.ssd1306.spi import SPI @@ -35,7 +35,7 @@ If you want to set your own pins: o = SSD1306(128, 64, drv) o.init() -##NJU6450 +## NJU6450 ### GPIO from gfxlcd.driver.nju6450.gpio import GPIO @@ -66,7 +66,7 @@ Custom wiring: o = NJU6450(122, 32, drv) o.init() -##ILI9325 +## ILI9325 ### GPIO from gfxlcd.driver.ili9325.gpio import GPIO @@ -99,17 +99,17 @@ Custom pins: Drawing functions === -draw_pixel +draw_pixel(x, y) -draw_line +draw_line(from_x, from_y, to_x, to_y) -draw_rect +draw_rect(x1, y1, x2, y2) -draw_circle +draw_circle(x1, y1, radius) -draw_arc +draw_arc(x1, y1, radius, from_angle, to_angle -fill_rect +fill_rect(x1, y1, x2, y2) Colours @@ -121,7 +121,7 @@ lcd.background_color = (r, g ,b) Wiring === -##SSD1306 +## SSD1306 ### SPI SPI wiring + 2 additional pins. Defaults: @@ -134,7 +134,7 @@ SPI wiring + 2 additional pins. Defaults: D/C ----------- G6 -##NJU6450 +## NJU6450 ### GPIO Default wiring: @@ -159,7 +159,7 @@ Default wiring: 17 (A) ------- +5V 18 (K) ------- GND -##ILI9325 +## ILI9325 ### GPIO Default: diff --git a/tox.ini b/tox.ini index 0b0eeda..c9340d5 100644 --- a/tox.ini +++ b/tox.ini @@ -10,7 +10,7 @@ deps= flake8 pylint whitelist_externals = /bin/bash -commands= nosetests --with-xunit --xunit-file=junit-{envname}.xml charlcd/tests +commands= nosetests --with-xunit --xunit-file=junit-{envname}.xml gfxlcd/tests rm flake8-{envname}.log /bin/bash -c "flake8 --output-file=flake8-{envname}.log gfxlcd || :" /bin/bash -c "pylint gfxlcd > pylint-{envname}.log || :"