File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -68,8 +68,12 @@ For full documentation about available GPIO input pin configurations see the [do
6868from pi_pin_manager import PinManager
6969
7070
71+ # With configuration file
7172pins = PinManager(config_file = ' path/to/config/file.yml' )
7273
74+ # With configuration dictionary, assuming my_config_dictionary was defined
75+ # pins = PinManager(config_dict=my_config_dictionary)
76+
7377
7478# Read a pin
7579result = pins.read(18 )
@@ -112,6 +116,9 @@ class EventHandlers(object):
112116
113117
114118pins = PinManager(config_file = ' path/to/config/file.yml' , event_handlers = EventHandlers())
119+
120+ # With configuration dictionary, assuming my_config_dictionary was defined
121+ # pins = PinManager(config_dict=my_config_dictionary, event_handlers=EventHandlers())
115122```
116123
117124### Exceptions
You can’t perform that action at this time.
0 commit comments