EasyManua.ls Logo

Waveshare Pan-Tilt HAT - Examples; Download Examples to Raspberry Pi; Install Libraries

Default Icon
17 pages
Print Icon
To Next Page IconTo Next Page
To Next Page IconTo Next Page
To Previous Page IconTo Previous Page
To Previous Page IconTo Previous Page
Loading...
Pan-Tilt HAT User Manual
Version: V1.0.0; Date: 2019.03.16 6 / 17
EXAMPLES
DOWNLOAD EXAMPLES TO RASPBERRY PI
You can download the demo code from wiki, uncompressing and copy to Raspberry
Pi, or directly clone it from github:
Open terminal of Raspberry Pi and download it:
git clone https://github.com/waveshare/Pan-Tilt-HAT
Change it execute permission and enter the folder:
sudo chmod 777 -R Pan-Tilt_HAT
cd Pan-Tilt_HAT
INSTALL LIBRARIES
To run the examples, you need to install related libraries first (wiringPi, bcm2835 and
python), otherwise, examples cannot work properly.
BCM2835 libraries:
http://www.airspayce.com/mikem/bcm2835/
Download the library from bcm2835 libraries and install:
wget http://www.airspayce.com/mikem/bcm2835/bcm2835-1.58.tar.gz
sudo tar zxvf bcm2835-1.xx.tar.gz
cd bcm2835-1.xx
sudo ./configure
make