View: 5270|Reply: 1

WiringOP and sh script

[Copy link]

2

threads

2

posts

38

credits

Novice

Rank: 1

credits
38
Published in 2017-3-4 04:57:22 | Show all floors |Read mode
Edited by danybr at 2017-3-4 05:04

Hello everybody,
I have an orangePi Lite and i have installed WiringOP from this repository: https://github.com/zhaolei/WiringOP

Now, following a tutorial, I have connect a led on the pin 29 (PA7, GPIO21).
My script, testLed.sh, has this code:
  1. #!/bin/bash

  2. gpio mode 29 out
  3. while true ; do
  4. gpio write 29 we
  5. sleep 5
  6. gpio write 29 off
  7. sleep 1
  8. done
Copy code
But it doesn't work. Can you help me?
I have an Armbian 5.25 Orangepilite_Ubuntu_xenial image.
Thanks

EDIT: OK, my fault!! The pin 29 in the code is referred on the pin 40 in the orangepi. It works

0

threads

20

posts

1609

credits

Gold member

Rank: 6Rank: 6

credits
1609
Published in 2017-3-4 05:08:11 | Show all floors
maybe .......... https://github.com/duxingkei33/orangepi_PC_gpio_pyH3

#apt-get install python-dev
#git clone https://github.com/duxingkei33/orangepi_PC_gpio_pyH3.git
#cd /root/orangepi_PC_gpio_pyH3
#python setup.py install
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list