summaryrefslogtreecommitdiffstatshomepage
path: root/drivers/display
Commit message (Collapse)AuthorAge
* drivers: Remove drivers that are now in micropython-lib.Jim Mussared2022-09-08
| | | | Signed-off-by: Jim Mussared <jim.mussared@gmail.com>
* drivers/display: Don't include tests by default.Damien George2022-09-06
| | | | | | | | The tests can be copied to the board if needed. Also update the docs to reflect this change. Signed-off-by: Damien George <damien@micropython.org>
* all: Update all manifest.py files to use new features.Jim Mussared2022-09-05
| | | | | | | | | | | | | | | | | | | | | Changes in this commit: - Manifest include's now use the directory path where possible (no longer necessary to include the manifest.py file explicitly). - Add manifest.py for all drivers and components that are referenced by port/board manifests. - Replace all uses of freeze() with package()/module(), except for port and board modules. - Use opt=3 everywhere, for consistency and to reduce code size. - Use require() instead of include() for all micropython-lib references. - Remove support for optional board-level manifest.py in mimxrt port, to make it behave the same as other ports (the board must set FROZEN_MANIFEST to a custom manifest.py, which can optionally include the default, port-level manifest). - Also reinstates modules that were accidentally removed from the esp8266 512k build in fbe9417b90474dd1a08749b3a79311a8007a98fb. Signed-off-by: Jim Mussared <jim.mussared@gmail.com> Signed-off-by: Damien George <damien@micropython.org>
* drivers/display/ssd1306.py: Add support for 72x40 displays.Mike Causer2021-06-17
| | | | | | | | | | | | | | | | The 72x40 OLED requires selecting the internal IREF, as opposed to the default external IREF. This is an undocumented feature in the SSD1306 datasheet, but is present in the SSD1315 datasheet. It's possible the 72x40 OLED is actually using the newer SSD1315 controller. Sending the IREF select command to SSD1306 displays has no effect on them, so it's added to the init_display() instead of wrapping in an "if width = 72". Also tested on a 128x64 OLED using the SSD1315 controller (smaller ribbon cable) and the proposed change has no effect on the display, as the module comes with the correct current limiting resistor. Internal and external IREF work the same. Fixes issue #7281.
* drivers/display/ssd1306.py: Add rotate method.Mike Causer2021-05-06
| | | | And clean up (make more efficient) display set-up commands.
* drivers/display/ssd1306.py: Change the SET_COM_PIN_CFG setting.robert-hh2020-04-07
| | | | | | Making it more specific to use 0x02 for display with an aspect ratio > 2 (resolutions 96x16 and 128x32) and 0x12 for all other sizes as recommended by @mcauser. Tested with a 64x32 display which did not work before.
* all: Reformat C and Python source code with tools/codeformat.py.Damien George2020-02-28
| | | | This is run with uncrustify 0.70.1, and black 19.10b0.
* drivers/display/ssd1306.py: Change to use new i2c.writevto() method.Damien George2019-05-20
| | | | Fixes issue #3482.
* drivers/display/lcd160cr.py: In fast_spi, send command before flushing.Damien George2018-09-18
| | | | | 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.
* drivers/display/ssd1306: Fix super() call in SSD1306 driver.Jim Mussared2018-01-10
|
* drivers/display/ssd1306: Make SSD1306 class inherit from FrameBuffer.Peter Hinch2017-12-13
|
* drivers/display/ssd1306: Make poweron() work the same with SSD1306_SPI.Damien George2017-10-06
| | | | | | 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.
* drivers/display/ssd1306: Implement SSD1306_I2C poweron method.Tiago Queiroz2017-10-06
| | | | | After a poweroff(), the poweron() method does a soft power-on and any previous state of the display persists.
* drivers/display/ssd1306.py: Improve performance of graphics methods.Peter Hinch2017-09-25
| | | | | | 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.
* drivers: Replace deprecated Pin.high()/low() methods with .__call__(1/0).Paul Sokolovsky2017-05-21
|
* drivers/display/lcd160cr_test: Allow test to take orientation parameter.Damien George2017-05-17
|
* drivers/display/lcd160cr: Fix get_line method and enhance screen_dump.Damien George2017-05-17
| | | | The docs are updated and describe the new behaviour of these methods.
* drivers/display/lcd160cr: Add check that JPEG size is less than 65536.Damien George2017-02-27
|
* drivers/display/lcd160cr: Fix bug with save_to_flash method.Damien George2017-02-24
|
* drivers/display/lcd160cr: Fix bugs with lcd.get_pixel().Damien George2017-02-21
| | | | Fixes issues #2880 and #2881.
* drivers/display/lcd160cr: Use correct variable in set_power().Stephan Brauer2017-02-17
|
* drivers/display: Add driver and test for uPy LCD160CR display.Damien George2017-01-23
|
* drivers/display/ssd1306.py: Update to use FrameBuffer not FrameBuffer1Radomir Dopieralski2016-12-01
|
* drivers: Add "from micropython import const" when const is used.Damien George2016-11-03
| | | | | Following best-practice use of the const feature, to make it compatible with Python.
* drivers/display/ssd1306: Add width arg and support 64px wide displays.Radomir Dopieralski2016-06-26
| | | | | | | | | | 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).
* drivers/display/ssd1306: update SSD1306_SPI to work with new APIRadomir Dopieralski2016-06-03
| | | | Makes it work on the ESP8266.
* drivers: Add SSD1306 OLED driver, with I2C and SPI interfaces.Damien George2016-04-12