GPIO
#7
hi Wolfenstein, when I code for a pull-up on an input pin ( I'm going to put a switch on it that pulls to ground ) then I leave it with the internal pull-up ( why use an additional component if not needed ).

The place where you may need a 'stronger' pull-up is when the input is coming from an open collector output... in that case I always provide my own pull-up for the open collector.

In any case, I would not count on defaults. Something you will discover with the PineA64 GPIO channels is that they appear to always be in use the first time they are used (you'll get the already in use warning, even though they are not in use ) this does not occur with the Raspberry PI... and is probably a bug in the RPi.GPIO-PineA64 code.

I usually call GPIO.cleanup() and exit, then run the code fresh... to get around the bug.

All the registers are in the manual... read through there and see what you can discover.
marcushh777    Cool

please join us for a chat @  irc.pine64.xyz:6667   or ssl  irc.pine64.xyz:6697

( I regret that I am not able to respond to personal messages;  let's meet on irc! )
  Reply


Messages In This Thread
GPIO - by shockr - 12-21-2015, 04:25 PM
RE: GPIO - by tllim - 12-22-2015, 05:25 PM
RE: GPIO - by TonyH - 01-23-2016, 10:49 AM
RE: GPIO - by Wolfenstein - 08-03-2016, 02:54 PM
RE: GPIO - by MarkHaysHarris777 - 08-03-2016, 04:15 PM
RE: GPIO - by Wolfenstein - 08-03-2016, 05:07 PM
RE: GPIO - by MarkHaysHarris777 - 08-03-2016, 08:29 PM
RE: GPIO - by jomoengineer - 03-11-2018, 01:52 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  RPi.GPIO python module for Pine A64/A64+ aquilegia 98 131,460 12-15-2022, 08:40 PM
Last Post: Fadazo
  fm transmitter with gpio weasel18 2 4,827 09-10-2019, 04:28 AM
Last Post: desai_amogh
  How to use dts or other setup to declare gpio pin Interrupt (e.g. a button)? dkebler 1 3,594 06-12-2019, 10:37 AM
Last Post: dkebler
Lightbulb Sample GPIO codes highlighting RPi.GPIO-PineA64 and the PI bus MarkHaysHarris777 6 11,116 06-07-2019, 12:37 AM
Last Post: tllim
Star GPIO, SPI and I2C C++ Lib databit 7 11,201 02-04-2019, 05:45 AM
Last Post: Jeff R
Information Howto: Controlling Pine64 GPIO via the filesystem (sysfs) on linux pfeerick 4 11,848 01-24-2019, 03:36 AM
Last Post: Fifth
  GPIO and SPI SamR1 20 31,580 03-15-2018, 10:32 AM
Last Post: jomoengineer
  Read GPIO problem shworker 14 21,158 08-17-2017, 01:21 PM
Last Post: martinayotte
  GPIO fiq capability joseph 3 6,089 11-10-2016, 06:07 PM
Last Post: joseph
  RPI2-GPIO mus1c 6 9,076 09-22-2016, 05:28 AM
Last Post: mus1c

Forum Jump:


Users browsing this thread: 1 Guest(s)