akarnaukh/gpio_lib_A20

Pull working on Hardware

Closed this issue · 2 comments

Hi,
we are using similar approach for sunx and implemented the pull-funtionality in ruby (wrapping gpio_lib)
https://github.com/phortx/sunxi_gpio_gem
But it does not seem to work on hardware, I have a pull-up set-un and would expect when removing the pull up resistor on the breadboard and setting pull_up this should work.
Did you get this working on your hardware with the library?
Thanks a lot,
Christian

In my project library works.
I looked at your project. There is no definition in gpio_lib.h
#define SUNXI_GPIO_PULL_DISABLE 0
#define SUNXI_GPIO_PULL_UP 1
#define SUNXI_GPIO_PULL_DOVN 2
You have confused values
GPIO_PUD_OFF = 0
GPIO_PUD_DOWN = 1
GPIO_PUD_UP = 2
Try to fix it.

2014-09-25 0:39 GMT+04:00 Christian notifications@github.com:

Hi,
we are using similar approach for sunx and implemented the
pull-funtionality in ruby (wrapping gpio_lib)
https://github.com/phortx/sunxi_gpio_gem
But it does not seem to work on hardware, I have a pull-up set-un and
would expect when removing the pull up resistor on the breadboard and
setting pull_up this should work.
Did you get this working on your hardware with the library?
Thanks a lot,
Christian


Reply to this email directly or view it on GitHub
#1.

С уважением,
Карнаух Алексей
Генеральный директор
ООО "Дата Линк Системс"
+7(921) 632-3548 *+7(812) 633-0878*
Информация в этом сообщении предназначена исключительно для конкретных лиц,
которым она адресована. В сообщении может содержаться конфиденциальная
информация, которая не может быть раскрыта, опубликована или использована
кем-либо кроме адресатов. Любое копирование и распространение данной
информации запрещено.

THANKS !!!!!!!!!!!!!!!
Its working now - this was very helpful !!!!