GithubHelp home page GithubHelp logo

sumeet84 / 96boardsgpio Goto Github PK

View Code? Open in Web Editor NEW

This project forked from 96boards/96boardsgpio

0.0 1.0 0.0 104 KB

A library to make GPIO use across 96Boards uniform

License: GNU Lesser General Public License v2.1

C 93.78% Makefile 6.22%

96boardsgpio's Introduction

This is the rudimentary beginnings of the 96BoardGPIO library
to control real world hardware via the GPIO on the 96Boards family of
boards that confirm to the CE spec.

One of the cool things about the 96Boards CE project is that all of the
boards us the same pins for the Low Speed Expansion Connector so you can
plug any expansion board into any 96Board and it will connect electrically
BUT there is a issue where GPIO is concerned.  Different SoC's have
different GPIO pins.  So even though electrically the pins are in the same
place it takes differnt code to enable and use the GPIO on pins 23 - 34. 
Not so fun.

The 96BoardGPIO library trys to abstract the info so that you can just
tell it what board you are using and what pins you want to use and the
library does the rest.

Early days, there are lots of improvements that can and I expect will
be made.  Lookup tables need to be externalized into XML so that the library
will not requre recomplation to add a new 96Boards board.  We need to
identify how we know what board is what at run time so we only need to call
an init library call and not have to input the board name.  The entire read
side needs work to setup and control the input settings.

In the mean time the demo.c file is a demo of running a motorized 
1" 12 vdc ball valve via a 5 vdc set of relays and turning on and off
said relays just becasue we can. 

The code so far has been tested on a Dragonboard 410 c where it is known to
work very well.

The gpio.c file will become a shared library that will be the under pinings
of a Python, Perl, Java and C++ librarys.  First to finish the C version.

This library (96BoardsGPIO) is free software; you can redistribute it
and/or modify it under the terms of the GNU Lesser General Public License
as published by the Free Software Foundation; either version 2.1 of the
License.

This library is distributed in the hope that it will be useful, 
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU 
Lesser General Public License for more details.

You should have received a copy of the GNU Lesser General Public 
License along with this library; if not, write to the Free Software 
Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA

96boardsgpio's People

Contributors

dmandala avatar

Watchers

skm3678 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.