Skip to content
Permalink

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also or learn more about diff comparisons.

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also . Learn more about diff comparisons here.
base repository: micropython/micropython
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: master
Choose a base ref
...
head repository: codemee/micropython
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: master
Choose a head ref
Checking mergeability… Don’t worry, you can still create the pull request.
  • 1 commit
  • 1 file changed
  • 1 contributor

Commits on Aug 18, 2021

  1. Add hardware scrolling functionalities.

    Changes to be committed:
    modified:   drivers/display/ssd1306.py
    
    The scroll method in the MicroPython's ssd1306 class is based on FrameBuffer class's scroll().That may leave a footprint of the previous colors in the FrameBuffer.
    
    By adopting the modified version of the ssd1306 class written by Tim Toliver, we add the following methods to the ssd1306 class:
    
        - clear():clear the OLED.
        - hw_scroll_h(direction=True, interval=FRAMES_5):continuously scroll to right/left.
            - direction: True/False, scroll to right/left.
            - interval:
                - SSD1306.FRAMES_2
                - SSD1306.FRAMES_3
                - SSD130.FRAMES_4
                - SSD130.FRAMES_5
                - SSD130.FRAMES_25
                - SSD130.FRAMES_64
                - SSD130.FRAMES_128
                - SSD130.FRAMES_256
                One frame approximate 9.19ms.
        - hw_scroll_diag(direction=True, interval=FRAMES_5, offset=1):continuously scroll to up-right/up-left.
            - offset: vertical offset per scroll.
        - hw_scroll_off():stop scrolling.
    codemee committed Aug 18, 2021
    Configuration menu
    Copy the full SHA
    6ceb9e4 View commit details
    Browse the repository at this point in the history
Loading