Code Monkey home page Code Monkey logo

showraspberryinfo's Introduction

Show Information of Raspberry Pi

Exactly, this is my first github repository~

####Description##

  1. This software is base on WriringPi, so you must install wiringPi, before you use it.
  2. Absolutely, you need an 0.96' oled screen, a led(low level to light led), and a button(button pull to 3.3v).
  3. Hold button 2s to poweroff or hold 5s to reboot, a short press can cancle the poweroff opreation or reboot opreation.

##Hardware Prepare## About pin number code: I use the wiringPi pin mumber code.

Connect:

  • wiringPi Pin 0 ---- oled_D0
  • wiringPi Pin 1 ---- oled_D1
  • wiringPi Pin 2 ---- oled_RES
  • wiringPi Pin 3 ---- oled_DC
  • wiringPi Pin 4 ---- oled_CS
  • Board 3.3V ---- oled_VCC
  • Board GND ---- oled_GND
  • wiringPi Pin 28 ---- led
  • wiringPi Pin 29 ---- button

##Install and Run

  1. My Raspberry pi is Moudle 2B, it runs ubuntu mate and Raspbin, if your system is different from me, maybe this code not work.
  2. Please ensure that you have these files following:
  • /sys/class/thermal/thermal_zone0/temp (it include TEMP information)
  • /proc/meminfo (it include RAM information)
  1. If your system didn't have files above, please edit the "data_prepare.c" with the correct path.
  2. If your have the same hardware and system as me, you can "cd /bin" & "sudo ./main" or you can "make" in /sources
  3. If you want to run this programm when you power on, please add command to your local.rc.

showraspberryinfo's People

Contributors

jackhuang21 avatar

Watchers

 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.