Deruio wiringpi user manual v001

Source: Internet
Author: User

Directory

1 wiringpi overview... 3

1.1 Introduction to devlib... 3

1.2 introduction to piface... 4

1.3gertboard introduction... 4

1.4wiringpi extension... 4

1.5wiringpi installation... 5

1.5.1 Use git tools... 5

1.5.2 offline installation... 6

1.5.3 test whether wiringpi is successfully installed... 7

2 wiringpi setting function... 8

2.1wiringpisetup function... 8

2.2wiringpisetupgpio function... 9

2.3wiringpisetupphys function... 9

2.4wiringpisetupsys function... 9

3 wiringpi core functions... 9

3.1 pinmode function... 10

3.2pullupdncontrol function... 10

3.3digitalwrite function... 10

3.4 pwmwrite function... 11

3.5digitalread function... 11

3.6analogread function... 11

3.7analogwrite function... 11

4 raspberrypi special functions... 12

4.1digitalwritebyte function... 12

4.2 pwmsetmode function... 12

4.3pwmsetrange function... 12

4.4pwmsetclock function... 13

4.5piboardrev function... 13

4.6wpipintogpio function... 13

4.7physpintogpio function... 13

4.8 setpaddrive function... 14

5 I2C library... 14

5.1wiringpii2csetup function... 15

5.2wiringpii2cread function... 15

5.3wiringpii2cwrite function... 15

5.4wiringpii2cwritereg8 and wiringpii2cwritereg16 functions... 15

5.5wiringpii2creadreg8 and wiringpii2creadreg16 functions... 16

6 SPI library... 16

6.1 intwiringpispisetup function... 16

6.2wiringpispidatarw function... 17

7. Serial library... 17

7.1serialopen function... 17

7.2serialclose function... 18

7.3serialputchar function... 18

7.4serialputs function... 18

7.5serialprintf function... 18

7.6serialdataavail function... 18

7.7serialgetchar function... 19

7.8serialflush function... 19

7.9 advanced serial port control... 19

8 software PWM library... 20

8.1softpwmcreate function... 21

8.2softpwmwrite function... 21

9 time functions... 21

9.1 millis function... 21

9.2 micros functions... 22

9.3 delay function... 22

9.4delaymicroseconds function... 22

10 priority/time/thread... 22

10.1pihipri function... 23

10.2waitforinterrupt function... 23

10.3wiringpiisr function... 24

10.4pithreadcreate function... 25

10.5 pilock and piunlock functions... 25

11 conversion library... 26

11.1shiftin function... 26

11.2shiftout function... 26

12 software audio library... 27

12.1softtonecreate function... 27

12.2 softtonewrite function... 28

 

[] Http://download.csdn.net/detail/poonjun/7905959

Deruio wiringpi user manual v001

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.