Skip to Content
Exploring the Raspberry Pi 2 with C++
book

Exploring the Raspberry Pi 2 with C++

by Warren Gay
November 2015
Intermediate to advanced content levelIntermediate to advanced
212 pages
4h 31m
English
Apress
Content preview from Exploring the Raspberry Pi 2 with C++

APPENDIX C

image

Class GPIO 3

This appendix documents the static class method calls for the GPIO class and is useful for those wanting to:

  • Determine the PWM number and alternate function based on gpio number

  • Delay a short period of time for configuration reasons

  • Obtain the “peripheral base” value

  • Obtain a text string for GPIO::Source value

  • Return a text string for GPIO::IO value

  • Return a descriptive string for the combination of gpio number and GPIO::IO value

For include file and linking instructions, see Appendix A.

Class Definition (Part 3)

In this third part of our look at the GPIO class, I’ll describe the methods applicable to static methods only: ...

Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Start your free trial

You might also like

Internet of Things with Raspberry Pi 3

Internet of Things with Raspberry Pi 3

Maneesh Rao

Publisher Resources

ISBN: 9781484217399Purchase book