Skip to content

Latest commit

 

History

History
executable file
·
46 lines (33 loc) · 725 Bytes

README.md

File metadata and controls

executable file
·
46 lines (33 loc) · 725 Bytes

SSD1306

##Usage

Turn on the display:

  SSD1306.all_on

Turn off the display:

  SSD1306.all_off

Set headline (big centered yellow text)

  SSD1306.set_headline(text)

Set line of text (0-5)

  SSD1306.set_line(text, line)

example

Installation

If available in Hex, the package can be installed as:

  1. Add ssd1306 to your list of dependencies in mix.exs:
```elixir
def deps do
  [{:ssd1306, "~> 0.1.0"}]
end
```
  1. Ensure ssd1306 is started before your application:
```elixir
def application do
  [applications: [:ssd1306]]
end
```