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: ThingPulse/esp8266-oled-ssd1306
Failed to load repositories. Confirm that selected base ref is valid, then try again.
Loading
base: 4.2.1
Choose a base ref
...
head repository: ThingPulse/esp8266-oled-ssd1306
Failed to load repositories. Confirm that selected head ref is valid, then try again.
Loading
compare: 4.3.0
Choose a head ref
  • 8 commits
  • 7 files changed
  • 3 contributors

Commits on Jul 25, 2021

  1. Clean user links

    marcelstoer committed Jul 25, 2021
    Configuration menu
    Copy the full SHA
    216812c View commit details
    Browse the repository at this point in the history

Commits on Feb 14, 2022

  1. fix wrapping in drawStringMaxWidth()

    if no "break point (space or dash) was found, a character was lost in
    the word wrapping routine
    seife authored and marcelstoer committed Feb 14, 2022
    Configuration menu
    Copy the full SHA
    38c59be View commit details
    Browse the repository at this point in the history
  2. also break words on '/'

    seife authored and marcelstoer committed Feb 14, 2022
    Configuration menu
    Copy the full SHA
    f19b775 View commit details
    Browse the repository at this point in the history
  3. Configuration menu
    Copy the full SHA
    132da60 View commit details
    Browse the repository at this point in the history
  4. drawStringInternal: exit loop early if possible

    there's no use in drawing characters outside the display ;-)
    seife authored and marcelstoer committed Feb 14, 2022
    Configuration menu
    Copy the full SHA
    041ba32 View commit details
    Browse the repository at this point in the history

Commits on Mar 18, 2022

  1. Configuration menu
    Copy the full SHA
    c5a8e8c View commit details
    Browse the repository at this point in the history

Commits on Mar 27, 2022

  1. add return values to drawString & drawStringMaxWidth (#365)

    * get rid of utf8ascii()
    
    Make the drawString*() functions and getStringWidth() directly convert
    UTF-8 on the fly if needed. This saves an extra malloc for the converted
    string in most cases which then needs to be free()d and allows to count
    drawn chars even for UTF-8 strings later.
    Keep the utf8ascii() function to not break the API for derived classes.
    
    * drawStringInternal: return number of chars drawn
    
    Return the nuber of characters that was drawn. If this is less then the
    string length, then the text was too long for the display. This allows
    e.g. for custom word wrapping.
    
    * drawString: return number of characters drawn
    
    * drawStringMaxWidth: return chars written in first line
    
    This allows do scroll easily through longer texts, by noting the number
    of chars drawn in first line and then starting the text with this offset
    in the next display cycle
    
    * drawStringMaxWidth: fix UTF-8 width calculation
    
    * add SSD1306ScrollVerticalDemo example
    
    this shows how the return value of drawStringMaxWidth() can be used
    seife authored Mar 27, 2022
    Configuration menu
    Copy the full SHA
    95e6399 View commit details
    Browse the repository at this point in the history
  2. Bump version

    marcelstoer committed Mar 27, 2022
    Configuration menu
    Copy the full SHA
    057629d View commit details
    Browse the repository at this point in the history
Loading