Hi, all
My VoCore info: OpenWrt/Linaro GCC 4.8-2014.04 r44078
I find a question make me confused about gpio0 input value, and wiring diagram as shown below.
gpio0 can not connected anything, execpt short wire, but when I check gpio0 value, result is:
@^@, who can tell me why?
gpio0 pin as input, but is value is unstable
- evaxige
- Posts: 2
- Joined: Thu Aug 06, 2015 6:09 am
- Location: Zhengzhou, China
- Vonger
- Posts: 896
- Joined: Sun Oct 19, 2014 6:00 am
Re: gpio0 pin as input, but is value is unstable
I think maybe you have to add one pull-up resistor if you want to use gpio as input.
- evaxige
- Posts: 2
- Joined: Thu Aug 06, 2015 6:09 am
- Location: Zhengzhou, China
Re: gpio0 pin as input, but is value is unstable
Thanks Vonger, as you said add one pull-down resistor, active-hign, works well.
- Vonger
- Posts: 896
- Joined: Sun Oct 19, 2014 6:00 am
4 posts
Page 1 of 1
Who is online
Users browsing this forum: No registered users and 42 guests