Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
CPPToPigpioForInstall.h
00001 #include <stdint.h> 00002 #include <pigpio.h> // include GPIO library 00003 00004 enum PinName{NC=-1, p0=0, p1, p2, p3, p4, p5, p6, p7, p8, p9, p10, p11, p12, p13, p14, p15, p16, p17, p18, p19, p20, p21, p22, p23, p24, p25, p26, p27, p28, p29, p30, p31, p32, p33, p34, p35, p36, p37, p38, p39, p40, p41, p42, p43, p44, p45, p46, p47, p48, p49, p50, p51, p52, p53}; 00005 enum PinMode{PullUp=PI_PUD_UP, PullDown=PI_PUD_DOWN, PullNone=PI_PUD_OFF}; 00006 00007 00008 namespace CPPToPigpio{ 00009 00010 class CPPToPigpio{ 00011 private: 00012 static uint32_t _number_active_devices; //Need to track number of devices so that can call gpioInitialise() if making first device 00013 protected: 00014 void _handlePigpioInitialisationIfNeeded(); 00015 void _handlePigpioTermination(); 00016 void _setupErrorHandlers(); 00017 static void errHandler(int); 00018 static void exitHandler(); 00019 00020 }; 00021 00022 } 00023
Generated on Tue Jul 12 2022 14:39:23 by
1.7.2