https://github.com/eugenedakin/lgpio-spi
SPI MCP3008 Analog to Digital (ADC) (MISO/MOSI)
https://github.com/eugenedakin/lgpio-spi
electronics gpio lgpio raspberry-pi spi xojo
Last synced: 11 months ago
JSON representation
SPI MCP3008 Analog to Digital (ADC) (MISO/MOSI)
- Host: GitHub
- URL: https://github.com/eugenedakin/lgpio-spi
- Owner: eugenedakin
- License: mit
- Created: 2024-03-10T06:28:22.000Z (over 2 years ago)
- Default Branch: main
- Last Pushed: 2024-10-16T10:43:42.000Z (over 1 year ago)
- Last Synced: 2025-03-27T12:15:18.445Z (over 1 year ago)
- Topics: electronics, gpio, lgpio, raspberry-pi, spi, xojo
- Language: Xojo
- Homepage:
- Size: 56.6 KB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# lgpio-SPI
This program uses SPI with a MCP3008 chip to convert Analog to Digital (ADC) (MISO/MOSI)

The MCP3008 chip converts analog signal to digital signals by using the SPI protocol on the Raspberry Pi 4 with Xojo.
Install instructions are:
1) sudo apt install swig python3-dev
2) sudo apt install python3-setuptools
3) sudo apt-get install libunwind8
4) wget http://abyz.me.uk/lg/lg.zip
5) unzip lg.zip
6) cd lg
7) make
8) sudo make install
9) create a Blink example program and copy the program and libraries to the RaspberryPi Desktop
10) give the executable permission to run with something like: 'sudo chmod +x HelloWorldBlink'
11) run the program with something like: 'sudo ./libGPIODSPI'