please choosego to mobile | Continue to access the PC version
View: 3053|Reply: 2

Orange PI Zero LTS Armbian

[Copy link]

1

threads

1

posts

9

credits

Novice

Rank: 1

credits
9
Published in 2021-4-9 00:00:51 | Show all floors |Read mode
Hello. Im trying to configure w1-gpio bus on Armbian.
There are default parametrs set:
/sys/bus/w1/devices/w1_bus_master

w1_master_timeout = 10
w1_master_timeout_us = 0

How to change them? Is this possible or require recompilation of w1-gpio module?

1

threads

24

posts

105

credits

Registered member

Rank: 2

credits
105
Published in 2021-4-13 15:45:37 | Show all floors
Those commands set the output.
To control the gpio pins install this library

  1. git clone https://github.com/xpertsavenue/WiringOP-Zero.git
Copy code


If git is not installed:
  1. sudo apt install git
Copy code


  1. cd WiringOP-Zero
  2. chmod +x ./build
  3. sudo ./build
Copy code


To use from terminal as normal user

gpio readall
gpio mode 7 out  (set pin7 as output)
gpio write 7  1   (pin 7 high)
gpio write 7 0  (pin 7 low)

Hope that helps

0

threads

18

posts

190

credits

Registered member

Rank: 2

credits
190
Published in 2023-7-8 00:29:26 | Show all floors
As someone who loves outdoor adventures, I'm thrilled to see that kayaking is becoming more accessible for big guys. Let's keep spreading the word! website link
You need to log in before you can reply login | Register

Points Rule

Quick reply Top Return list