![]() ![]() Releases all pin reservations taken out by reserver. Pin() for the same pin specification must return the same If you need to change the default pin factory from within a script, either setĭevice.pin_factory to the new factory instance to use:ĭescendents must ensure that pin instances representing the same The following values, and the corresponding Factory and PinĬlasses are listed in the table below. Otherwise each of the four GPIO pin factories will be attempted to be used in ![]() If the environment variable is set, the corresponding pin factory will be used, Set the default pin factory for all future sessions too. If you add the export command to your ~/.bashrc file, you’ll > import gpiozero > Device._default_pin_factory() Python 3.7.3 (default, Apr 3 2019, 05:39:12) on linux Type "help", "copyright", "credits" or "license" for more information. > import gpiozero > Device._default_pin_factory() > quit() $ python3 ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |