Damien George
dc77fdb7d4
drivers/display/lcd160cr.py: In fast_spi, send command before flushing.
The intention of oflush() is to flush the "fast SPI" command itself so that
the SPI object is ready to use when the function returns.
6 years ago
Jim Mussared
bb3412291a
drivers/display/ssd1306: Fix super() call in SSD1306 driver.
7 years ago
Peter Hinch
479392a56e
drivers/display/ssd1306: Make SSD1306 class inherit from FrameBuffer.
7 years ago
Damien George
ca2427c313
drivers/display/ssd1306: Make poweron() work the same with SSD1306_SPI.
The poweroff() and poweron() methods are used to do soft power control of
the display, and this patch makes these methods work the same for both I2C
and SPI interfaces.
7 years ago
Tiago Queiroz
7df4083ac6
drivers/display/ssd1306: Implement SSD1306_I2C poweron method.
After a poweroff(), the poweron() method does a soft power-on and any
previous state of the display persists.
8 years ago
Peter Hinch
8fa03fee77
drivers/display/ssd1306.py: Improve performance of graphics methods.
It removes the need for a wrapper Python function to dispatch to the
framebuf method which makes each function call a bit faster, roughly 2.5x.
This patch also adds the rest of the framebuf methods to the SSD class.
7 years ago
Paul Sokolovsky
1c9ee49756
drivers: Replace deprecated Pin.high()/low() methods with .__call__(1/0).
8 years ago
Damien George
55dd83a7ba
drivers/display/lcd160cr_test: Allow test to take orientation parameter.
8 years ago
Damien George
f351c6db5e
drivers/display/lcd160cr: Fix get_line method and enhance screen_dump.
The docs are updated and describe the new behaviour of these methods.
8 years ago
Damien George
528aeb3bf3
drivers/display/lcd160cr: Add check that JPEG size is less than 65536.
8 years ago
Damien George
8400d0461d
drivers/display/lcd160cr: Fix bug with save_to_flash method.
8 years ago
Damien George
b0a6dda115
drivers/display/lcd160cr: Fix bugs with lcd.get_pixel().
Fixes issues #2880 and #2881 .
8 years ago
Stephan Brauer
8f3e07f17d
drivers/display/lcd160cr: Use correct variable in set_power().
8 years ago
Damien George
43d9f9916a
drivers/display: Add driver and test for uPy LCD160CR display.
8 years ago
Radomir Dopieralski
eb09336e99
drivers/display/ssd1306.py: Update to use FrameBuffer not FrameBuffer1
8 years ago
Damien George
7bb0f7b0f6
drivers: Add "from micropython import const" when const is used.
Following best-practice use of the const feature, to make it compatible
with Python.
8 years ago
Radomir Dopieralski
ab8a5d5199
drivers/display/ssd1306: Add width arg and support 64px wide displays.
In particular, the WeMOS D1 Mini board comes with a shield that has a
64x48 OLED display. This patch makes it display properly, with the upper
left pixel being at (0, 0) and not (32, 0).
I tried to do this with the configuration commands, but there doesn't
seem to be a command that would set the column offset (there is one for
the line offset, though).
9 years ago
Radomir Dopieralski
43c8f545d2
drivers/display/ssd1306: update SSD1306_SPI to work with new API
Makes it work on the ESP8266.
9 years ago
Damien George
73bc0c24ab
drivers: Add SSD1306 OLED driver, with I2C and SPI interfaces.
9 years ago