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:
- sudo apt install swig python3-dev
- sudo apt install python3-setuptools
- sudo apt-get install libunwind8
- wget http://abyz.me.uk/lg/lg.zip
- unzip lg.zip
- cd lg
- make
- sudo make install
- create a Blink example program and copy the program and libraries to the RaspberryPi Desktop
- give the executable permission to run with something like: 'sudo chmod +x HelloWorldBlink'
- run the program with something like: 'sudo ./libGPIODSPI'