0

FT232H GPIO rising
Moderators: adafruit_support_bill, adafruit

Please be positive and constructive with your questions and comments.

FT232H GPIO rising

by yhar on Thu Apr 22, 2021 2:01 am

Hi, I'm using Adafruit FT232H Breakout as a GPIO input for Windows10 PC.
Code to detect input is written in python3 and works nicely.
However, input signal tends to stay 'HIGH (True)' these days.
Is it possible to detect RISING of input signal and to set bounce time like ' RPi.GPIO' ?
e.x. GPIO.add_event_detect(24, GPIO.RISING, bouncetime=1000)

Thank you in advance !

yhar
 
Posts: 4
Joined: Thu Apr 22, 2021 1:47 am

Re: FT232H GPIO rising

by tannewt on Thu Apr 22, 2021 12:02 pm

What code are you currently using?

tannewt
 
Posts: 2428
Joined: Thu Oct 06, 2016 8:48 pm

Re: FT232H GPIO rising

by yhar on Thu Apr 22, 2021 8:37 pm

Hi, tannewt !

thank you for your responce.
my code regarding input is as follows;

import board
import digitalio

button = digitalio.DigitalInOut(board.C0)
button.direction = digitalio.Direction.INPUT

if button.value == True:
** do something **

hope you can tell from above.

if there are pages for this issue, pls kindly let me know.
thank you.

yhar
 
Posts: 4
Joined: Thu Apr 22, 2021 1:47 am

Re: FT232H GPIO rising

by yhar on Thu Apr 29, 2021 3:06 am

Hi there !
still struggling. any info regarding detect rising ?
thanx
yhar

yhar
 
Posts: 4
Joined: Thu Apr 22, 2021 1:47 am

Re: FT232H GPIO rising

by tannewt on Sun May 02, 2021 3:47 pm

The simplest thing would be to store the last state of the pin in a variable. Then you can do whatever you want when the last is False but the current state is True.

tannewt
 
Posts: 2428
Joined: Thu Oct 06, 2016 8:48 pm

Re: FT232H GPIO rising

by yhar on Sun May 09, 2021 8:08 pm

Hi tannewt,
thank you for your suggestion.
i think i can make it.

yhar
 
Posts: 4
Joined: Thu Apr 22, 2021 1:47 am

Please be positive and constructive with your questions and comments.