Jump to content

helfis

Members
  • Posts

    14
  • Joined

  • Last visited

Everything posted by helfis

  1. i have run your python skript with the blinking LED it works! where can I get an overview of the commands that change with pyGPIO compared to RPI.GPIO.
  2. helmut@bananapim2:~$ sudo grep -i "hardware" /proc/cpuinfo Hardware : Allwinner sun6i (A31) Family helmut@bananapim2:~$ cat /etc/os-release NAME="Ubuntu" VERSION="16.04.5 LTS (Xenial Xerus)" ID=ubuntu ID_LIKE=debian PRETTY_NAME="Ubuntu 16.04.5 LTS" VERSION_ID="16.04" HOME_URL="http://www.ubuntu.com/" SUPPORT_URL="http://help.ubuntu.com/" BUG_REPORT_URL="http://bugs.launchpad.net/ubuntu/" VERSION_CODENAME=xenial UBUNTU_CODENAME=xenial helmut@bananapim2:~$ neofetch .-/+oossssoo+/-. helmut@bananapim2 `:+ssssssssssssssssss+:` ----------------- -+ssssssssssssssssssyyssss+- OS: Ubuntu 16.04.5 LTS armv7l .ossssssssssssssssssdMMMNysssso. Host: Sinovoip BPI-M2 /ssssssssssshdmmNNmmyNMMMMhssssss/ Kernel: 4.14.18-sunxi +ssssssssshmydMMMMMMMNddddyssssssss+ Uptime: 28 mins /sssssssshNMMMyhhyyyyhmNMMMNhssssssss/ Packages: 1405 (dpkg) .ssssssssdMMMNhsssssssssshNMMMdssssssss. Shell: bash 4.3.48 +sssshhhyNMMNyssssssssssssyNMMMysssssss+ Resolution: 1920x1080 ossyNMMMNyMMhsssssssssssssshmmmhssssssso DE: Xfce ossyNMMMNyMMhsssssssssssssshmmmhssssssso WM: Xfwm4 +sssshhhyNMMNyssssssssssssyNMMMysssssss+ WM Theme: Numix .ssssssssdMMMNhsssssssssshNMMMdssssssss. Theme: Numix [GTK2], Adwaita [GTK3] /sssssssshNMMMyhhyyyyhdNMMMNhssssssss/ Icons: gnome [GTK2], Adwaita [GTK3] +sssssssssdmydMMMMMMMMddddyssssssss+ Terminal: x-terminal-emul /ssssssssssshdmNNNNmyNMMMMhssssss/ CPU: Allwinner sun6i (A31) Family (4 .ossssssssssssssssssdMMMNysssso. Memory: 550MiB / 992MiB -+sssssssssssssssssyyyssss+- `:+ssssssssssssssssss+:` .-/+oossssoo+/-.
  3. i have downloaded the new master GPIO from https://github.com/chwe17/pyGPIO the installation was successful there is still a message ..... Detected processor: Allwinner sun6i (A31) Family (Probably Allwinner A31s) Warning! Detected and target processor mismatch. Do you want to continue [Y/n]? y Detected board: Bananapi M2 Correct? [Y/n] y ..... but when running python comes the following error message: can it be that my many attempts make something wrong? I do not have to uninstall anything right? Previously I had https://github.com/sgjava/userspaceio installed
  4. Banana Pi has a 40-pin GPIO header that matches that of the Model B+ Raspberry Pi. Following is the Banana Pi GPIO Pinout: https://bananapi.gitbooks.io/bpi-m2/content/en/bpi-m2_gpio_pin_define.html here is my newly created mapping.h for Banana Pi M2 mapping.h
  5. Now I want to test the GPIO from this site https://github.com/sgjava/userspaceio Download project cd ~/ git clone --depth 1 https://github.com/sgjava/userspaceio.git ok ok i have no issues now testing Python bindings libgpiod 1.1 includes Python bindings, so CFFI is not used. To run demos: the test is not ok what am I doing wrong?
  6. This side is deleated https://git.kernel.org/pub/scm/libs/libgpiod/libgpiod.git/commit/?h=v1.1.x
  7. I'll test more SBCs as I have time. Also, I have deleted https://github.com/sgjava/libgpiod-extra since User Space IO supersedes it.
  8. it does not work Thanks for the tip. Unfortunately, the processor A31s is not supported.
  9. RPi.GPIO-0.6.3 I downloaded from: https://github.com/BPI-SINOVOIP/RPi.GPIO/tree/acee51c1dd299a9bd7b8494a91549b51c89c4f93 BPI-SINOVOIP support RPi all & Banana Pi all (BPI-M1/BPI-M1+/BPI-R1/BPI-M2/BPI-M2+/BPI-M2U/BPI-M2M/BPI-M3/BPI-M64) that is the install text - I do not have a raspbian sudo pip install RPi.GPIO is not working 93$ sudo pip install RPi.GPIO sudo: pip: Befehl nicht gefunden ------------ If you want to build your own version from this downloaded copy, make sure that you have the Python development source installed first! test: $ sudo python Python 2.7.12 (default, Dec 4 2017, 14:50:18) [GCC 5.4.0 20160609] on linux2 Type "help", "copyright", "credits" or "license" for more information. >>> import RPi.GPIO as GPIO Traceback (most recent call last): File "<stdin>", line 1, in <module> File "RPi/GPIO/__init__.py", line 23, in <module> from RPi._GPIO import * ImportError: No module named _GPIO what am I doing wrong?
  10. i used GPIO.setmode(GPIO.BCM) I tried it with WiringPi installed also from lemaker banana pi (not pro) helmut@bananapim2:/$ sudo gpio -g write 4 1 helmut@bananapim2:/$ sudo gpio -g read 4 0 or: helmut@bananapim2:/$ sudo gpio write 7 1 helmut@bananapim2:/$ sudo gpio read 7 0 with helmut@bananapim2:/$ sudo gpio readall also all pins low LeMaker Banana Pi support platform with Allwinner A20. bpi M2 has an platform with Allwinner A31s. can it be that? or do I have to take the version with banana pi pro? import RPi.GPIO as GPIO GPIO.setmode(GPIO.BOARD) GPIO.setup(22, GPIO.OUT) GPIO.output(22, GPIO.HIGH) #GPIO.cleanup() it is the same .. no gpio is set
  11. Now I started Python with sudo in the terminal and entered the commands one by one. now there is no error anymore but the GPIO is still not set I'll check that with an LED
  12. Now i have install RPI-GPIO from Lemarker i used the version bananapi (not bananapipro) here are no errors installing python dev - no errors here is an errorcode and warnings step 2 is without errors now the test with Python Shell by import no answer by GPIO.setup(23, GPIO.OUT) i become an errorcode is my syntax right? GPIO not set the GPIO is now properly installed? or do I have a wrong syntax? Is there a difference in syntax between GPIO.RPI and GPIO.RPI_BP? where can i find a table with the syntax how can i test this? where is my mistake? Thanks for your help new attempt with the pythonshell why do I have to do this as root? can I change the rights to the path?
  13. It is true ... my libary is from Raspberry site and do not work how uninstall this wrong libary? than i will test the GPIO libary from Lemaker
  14. hello, im use ARMbian on bpi m2 and will programming the gpio with python. i have tested with this little script, but i become a runtimeerror. i can not use the RPI.GPO. What can i used to programming GPO with Python under bpi m2?
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines