Skip to content

Elixir library to talk to an SSD1306 display driver over I2C using Elixir ALE.

Notifications You must be signed in to change notification settings

evokly/ssd1306.ex

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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
```

About

Elixir library to talk to an SSD1306 display driver over I2C using Elixir ALE.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Elixir 100.0%