03 Raspberry Pi development notes

1 GCC compiler file

  gcc -o file name to be generated -lwiringPi -lpthread source file name .c

2 If the window inside the operating system compiled script file .sh, copied to the Raspberry Pi which can not be performed, the difference investigate the reason \ r and \ r \ n of

  sed -i 's / \ r $ //' source file .sh

3 Installation wiringPi.h

  cd /tmp

  wget https://project-downloads.drogon.net/wiringpi-latest.deb

  sudo dpkg -i wiringpi-latest.deb

  Check gpio -v

  gpio readall

4

Guess you like

Origin www.cnblogs.com/Record-experience/p/12118609.html