2 commits
| Author | SHA1 | Message | Date | |
|---|---|---|---|---|
|
|
d75e0c8216 |
update test for issue #178
RESULTS: debian@beaglebone:~/ssh/adafruit-beaglebone-io-python/test$ sudo python -m pytest =================================================== test session starts ==================================================== platform linux2 -- Python 2.7.13, pytest-3.2.3, py-1.4.34, pluggy-0.4.0 rootdir: /home/debian/ssh/adafruit-beaglebone-io-python, inifile: collected 58 items test_adc.py ...... test_gpio_input.py .. test_gpio_output.py ...... test_gpio_setup.py .......... test_led.py .. test_pwm_setup.py ........................... test_spi.py .. test_uart.py ... ================================================ 58 passed in 13.31 seconds ================================================ debian@beaglebone:~/ssh/adafruit-beaglebone-io-python/test$ sudo /opt/scripts/tools/version.sh git:/opt/scripts/:[6c2688b0be448b7bb9ca18849b430d496a84acb4] eeprom:[A335BNLT000C3014BBBK1316] model:[TI_AM335x_BeagleBone_Black] dogtag:[BeagleBoard.org Debian Image 2017-10-17] bootloader:[microSD-(push-button)]:[/dev/mmcblk0]:[U-Boot 2017.09-00002-g0f3f1c7907] bootloader:[eMMC-(default)]:[/dev/mmcblk1]:[U-Boot 2017.09-rc2-00002-g84a7f2] kernel:[4.9.57-ti-r71] nodejs:[v6.11.4] uboot_overlay_options:[enable_uboot_overlays=1] uboot_overlay_options:[uboot_overlay_pru=/lib/firmware/AM335X-PRU-RPROC-4-4-TI-00A0.dtbo] uboot_overlay_options:[enable_uboot_cape_universal=1] pkg:[bb-cape-overlays]:[4.4.20171013.2-0rcnee1~stretch+20171013] pkg:[bb-wl18xx-firmware]:[1.20170829-0rcnee1~stretch+20170829] pkg:[firmware-ti-connectivity]:[20170823-1rcnee0~stretch+20170830] debian@beaglebone:~/ssh/adafruit-beaglebone-io-python/test$ debian@beaglebone:~/ssh/adafruit-beaglebone-io-python$ sudo python ./test/issue178.py ======================== test GPIO.setup(): USR0 test GPIO.output(): USR0 test GPIO.input(): USR0=1 ======================== test GPIO.setup(): USR1 test GPIO.output(): USR1 test GPIO.input(): USR1=1 ======================== test GPIO.setup(): USR2 test GPIO.output(): USR2 test GPIO.input(): USR2=1 ======================== test GPIO.setup(): USR3 test GPIO.output(): USR3 test GPIO.input(): USR3=1 ======================== test GPIO.setup(): RED_LED test GPIO.output(): RED_LED test GPIO.input(): RED_LED=1 ======================== test GPIO.setup(): GREEN_LED test GPIO.output(): GREEN_LED test GPIO.input(): GREEN_LED=1 ======================== test GPIO.setup(): BAT25 test GPIO.output(): BAT25 test GPIO.input(): BAT25=1 ======================== test GPIO.setup(): BAT50 test GPIO.output(): BAT50 test GPIO.input(): BAT50=1 ======================== test GPIO.setup(): BAT75 test GPIO.output(): BAT75 test GPIO.input(): BAT75=1 ======================== test GPIO.setup(): P8_7 test GPIO.output(): P8_7 test GPIO.input(): P8_7=1 ======================== test GPIO.setup(): P8_8 test GPIO.output(): P8_8 test GPIO.input(): P8_8=1 ======================== test GPIO.setup(): P8_17 test GPIO.output(): P8_17 test GPIO.input(): P8_17=1 ======================== test GPIO.setup(): P8_32 test GPIO.output(): P8_32 test GPIO.input(): P8_32=1 ======================== test GPIO.setup(): P8_26 test GPIO.output(): P8_26 test GPIO.input(): P8_26=1 journalctl -p debug -t python --since "1 min ago" -- Logs begin at Tue 2017-10-24 20:55:42 UTC, end at Tue 2017-10-31 04:02:47 UTC. -- Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: version <unknown> initialized Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 53 couldn't write "/sys/class/gpio/export": 16-Device or resource busy Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 53 not applicable to built-in LEDs Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: USR LED path Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/leds/beaglebone:green:usr0/brightness Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 53 0 OK Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: USR LED path Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/leds/beaglebone:green:usr0/brightness Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 53 1 OK Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: filename=/sys/class/leds/beaglebone:green:usr0/brightness Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 53 OK Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 54 couldn't write "/sys/class/gpio/export": 16-Device or resource busy Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 54 not applicable to built-in LEDs Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: USR LED path Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/leds/beaglebone:green:usr1/brightness Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 54 0 OK Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: USR LED path Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/leds/beaglebone:green:usr1/brightness Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 54 1 OK Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: filename=/sys/class/leds/beaglebone:green:usr1/brightness Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 54 OK Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 55 couldn't write "/sys/class/gpio/export": 16-Device or resource busy Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 55 not applicable to built-in LEDs Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: USR LED path Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/leds/beaglebone:green:usr2/brightness Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 55 0 OK Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: USR LED path Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/leds/beaglebone:green:usr2/brightness Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 55 1 OK Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: filename=/sys/class/leds/beaglebone:green:usr2/brightness Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 55 OK Oct 31 04:02:43 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 56 couldn't write "/sys/class/gpio/export": 16-Device or resource busy Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 56 not applicable to built-in LEDs Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: USR LED path Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/leds/beaglebone:green:usr3/brightness Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 56 0 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: USR LED path Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/leds/beaglebone:green:usr3/brightness Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 56 1 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: filename=/sys/class/leds/beaglebone:green:usr3/brightness Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 56 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 66 already exported Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 66 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio66/value Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 66 0 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio66/value Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 66 1 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: default gpio path Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: filename=/sys/class/gpio/gpio66/value Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 66 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 67 already exported Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 67 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio67/value Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 67 0 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio67/value Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 67 1 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: default gpio path Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: filename=/sys/class/gpio/gpio67/value Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 67 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 27 already exported Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 27 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio27/value Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 27 0 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio27/value Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 27 1 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: default gpio path Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: filename=/sys/class/gpio/gpio27/value Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 27 OK Oct 31 04:02:44 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 11 OK Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 11 OK Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio11/value Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 11 0 OK Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio11/value Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 11 1 OK Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: default gpio path Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: filename=/sys/class/gpio/gpio11/value Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 11 OK Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 61 already exported Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 61 OK Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio61/value Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 61 0 OK Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio61/value Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 61 1 OK Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: default gpio path Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio open_value_file: filename=/sys/class/gpio/gpio61/value Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 61 OK Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 66 already exported Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 66 OK Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio66/value Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 66 0 OK Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio66/value Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 66 1 OK Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 66 OK Oct 31 04:02:45 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 67 already exported Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 67 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio67/value Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 67 0 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio67/value Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 67 1 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 67 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 27 already exported Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 27 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio27/value Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 27 0 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio27/value Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 27 1 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 27 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 11 already exported Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 11 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio11/value Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 11 0 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio11/value Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 11 1 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 11 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_export: 61 already exported Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_direction: 61 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio61/value Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 61 0 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: default gpio path Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: filename=/sys/class/gpio/gpio61/value Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_set_value: 61 1 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_get_value: 61 OK Oct 31 04:02:46 beaglebone python[14351]: Adafruit_BBIO: gpio_unexport: 11 OK |
||
|
|
0740f75d61 |
Add test for GPIO regression #178
These are all the LEDs defined in [source/event_gpio.h](https://github.com/adafruit/adafruit-beaglebone-io-python/blob/master/source/event_gpio.h) which map to entries in `pins_t table[]` in [source/common.c](https://github.com/adafruit/adafruit-beaglebone-io-python/blob/master/source/common.c#L72) * 66 * BeagleBone (not Blue): `{ "TIMER4", "P8_7", 66, -1, -1},` * BeagleBone Blue: `{ "RED_LED", "RED", 66, -1, -1}, // LEDs` * 67 * BeagleBone (not Blue): `{ "TIMER7", "P8_8", 67, -1, -1},` * BeagleBone Blue: `{ "GREEN_LED", "GREEN", 67, -1, -1},` * 27 * BeagleBone (not Blue): `{ "GPIO0_27", "P8_17", 27, -1, -1},` * BeagleBone Blue: `{ "BAT25", "BAT25", 27, -1, -1},` * PocketBeagle: `{ "GPIO0_27", "P2_19", 27, -1, -1},` * 11 * BeagleBone (not Blue): `{ "UART5_RTSN", "P8_32", 11, -1, -1},` * BeagleBone Blue: `{ "BAT50", "BAT50", 11, -1, -1},` * 61 * BeagleBone (not Blue): ` { "GPIO1_29", "P8_26", 61, -1, -1},` * BeagleBone Blue: ` { "BAT75", "BAT75", 61, -1, -1},` NOTE: header pin modes are well defined in these PDFs: * [BBBP8Header.pdf](http://exploringbeaglebone.com/wp-content/uploads/2014/10/BBBP8Header.pdf) * [BBBP9Header.pdf](http://exploringbeaglebone.com/wp-content/uploads/2014/10/BBBP9Header.pdf) ``` import Adafruit_BBIO.GPIO as GPIO test_pins = [ "P8_7", "P8_8", "P8_17", "P8_32", "P8_26" ] for pin in test_pins: print("========================") print("test GPIO.setup(): {0}".format(pin)) GPIO.setup(pin, GPIO.OUT) print("test GPIO.output(): {0}".format(pin)) GPIO.output(pin, GPIO.HIGH) value = GPIO.input(pin); print("test GPIO.input(): {0}={1}".format(pin, value)); GPIO.cleanup() ``` ``` debian@beaglebone:~/ssh/adafruit-beaglebone-io-python$ cat /etc/dogtag BeagleBoard.org Debian Image 2017-10-17 debian@beaglebone:~/ssh/adafruit-beaglebone-io-python$ cat /etc/debian_version 9.2 debian@beaglebone:~/ssh/adafruit-beaglebone-io-python$ uname -a Linux beaglebone 4.9.57-ti-r71 #1 SMP PREEMPT Thu Oct 19 18:17:06 UTC 2017 armv7l GNU/Linux ``` ``` debian@beaglebone:~/ssh/adafruit-beaglebone-io-python$ sudo python ~/issue178.py ======================== test GPIO.setup(): P8_7 gpio_set_value: uboot_overlay_enabled() is true gpio_set_value: pocketbeagle() is FASLE gpio_set_value: beaglebone_blue() is FALSE gpio_set_value: default gpio path gpio_set_value: filename=/sys/class/gpio/gpio66/value test GPIO.output(): P8_7 gpio_set_value: uboot_overlay_enabled() is true gpio_set_value: pocketbeagle() is FASLE gpio_set_value: beaglebone_blue() is FALSE gpio_set_value: default gpio path gpio_set_value: filename=/sys/class/gpio/gpio66/value gpio open_value_file: default gpio path gpio open_value_file: filename=/sys/class/gpio/gpio66/value test GPIO.input(): P8_7=1 ======================== test GPIO.setup(): P8_8 gpio_set_value: uboot_overlay_enabled() is true gpio_set_value: pocketbeagle() is FASLE gpio_set_value: beaglebone_blue() is FALSE gpio_set_value: default gpio path gpio_set_value: filename=/sys/class/gpio/gpio67/value test GPIO.output(): P8_8 gpio_set_value: uboot_overlay_enabled() is true gpio_set_value: pocketbeagle() is FASLE gpio_set_value: beaglebone_blue() is FALSE gpio_set_value: default gpio path gpio_set_value: filename=/sys/class/gpio/gpio67/value gpio open_value_file: default gpio path gpio open_value_file: filename=/sys/class/gpio/gpio67/value test GPIO.input(): P8_8=1 ======================== test GPIO.setup(): P8_17 gpio_set_value: uboot_overlay_enabled() is true gpio_set_value: pocketbeagle() is FASLE gpio_set_value: beaglebone_blue() is FALSE gpio_set_value: default gpio path gpio_set_value: filename=/sys/class/gpio/gpio27/value test GPIO.output(): P8_17 gpio_set_value: uboot_overlay_enabled() is true gpio_set_value: pocketbeagle() is FASLE gpio_set_value: beaglebone_blue() is FALSE gpio_set_value: default gpio path gpio_set_value: filename=/sys/class/gpio/gpio27/value gpio open_value_file: default gpio path gpio open_value_file: filename=/sys/class/gpio/gpio27/value test GPIO.input(): P8_17=1 ======================== test GPIO.setup(): P8_32 gpio_set_value: uboot_overlay_enabled() is true gpio_set_value: pocketbeagle() is FASLE gpio_set_value: beaglebone_blue() is FALSE gpio_set_value: default gpio path gpio_set_value: filename=/sys/class/gpio/gpio11/value test GPIO.output(): P8_32 gpio_set_value: uboot_overlay_enabled() is true gpio_set_value: pocketbeagle() is FASLE gpio_set_value: beaglebone_blue() is FALSE gpio_set_value: default gpio path gpio_set_value: filename=/sys/class/gpio/gpio11/value gpio open_value_file: default gpio path gpio open_value_file: filename=/sys/class/gpio/gpio11/value test GPIO.input(): P8_32=1 ======================== test GPIO.setup(): P8_26 gpio_set_value: uboot_overlay_enabled() is true gpio_set_value: pocketbeagle() is FASLE gpio_set_value: beaglebone_blue() is FALSE gpio_set_value: default gpio path gpio_set_value: filename=/sys/class/gpio/gpio61/value test GPIO.output(): P8_26 gpio_set_value: uboot_overlay_enabled() is true gpio_set_value: pocketbeagle() is FASLE gpio_set_value: beaglebone_blue() is FALSE gpio_set_value: default gpio path gpio_set_value: filename=/sys/class/gpio/gpio61/value gpio open_value_file: default gpio path gpio open_value_file: filename=/sys/class/gpio/gpio61/value test GPIO.input(): P8_26=1 ``` |