bitbank2 / ss_oled

Simple and small library to control 1-bpp OLED displays (Linux + Arduino)
GNU General Public License v3.0
190 stars 34 forks source link

Scrolling text on ATTiny #11

Closed elgranshaman closed 5 years ago

elgranshaman commented 5 years ago

Is it possible to use the scrolling function on the ATTiny? If so, could you please give me an example of how to horizontally scrolltext?

Thanks a lot

bitbank2 commented 5 years ago

Good question. Yes, you can use the scrolling text feature on any target. The first parameter to the oledWriteString() function is the scroll offset. This represents the number of pixels that the text is scrolled to the left. For example, to display the text from the start, set it to 0. To scroll the text 10 pixels to the left, set it to 10. This allows you to define a long string which doesn't fit on the display and show it scrolling left or right 1 pixel at a time.