GithubHelp home page GithubHelp logo

rpi-gpio-tests's Introduction

#RPI-GPIO-TESTS

make busywait_test to check minimum supported busy wait delay on RPi2 and RPi3 GPIO('s)

make led_test to set a GPIO('s) connected LED to either high or low using a easy interface

Ensure that Pigpio is installed on your Pi before attempting to compile busywait_test:

http://abyz.co.uk/rpi/pigpio/download.html

###busywait_test usage/example:

Pulse GPIO 4 (default settings)
sudo ./busywait_test  4

Pulse GPIO 4 and 8 (default settings)
sudo ./busywait_test  4 8

Pulse 2us edges on GPIO 4, 7, 8, and 9 (4us square wave, 250000 highs per second).
sudo ./busywait_test  4 7 8 9 -p 2

Pulse 32us edges on GPIO 4, 7, 8, and 9  (64us square wave, 3200000 highs per second).
sudo ./busywait_test  4 7 8 9 -p 2

###led_test usage/example:

Usage:
   sudo ./led_test [GPIO] ... [OPTION] ...
      -h    sets LED to high
      -l    sets LED to low
   
   EXAMPLES:
      sudo ./led_test 14 -h
         sets LED on GPIO 14 to high
      sudo ./led_test 14 15 16 -l
         sets LED on GPIO 14 15 and 16 to low

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.