Digital Product Details

Exploring The Raspberry Pi 2 With C++

The Introduction Of The Raspberry Pi 2 Has Ushered In Exciting New Opportunities. No Longer Is The Software Limited To One CPU Core, But Now Executes On Four. Memory Has Been Doubled To 1 GB, Providing A Larger Disk Cache And Resulting In Better SD Card Performance. This Also Leaves Room For Larger Applications. Having Four Built-In USB Ports Is Also Helpful In Avoiding The Need For A USB Hub. Some Things Have Changed Underneath The Hood As Well, Like The Physical Address For Peripherals. The Address BCM2708_PERI_BASE Has Changed From 0X20000000 To 0X3F000000 For The Raspberry Pi 2. This Means That A Lot Of Software Written For The Earlier Raspberry Pi Models Will Not Work On The New Pi 2 Without Changes. With Device Tree (DT) Support Built Into Raspbian Linux, It Is Now A Simple Matter To Automatically Detect This. Consequently, The Included librpi2 GPIO Class Detects This Automatically. The Main Purpose In This Book Is To Exploit The Raspberry Pi 2. To That End, This Book Comes With Software Libraries And Tools To Make Doing Things On Your Pi Easier. The Provided C++ Libraries Will Make It Possible To Access The GPIO And Other Peripherals With Only A Few Lines Of Code. Command Line Tools Like The Gp Command Will Give You Simple And Ready Access To List Your GPIO State And To Make Changes. A Useful Feature Of Gp Includes The Ability To “Blink” A Pin, So That You Can Verify Wiring With An LED Attached. The Gp Command Also Allows A Pin To Be “Monitored” For Changes, Making Testing Inputs Easier. All Installed Tools Include Their Own Self-Help Display (Command Option -H).
  • SKU: 978-1-4842-1739-9
  • File Size: 5.39 MB
  • File Created: 2021-08-17 17:39:17
No Wait Subscribe Now
5$ / year