Skip to content

eugenedakin/lgpio-SPI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

8 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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'

About

SPI MCP3008 Analog to Digital (ADC) (MISO/MOSI)

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages