Updated to reflect wiringpi2 to wiringpi rename
diff --git a/examples/callback.py b/examples/callback.py
index 72f54f0..175482a 100644
--- a/examples/callback.py
+++ b/examples/callback.py
@@ -1,14 +1,14 @@
-import wiringpi2
+import wiringpi
PIN_TO_SENSE = 23
def gpio_callback():
print "GPIO_CALLBACK!"
-wiringpi2.wiringPiSetupGpio()
-wiringpi2.pinMode(PIN_TO_SENSE, wiringpi2.GPIO.INPUT)
-wiringpi2.pullUpDnControl(PIN_TO_SENSE, wiringpi2.GPIO.PUD_UP)
+wiringpi.wiringPiSetupGpio()
+wiringpi.pinMode(PIN_TO_SENSE, wiringpi.GPIO.INPUT)
+wiringpi.pullUpDnControl(PIN_TO_SENSE, wiringpi.GPIO.PUD_UP)
-wiringpi2.wiringPiISR(PIN_TO_SENSE, wiringpi2.GPIO.INT_EDGE_BOTH, gpio_callback)
+wiringpi.wiringPiISR(PIN_TO_SENSE, wiringpi.GPIO.INT_EDGE_BOTH, gpio_callback)
while True:
- wiringpi2.delay(2000)
+ wiringpi.delay(2000)