Skip to content

Arduino library

mcer12 edited this page Mar 14, 2023 · 2 revisions

It works just like any other library that supports Adafruit GFX. The library model is pretty much the same as https://github.com/adafruit/Adafruit_SSD1306 and uses the same methods to work with the display. So with slight changes the examples from this library will work as well for drawing shapes, text and such. This display is much smaller in resolution tho so you'll have to generate some tiny font or take advantage of this very useful set of tiny fonts: https://github.com/robjen/GFX_fonts

Unique methods:

updateLeds()

updates leds only

updateDots()

updates dots only

setAnimation(uint8_t animation)

sets animation, available values:

  • FLIPPITY210_ANIM_SLIDE_RIGHT
  • FLIPPITY210_ANIM_SLIDE_LEFT
  • FLIPPITY210_ANIM_SLIDE_FROM_TOP
  • FLIPPITY210_ANIM_SLIDE_FROM_BOTTOM
  • FLIPPITY210_ANIM_DISSOLVE
  • FLIPPITY210_ANIM_SLIDE_RIGHT_FORCED
  • FLIPPITY210_ANIM_SLIDE_LEFT_FORCED
  • FLIPPITY210_ANIM_SLIDE_FROM_TOP_FORCED
  • FLIPPITY210_ANIM_SLIDE_FROM_BOTTOM_FORCED

Use "FORCED" animations to force change all dots instead of just the ones that need flipping. Results in slower update but consistent speed. Normal animations speed depends on number of dots to change.

setAnimationSpeed(uint8_t speed);

  • SPEED_HIGH
  • SPEED_MED
  • SPEED_LOW
  • SPEED_VERY_LOW
  • SPEED_EXTREMELY_LOW

setLedsPower(bool powerOn)

  • toggles leds power. This actually toggles the leds power source so if powered off, the leds won't work.

setBrightness(uint8_t bri)

available values:

  • 0x01 - low
  • 0x02 - med
  • 0x03 - high

setTextColor(uint8_t color)

available values:

  • FLIPPITY210_WHITE
  • FLIPPITY210_BLACK
Clone this wiki locally