Skip to content

janelia-python/phidget_hello_world_python

Repository files navigation

phidget_hello_world_python

Package Information

Name
phidget_hello_world_python
Version
1.0.0
License
BSD
URL
https://github.com/janelia-python/phidget_hello_world_python
Author
Peter Polidoro
Email
[email protected]

This Python package (phidget_hello_world) creates a class named PhidgetHelloWorld.

Example Usage

Shell

phidget-hello-world-python

Python

import phidget_hello_world
phidget_hello_world.main()

Installation

Setup PhidgetSBC

https://github.com/janelia-experimental-technology/phidgets_setup

Snap

sudo snap install phidget-hello-world-python*.snap --dangerous
sudo snap connect phidget-hello-world-python:hardware-observe core:hardware-observe
sudo snap connect phidget-hello-world-python:raw-usb core:raw-usb

Setup Python

sudo apt-get install -y python3 python3-venv
mkdir ~/venvs
python3 -m venv ~/venvs/phidget
echo 'source ~/venvs/phidget/bin/activate' >> ~/.bashrc
source ~/.bashrc
pip install pip --upgrade
mkdir ~/Downloads
cd ~/Downloads
wget https://www.phidgets.com/downloads/phidget22/libraries/any/Phidget22Python.zip
unzip Phidget22Python.zip
cd Phidget22Python/
pip install .

Test Python

cd ~/Downloads
wget https://www.phidgets.com/downloads/phidget22/examples/python/Manager/Phidget22_HelloWorld_Python_Ex.zip
unzip Phidget22_HelloWorld_Python_Ex.zip -d Phidget22_HelloWorld_Python
python3 ./Phidget22_HelloWorld_Python/HelloWorld.py

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages