Giter Club home page Giter Club logo

galileo-bash-io's Introduction

Galileo BASH IO

Galileo BASH IO es una colección de programas que crean una interfaz sencilla entre BASH y las entradas y salidas de la placa Intel Galileo Gen 1.

El programa principal de la interfaz es utility.sh, el cual provee:

  • Entrada de pines digitales.
  • Salida de pines digitales.
  • Entrada de pines analógicos.
  • Salida de pines PWM.
  • Entrada y salida serial.

Los nombres de los pines son los mismos que en Arduino.

Documentación

La documentación principal se encuentra en la Wiki proporcionada por GitHub y en la página del proyecto

Puedes encontrar más documentación en el directorio docs/.

Ejemplos

pinMode.sh 0 digital out strong # Salida digital fuerte
while true # Repetir:
	do
		digitalWrite.sh 0 1 # Escribe 1 en el pin 0
		sleep 1 # espera
		digitalWrite.sh 0 0 # Escribe 0 en el pin 1
		sleep 1
done
pinMode.sh 0 digital out strong # Salida digital fuerte
pinMode.sh A0 analog # Entrada analogica
while true
	do
		a=$(analogRead.sh A0)
		digitalWrite.sh 0 1 # Escribe 1 en el pin 0
		sleep $(bc -l <<< "$a/") # Espera proporcionalmente al valor del pin A0
		digitalWrite.sh 0 0
		sleep $(( 1 / a ))
done

galileo-bash-io's People

Contributors

alinarezrangel avatar

Stargazers

 avatar

Watchers

 avatar  avatar

galileo-bash-io's Issues

Support for other boards

The project can support more boards, like Intel Edison or rapsberry PI. Their usage and commands should be the same that the current functions, but their should be inside a directory with the board name. Of the project supports more boards, can be more used and user-friendly.

For example:

# Install:
./install.sh GalileoGen1
# Now the pinMode, digitalWrite, analogRead, etc functions are Galileo Gen 1-specific.
./install.sh RaspberryPI2

Some boards can be:

  • Raspberry PI 2
  • Intel Galileo Gen 2
  • Intel Edison

Others boards are welcome! :)

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.