lirc config not enought to configure as input GPIO

Please report any bug found here

lirc config not enought to configure as input GPIO

Postby Darioia » 01 Nov 2017, 13:13

Hi.
I use a RPI3 Rev B and rune 0.3 beta version.
I'd like to use BCM GPIO23 (J8 pin 16) to lirc (input) and I have configured in config.txt the following line:

dtoverlay=lirc-rpi,gpio_in_pin=23,gpio_out_pin=22,gpio_in_pull=up

The gpio is still configured as Out:

[root@runeaudio ~]# gpio readall
+-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
.....
| 22 | 3 | GPIO. 3 | OUT | 1 | 15 || 16 | 0 | OUT | GPIO. 4 | 4 | 23 |
.....
+-----+-----+---------+------+---+----++----+---+------+---------+-----+-----+
| BCM | wPi | Name | Mode | V | Physical | V | Mode | Name | wPi | BCM |
+-----+-----+---------+------+---+---Pi 3---+---+------+---------+-----+-----+

To solve the first problem using a python script:

#!/usr/bin/python2

import RPi.GPIO as gpio
gpio.setmode(gpio.BCM)
gpio.setup(23, gpio.IN, pull_up_down=gpio.PUD_UP)
gpio.cleanup()
exit()

and now mode2 command works.

BR
Dario

https://pastebin.com/0gcVL9a1
Darioia
 
Posts: 2
Joined: 01 Nov 2017, 02:45

Re: lirc config not enought to configure as input GPIO

Postby hondagx35 » 02 Nov 2017, 13:29

Attachments
IR_Empfänger_TSOP4838_Steckplatine.jpg
IR_Empfänger_TSOP4838_Steckplatine.jpg (47.77 KiB) Viewed 1668 times
User avatar
hondagx35
 
Posts: 3042
Joined: 11 Sep 2014, 22:06
Location: Germany

support RuneAudio Donate with PayPal


Return to Bug report

Who is online

Users browsing this forum: No registered users and 2 guests