Skip to content

Display information on OLED display connected to Orange Pi Zero

Notifications You must be signed in to change notification settings

jingl3s/OrangePiZero_OLED_Dht_display

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

16 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

.emula# OrangePiZero_OLED_Dht_display Display information on OLED display connected to Orange Pi Zero

Installation

Recurse submodule is used to get the git dependencies as per dht directory

git clone https://github.com/jingl3s/OrangePiZero_OLED_Dht_display.git --recurse-submodules

Or if you have already cloned:

git submodule update --init --recursive
  • Setup the informations needed

    • Edit the disp_oled.py
      • width, height, and number_line_per_page of oled screen
      • get_oled_device() if reset pin
      • create_dht() for your dht sensor
      • dict_pin in case of push button connected
      • page_lines settings of information displayed
      • WAIT_TIME time waiting between each page displayed
  • Service lancé au démarrage

sudo nano /lib/systemd/system/opi_oled_dht.service
[Unit]
Description=Orange Pi Display server
After=multi-user.target
[Service]
Type=idle
ExecStart=/usr/bin/python3 /home/__TBD__/OrangePiZero_OLED_Dht_display/disp_oled.py
[Install]
WantedBy=multi-user.target

TBD is defined path on your installation

sudo chmod 644 /lib/systemd/system/opi_oled_dht.service
sudo systemctl daemon-reload
sudo systemctl enable opi_oled_dht.service

Links

Licence

This code is free software; you can redistribute it and/or modify it under the terms of the BSD license (see the file COPYING.txt included with the distribution).

Meta

Jingl3s

Distribué sous la licence BSD. Voir LICENSE pour plus d'information.

Contribution

Fork du projet

About

Display information on OLED display connected to Orange Pi Zero

Topics

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages