1.3 KiB
1.3 KiB
Installation Guide for PyFT5xx6
This document provides instructions for installing the PyFT5xx6 package.
Prerequisites
- Python 3.6 or higher
- pip (Python package installer)
- For Raspberry Pi usage: Enabled I2C interface
Installation Methods
From PyPI (once published)
pip install pyft5xx6
From Source
-
Clone the repository or download the source code:
git clone https://gitea.tourolle.paris/dtourolle/PyFTtxx6 cd PyFTtxx6 -
Install using pip:
pip install ./pyft5xx6Or for development installation:
pip install -e ./pyft5xx6
Building from Source
-
Build the package:
cd pyft5xx6 python -m build -
Install the built package:
pip install dist/pyft5xx6-0.1.0-py3-none-any.whl
Verifying Installation
After installation, you can verify that the package is installed correctly:
import pyft5xx6
print(pyft5xx6.__version__)
Enabling I2C on Raspberry Pi
If you're using a Raspberry Pi, you need to enable the I2C interface:
- Run
sudo raspi-config - Navigate to "Interfacing Options" > "I2C"
- Select "Yes" to enable I2C
- Reboot your Raspberry Pi:
sudo reboot
Dependencies
The package automatically installs the following dependencies:
- smbus2
- RPi.GPIO (only on Linux platforms)