RPi.GPIO python module for Pine A64/A64+
#10
(06-10-2016, 04:06 AM)igna09 Wrote: Hi, i've installed this library but i'm not able to turn on a led. This is my code from python shell:

import RPi.GPIO as GPIO
GPIO.setmode(GPIO.BOARD)
GPIO.setup(20, GPIO.OUT) //i don't know if this is the right number for the pin 38
GPIO.output(20, True)

What i'm wrong?

The code seems correct. Some pin cannot be selected (for example 1, 2...). Try with pin 3 to be sure.
  Reply


Messages In This Thread
RE: RPi.GPIO python module for Pine A64/A64+ - by marco97pa - 06-10-2016, 04:16 AM

Possibly Related Threads…
Thread Author Replies Views Last Post
  fm transmitter with gpio weasel18 2 4,860 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,621 06-12-2019, 10:37 AM
Last Post: dkebler
Lightbulb Sample GPIO codes highlighting RPi.GPIO-PineA64 and the PI bus MarkHaysHarris777 6 11,204 06-07-2019, 12:37 AM
Last Post: tllim
Star GPIO, SPI and I2C C++ Lib databit 7 11,291 02-04-2019, 05:45 AM
Last Post: Jeff R
Information Howto: Controlling Pine64 GPIO via the filesystem (sysfs) on linux pfeerick 4 11,926 01-24-2019, 03:36 AM
Last Post: Fifth
  GPIO and SPI SamR1 20 31,808 03-15-2018, 10:32 AM
Last Post: jomoengineer
Question GPIO shockr 7 14,863 03-11-2018, 01:52 AM
Last Post: jomoengineer
  Read GPIO problem shworker 14 21,288 08-17-2017, 01:21 PM
Last Post: martinayotte
  Cross-wired Uart Ports between two Pine Boards via Cat5 Cable MarkHaysHarris777 10 16,092 11-20-2016, 04:17 AM
Last Post: pfeerick
  GPIO fiq capability joseph 3 6,149 11-10-2016, 06:07 PM
Last Post: joseph

Forum Jump:


Users browsing this thread: 2 Guest(s)