ecoapm / simplegpio Goto Github PK
View Code? Open in Web Editor NEWA simple, low-ceremony GPIO library for all your IoT needs
License: MIT License
A simple, low-ceremony GPIO library for all your IoT needs
License: MIT License
Right now this is Linux-only. I'm not sure if UWP is the only way to access GPIO on the Windows side, but if not, create a new WindowsPinInterface
class implementing IPinInterface
with the Windows mappings.
If Windows support is UWP only, feel free to create a new SimpleGPIO.Windows
project in the solution that references SimpleGPIO
and have the WindowsPinInterface
live there.
Once PWM is implemented in #7, the RGB LED can show any RGB color!
TurnColor(Color color)
methodAs of v1.0, only GPIO is supported out-of-the-box, though SPI/I2C/UART could be implemented at the consumer-level. It'd be great to have that built into the library, especially since some of the components from #2 will probably require it.
When input pin X changes, do something to output pin Y.
Being able to dim / slow components would be cool. I have no idea how to go about doing it.
The sysfs
ABI is deprecated, plus memory mapping would be way faster than writing to the filesystem.
I think power/voltage values will be cached in memory and never updated from the filesystem. Comment here and I can help talk you through this!
I only have a Raspberry Pi, so if you have something else and want to map the GPIO pins, that would be awesome!
As a developer, I want to integrate my MFRC522 RFID Reader, so that the lib would provide a nice and clean API to this device.
First I would like to thank you for this lib, my examples are not fully working, but at least it looks promising. Are you willing to extend it to support more complex stuff? Or should this be implemented in another lib?
I'm currently trying to implement support for the MFRC522 RFID Reader, would you like me to submit a PR, if I'm done?
For more information see:
#2 provides components where all pins are directly mapped to inputs on the component. To reduce wiring to the device for some components, shift registers can be used.
This could be done as a distinct class from the direct one, abstracting a common base class with 2 implementation, or perhaps use a strategy pattern to call an internal implementation. Regardless, the public API should be consistent between both.
I have this: EM3566
Is it possible to use your library with my controller?
Create high-level objects for:
The pins required should be passed in as parameters, and the classes should contain high-level helper methods and/or properties.
Requests for additional components should be created as their own issues.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.