GithubHelp home page GithubHelp logo

df4ze / pinpoller Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 104 KB

RaspBerry PI - Alias Pin Poller - Attente passive(ne consomme pas de CPU) sur un GPIO ... d'un Raspberry PI pour l'occasion.

C++ 99.25% Shell 0.75%

pinpoller's Introduction

		
		-----=====	PinPoller =====-----
	
	Va poller un pin GPIO d'un Raspberry Pi toute les 500 milliseconds par défaut
	Va alerter en fonction des paramètres :
	 - (Edge) sur un front montant, descendant ou les 2.
	 - en continu si le mode boucle est activé
	 - en affichant plus ou moins d'information en fonction de la verbosité

	Une place est laissée libre pour ajouter des actions personnelles dans la fonction "void action_perso( void )" 
	... Pratique en mode boucle et sans verbosité.
	Mais peut etre utilisé en script en retirant le mode boucle et affichant une verbosité minimum (1)
	
	
	Pour utiliser ce source, il est necessaire soit d'installer le paquet libboost-dev, 
	soit de récupérer les sources asio.hpp et posix_time.hpp
	
	bug(s) : 
		- en mode boucle, ne ferme pas proprement le GPIO car on est obligé de killer le programme.
		- ne prend pas le X de l'option -v ....
	
	sources :
		- http://www.blaess.fr/christophe/2012/11/26/les-gpio-du-raspberry-pi/
		- http://www.boost.org/
		  plus préscisément : http://www.boost.org/doc/libs/1_35_0/doc/html/boost_asio/tutorial/tuttimer1.html
		
	
	Développé par Clément ORTIZ (08/11/2013), Open Source ;)
	
	

pinpoller's People

Watchers

James Cloos 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.