Skip to content

Library inspired on Arduino commands for Vocore2 GPIO pins control.

License

Notifications You must be signed in to change notification settings

BryanCMBarbosa/Vocore2-GPIO

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

10 Commits
 
 
 
 
 
 

Repository files navigation

Vocore2 GPIO Python Library

This is an Arduino inspired library for Vocore2 GPIO pins control.

Made by Bryan Barbosa from Federal University of Juiz de Fora and CREA - University of California, Berkeley.

Importing

The library can be used simply by importing the Python file to your project.

import vocoreGPIO

For an easier and more Arduino-like control, we recommend to import as:

from vocoreGPIO import *

Usage

The usage of the library is simple as a normal Arduino pin control. For example, for a classic blink led:

from vocoreGPIO import *

pinMode(40, 'OUTPUT')

while(1):
    digitalWrite(40, 'HIGH')
    delay(1000)
    digitalWrite(40, 'LOW')
    delay(1000)

Note that the only differences between these commands and the commands used in Arduino are the quotation marks for passing the words 'OUTPUT', 'INPUT', 'HIGH' and 'LOW' as parameters.

Contributing

Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

Please make sure to update tests as appropriate.

License

MIT

About

Library inspired on Arduino commands for Vocore2 GPIO pins control.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages