Skip to content

Commit c71f694

Browse files
specify namespace of unexported constants
1 parent 74f2154 commit c71f694

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,14 @@ pi=Pi() #connect to pigpiod daemon on localhost
5454
## Example Usage
5555

5656
```julia
57-
set_mode(p::Pi, pin::Int, mode)
58-
get_mode(p::Pi, pin::Int)
59-
# mode can be INPUT or OUTPUT
57+
set_mode(pi::Pi, pin::Int, mode)
58+
get_mode(pi::Pi, pin::Int)
59+
# mode can be PiGPIO.INPUT or PiGPIO.OUTPUT
6060

61-
PiGPIO.read(p, pin)
62-
PiGPIO.write(p, pin, state)
63-
#state can be HIGH, LOW, ON, OFF
61+
PiGPIO.read(pi, pin)
62+
PiGPIO.write(pi, pin, state)
63+
# state can be PiGPIO.HIGH, PiGPIO.LOW, PiGPIO.ON, PiGPIO.OFF
6464

65-
PiGPIO.set_PWM_dutycycle(p, pin, dutycyle)
66-
#dutycyle defaults to a range 0-255
65+
PiGPIO.set_PWM_dutycycle(pi, pin, dutycyle)
66+
# dutycyle defaults to a range 0-255
6767
```

0 commit comments

Comments
 (0)