An open API service indexing awesome lists of open source software.

https://github.com/mdp/delo

Utility for writing to an OLED on Raspberry Pi
https://github.com/mdp/delo

oled-display raspberry-pi

Last synced: 30 days ago
JSON representation

Utility for writing to an OLED on Raspberry Pi

Awesome Lists containing this project

README

          

![Oled](https://cloud.githubusercontent.com/assets/2868/22624086/01516f08-eb26-11e6-9fa9-130884d50ace.jpg)

# Delo

A utility for writing text to an SSD1306 based OLED on the Raspberry Pi.

I use cheap OLEDs to display relevant information about what's running on my Pi.
Currently the easiest route is to install the Python library and write a small
program to display text to the Pi. In my case, I just want a small, dependency
free executable which can write text out to the OLED.

#### Currently tested with

- [52pi 128x32 OLED](https://www.modmypi.com/raspberry-pi/breakout-boards/52pi/52pi-0.91-128x32-oled-screen-for-raspberry-pi)

## Example

With the 128x32 OLED:
`echo -e "192.168.0.124\nSome status\nAnother Line\nGoodbye World" | delo`

With the 128x64 OLED:
`echo -e "192.168.0.124\nSome status\nAnother Line\nGoodbye World" | delo -height 64`

## Installation

One line install and Usage (requires i2c to be enabled)

`curl https://github.com/mdp/delo/releases/download/v0.0.1/delo_Linux_arm.tar.gz | tar xvz && echo -e "Installed" | ./delo`

### Resin.io i2c setup

`modprobe i2c-dev`

**Inside of Docker**

`CMD modprobe i2c-dev && echo -e "Test output" | ./delo`

### i2c on Raspbian Jessie

1. Run sudo raspi-config.
1. Use the down arrow to select 9 Advanced Options
1. Arrow down to A7 I2C.
1. Select yes when it asks you to enable I2C
1. Also select yes when it tasks about automatically loading the kernel module.
1. Use the right arrow to select the 'Finish' button.
1. Select yes when it asks to reboot.

## License - MIT
Copyright (c) 2017 Mark Percival

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.