Skip to content

Commit 2207e9d

Browse files
author
Brian Hines
committed
Improve examples a bit
1 parent b4abdb2 commit 2207e9d

1 file changed

Lines changed: 7 additions & 0 deletions

File tree

README.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,12 @@ For full documentation about available GPIO input pin configurations see the [do
6868
from pi_pin_manager import PinManager
6969

7070

71+
# With configuration file
7172
pins = 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
7579
result = pins.read(18)
@@ -112,6 +116,9 @@ class EventHandlers(object):
112116

113117

114118
pins = 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

0 commit comments

Comments
 (0)