A library to use for Troyalab development boards for Python
Project description
Installation
The easiest way to install troyalab is to download it from PyPI
. It's going to install the library itself and its prerequisites as well.
$ pip install troyalab
Secondly, you can install troyalab from its source code.
$ git clone https://github.com/troyalab-fatih/BG96_RASPBERY_PI
$ cd troyalab
$ pip install -e .
Import
Then you will be able to import the library and use its functionalities.
import troyalab.RPi_Shield
You can connect to the card by typing which port your Troyalab RPi Shield is connected to.
troyalab = troyalab.RPi_Shield.BG96("/dev/ttyS0")
Then you need to adjust the GPIO settings to get your card up. And you are ready.
troyalab.setupGPIO()
troyalab.powerUp()
troyalab.getHardwareInfo()
Verison Descriptions
Version | 0.1.6 |
---|---|
Author | Fatih Furkan |
Date | 13.08.2023 |
Raspi | 4 - Model B |
Python | 3.9.2 |
Verison Descriptions
- Git and PyPI pulled to the same version.
Project details
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
troyalab-0.1.6.tar.gz
(7.6 kB
view hashes)