Giter Site home page Giter Site logo

sparkfunoledblock's Introduction

sparkfunOledBlock

Sample Programs for using the Sparkfun OLED Block

There are three files here, the first two lcdWakeUp.py and lcdWakeUp.service will display your Edison's IP on boot. The third is an example of reading the buttons on the Sparkfun OLED Block and display on the OLED screen.

#lcdWakeUp To use this copy lcdWakeUp.py in to /home/root on your edison, next copy lcdWakeUp.service in to /lib/systemd/system. Run the command "systemctl enable lcdWakeUp.service" after to have this run on boot.

#OLED.py This example script will read the 7 buttons on the OLED shield and display the output on the Edison. Simply run ./oled.py to execute. The only option is --debug which will display inputs on the terminal.

root@edison1:~# ./oled.py -h
usage: oled.py [-h] [--debug] [--version]
 
 Demo App for Sparkfun OLED Edison Shield
 
 optional arguments:
  -h, --help  show this help message and exit
  --debug     Display button readings on terminal
  --version   show program's version number and exit

Example

root@edison1:~# ./oled.py --debug
Starting Sparkfun OLED Edison Block Demo
Button A pressed.
Button B pressed.
Button Left pressed.
Button Right pressed.
Button Up pressed.
Button Up pressed.
Button Down pressed.
Button Select pressed.
Exiting Sparkfun OLED Edison Block Demo

sparkfunoledblock's People

Contributors

joemcmanus avatar

Watchers

James Cloos avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.