Last active
August 10, 2024 02:18
-
-
Save oliviano/d33618dc76196bcab0aba8c91346075d to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# INTRO # | |
Goal is to run circuit python on raspberry pi , and read sensor / IO and then send those value via UDP | |
### INSTALL STEPS ### | |
1) Follow the guide from adafruit [link](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi) | |
2) Test Install `ls /dev/i2c*` should return something. ( i had to cd to root dir first) | |
2) Test "blinka". as per guide: [link](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/installing-circuitpython-on-raspberry-pi), note: reactivate venv if it was used on install, elsewise module will fail to be found.\ | |
`source env/bin/activate` | |
3) Install SeeSaw\ | |
`cd ~`\ | |
`pip3 install adafruit-circuitpython-seesaw`\ | |
`pip3 list` to see the library installed\ | |
Now you can test ! | |
### ENCODER SPECIFIC STUFF ### | |
pyt | |
## TO DO ## | |
Sort out wifi code issue | |
Sort venv: either install outside of venv or have it activated on boot. | |
## other stuff ## | |
Create Env with specific folder name: ( in our above example we create an env called env) | |
tbc | |
``` | |
mkdir project-name && cd project-name | |
python3 -m venv .venv | |
source .venv/bin/activate | |
pip3 install adafruit-circuitpython-seesaw | |
``` | |
from [link](https://docs.circuitpython.org/projects/seesaw/en/latest/) | |
### Debug // Issues ### | |
thread about similar issue [link](https://forums.adafruit.com/viewtopic.php?t=189395) | |
( basically slow down the clock / read) | |
Solve How-To [link](https://learn.adafruit.com/circuitpython-on-raspberrypi-linux/i2c-clock-stretching) | |
### Boot _> run prgm ### | |
a guide [link](https://github.com/thagrol/Guides) | |
### Usefull Comands | |
`sudo shutdown -h now` Shutdwon now | |
## Set / Fix Wireless after install ## | |
error message: | |
``` | |
Wi-Fi is currently blocked by rfkill. | |
Use raspi-config to set the country before use. | |
``` | |
with: ` sudo raspi-config` go to '_5 localisatio option_' then _WLAN Country_ | |
then setting up the wifi is successful. |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment