A Python Library for NanoPlayBoard Firmata. Using this library you can interact with your NanoPlayBoard writing Python code. It runs on Python 3.
You can install it with pip
:
pip3 install nanoplayboard
Or you can also install it from source with:
python3 setup.py install
You need to have setuptools
installed.
from nanoplayboard.nanoplayboard import NanoPlayBoard
board = NanoPlayBoard()
board.rgb.on()
You can take a look at the examples folder to see how it works.
Very basic example about how to control the NanoPlayBoard RGB led using the Python library.
NanoPyMataCore
class is based on:
- pymata_core.py developed by Alan Yorinks.
- circuitplayground.py developed by Tony DiCola.
Copyright 2016 Antonio Morales and José Juan Sánchez
Licensed under the GNU General Public License, Version 3 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.gnu.org/licenses/gpl-3.0.en.html
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.