1. Demo Kivy
This program demonstrates the capabilities of Kivy on embedded systems developed by PHYTEC. It serves as a showcase for Kivy’s features and functionalities. Please refer to the Installing the Kivy layer in Yocto for instructions on how to install Kivy on PHYTEC products before running this program.
1.1. Installation
Dependencies:
kivy[full]==2.1dev0
Follow these steps to install and launch the program:
Go to the project folder
Set up and activate a virtual environment:
python3 -m venv .venvandsource .venv/bin/activateInstall the package:
pip install --editable .Launch the program with the following command:
kivydemo
If you are using the meta-phykivy layer, you can skip to the last step.
If you want to try the demo with the camera, use the following command: kivydemo -- --camera.
To use the audio, do: kivydemo -- --audio
NOTE If you want to test the camera in your virtual environment, make sure you have at least one camera provider available. If not, you can install OpenCV by running the following command
(myenv)$ pip install opencv-python
NOTE To exit the virtual environment, you can use the deactivate command. For more information, refer to the virtual environment documentation
1.2. Credits
This program was developed using the following examples from the Kivy repository and documentation:
1.3. LICENSE
This code is under the MIT license. See LICENSE for the full terms and conditions.
Images, videos and fonts can have a different license. See the different license in the folder for each resources.
3D Phytec Logo made by Manon Girard and licensed under the Creative Commons Attribution 4.0 International License. To view a copy of this license, visit http://creativecommons.org/licenses/by/4.0/.