Jump to content

David Hampson

Members
  • Posts

    3
  • Joined

  • Last visited

Everything posted by David Hampson

  1. Please ignore the above found my own answer - for those who are looking for how to change Igor has already provided the answer for us.
  2. How do you change the main server? My /etc/apt/sources.list looks like this.... deb http://ports.ubuntu.com/ xenial main restricted universe multiverse # deb-src http://ports.ubuntu.com/ xenial main restricted universe multiverse deb http://ports.ubuntu.com/ xenial-security main restricted universe multiverse # deb-src http://ports.ubuntu.com/ xenial-security main restricted universe multiverse deb http://ports.ubuntu.com/ xenial-updates main restricted universe multiverse # deb-src http://ports.ubuntu.com/ xenial-updates main restricted universe multiverse deb http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse # deb-src http://ports.ubuntu.com/ xenial-backports main restricted universe multiverse Am I on the wrong track?
  3. Just adding that I have got this working on a pcduino 3. I used the port option as I wasn't sure what the connector names are - see below. Is it possible to view the available ports and connectors? import os, sys if not os.getegid() == 0: sys.exit('start script as root') from pyGPIO.gpio import gpio, port from time import sleep gpio.init() gpio.setcfg(port.GPIO0, 1) gpio.output(port.GPIO0, 0) sys.exit('finished ;-)')
×
×
  • Create New...

Important Information

Terms of Use - Privacy Policy - Guidelines