Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 8 additions & 8 deletions source/common.c
Original file line number Diff line number Diff line change
Expand Up @@ -169,17 +169,17 @@ pins_t table[] = {
{ "DGND", "P9_46", 0, -1, -1},

// These are for the Blue
{ "GPO_0", "GP0_0", 57, -1, -1},
{ "GP0_1", "GP0_1", 49, -1, -1},
{ "GP0_2", "GP0_2", 116, -1, -1},
{ "GP0_3", "GP0_3", 113, -1, -1},
{ "GP1_0", "GP1_0", 98, -1, -1},
{ "GP1_1", "GP1_1", 97, -1, -1},
{ "GPO_3", "GP0_3", 57, -1, -1},
{ "GP0_4", "GP0_4", 49, -1, -1},
{ "GP0_5", "GP0_5", 116, -1, -1},
{ "GP0_6", "GP0_6", 113, -1, -1},
{ "GP1_3", "GP1_3", 98, -1, -1},
{ "GP1_4", "GP1_4", 97, -1, -1},
{ "RED_LED", "RED", 66, -1, -1}, // LEDs
{ "GREEN_LED", "GREEN", 67, -1, -1},

{ "UT1_0", "P9_26", 14, 1, -1},
{ "UT1_1", "P9_24", 15, 1, -1},
{ "PAUSE", "P8_9", 69, 1, -1},
{ "MODE", "P8_10", 68, 1, -1},


{ NULL, NULL, 0, 0, 0 }
Expand Down
1 change: 1 addition & 0 deletions source/event_gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -125,6 +125,7 @@ BBIO_err gpio_export(unsigned int gpio)
gpio, gpio_export, errno, strerror(errno));
ret = BBIO_SYSFS;
}
usleep(100000); // Hack to wait for newly exported pins to get correct ownership
return ret;
}

Expand Down
4 changes: 2 additions & 2 deletions source/examples/python/button.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@
import Adafruit_BBIO.GPIO as GPIO
import time

button="GP0_0" # PAUSE=P8_9, MODE=P8_10
LED ="GP0_1"
button="PAUSE" # PAUSE=P8_9, MODE=P8_10
LED ="RED_LED"

# Set the GPIO pins:
GPIO.setup(LED, GPIO.OUT)
Expand Down
4 changes: 2 additions & 2 deletions source/examples/python/gpio.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,8 @@
import Adafruit_BBIO.GPIO as GPIO
import time

LEDs = ["GP0_0", "GP0_1", "GP0_2", "GP0_3", "GP1_0", "GP1_1", "UT1_0"]
LEDs = ["GP0_3", "GP0_4", "GP0_5", "GP0_6", "GP1_3", "GP1_4",
"RED_LED", "GREEN_LED"]
for LED in LEDs:
print(LED)
GPIO.setup(LED, GPIO.OUT)
Expand All @@ -13,4 +14,3 @@
GPIO.output(LED, GPIO.HIGH)
time.sleep(0.1)
GPIO.output(LED, GPIO.LOW)
time.sleep(0.1)