Jump to content

adrian

Members
  • Posts

    2
  • Joined

  • Last visited

  1. hi, i read this issue to sunxi website . see this : (position of letter in alphabet - 1) * 32 + pin number http://linux-sunxi.org/GPIO Basically the same !
  2. Hi friends, i have a neo v1.0 . i changed fex file to use onewire ds18b20 sensor. but that only work with port A pins ! for example i couldn't correct result for pin G11 . it was set (wrote in the kernel message set to GPIO-x )but when i take a request to read temp , it's return conversion error in kernel message and come all zero data from sensor. this way only work with port a ! what is wrong in my job ? or is a kernel's bug ? my second question is , i read , in new kernel to define w1 pin should like as below : [gpio_para] gpio_used = 1 gpio_num = 3 gpio_pin_1 = port:PL10<1><default><default><1> gpio_pin_2 = port:PA10<1><default><default><0> gpio_pin_3 = port:PG11<0><default><default><0> <------- w1 pin [w1_para] w1_used = 1 w1_pin = 3 but that's not work and only this method work : [w1_para] w1_used = 1 w1_pin = 3 <= (alphabet - 1) * 31 + pin no. = A3 = (0-1)*31+3 = 3 thanks, adrian
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines