Search found 6 matches

by dubaleeiro
Sat Apr 28, 2018 9:43 am
Forum: Drivers for External Components
Topic: RGB and Gesture Sensor - APDS-9960
Replies: 16
Views: 6200

Re: RGB and Gesture Sensor - APDS-9960

hello gcarver , thanks a lot for your good work ! could you please give me some tips to adapt the code to the ESP8266 ? I have changed the "import! line from "import pyb" to "from machine import Pin, I2C", but I am a litte bit consusef on the following part: def __init__( self, aLoc ) : '''aLoc I2C ...
by dubaleeiro
Sun Mar 04, 2018 3:07 pm
Forum: WiPy and CC3200 boards
Topic: Debouncing with IRQ
Replies: 22
Views: 17570

Re: Debouncing with IRQ

Now I see... thank you very much !

what would be the best way to break the while True loop throught this interrupt? Based on the Pin.value() or does the DebouncedSwitch object has some debounced Pin state?

Thanks a lot for you patience and guidance :D
by dubaleeiro
Fri Mar 02, 2018 10:55 pm
Forum: WiPy and CC3200 boards
Topic: Debouncing with IRQ
Replies: 22
Views: 17570

Re: Debouncing with IRQ

@SpotlightKid I am trying to use the DebouncedSwitch to pause a loop which displays the current time in a 7-segment display, and when I execute the following code, the callback behaves as if I had pushed the button: Code: def cbButMenu(arg): print(arg, 'value') main_menu() return debMenu = Debounced...
by dubaleeiro
Wed Feb 28, 2018 8:21 pm
Forum: Drivers for External Components
Topic: Adafruit uRTC library for real time clock modules
Replies: 4
Views: 2261

Re: Adafruit uRTC library for real time clock modules

Hello, I am trying to update only one time element at a time (hour for example) using the library for DS1307 RTC, but it seems that one single element can be updated only when the "year" is part of the tuple. For example when I try: >>> rtc.datetime(urtc.datetime_tuple(year=2002)) >>> rtc.datetime()...
by dubaleeiro
Wed Feb 21, 2018 8:14 pm
Forum: WiPy and CC3200 boards
Topic: Debouncing with IRQ
Replies: 22
Views: 17570

Re: Debouncing with IRQ

Thanks a los.
It worked like a charm !
by dubaleeiro
Mon Feb 12, 2018 9:56 pm
Forum: WiPy and CC3200 boards
Topic: Debouncing with IRQ
Replies: 22
Views: 17570

Re: Debouncing with IRQ

Hello @SpotlightKid
could you please show me how to implement your code to debounce an interrupt button set to Pin23 for example? I am pretty new at Python, as you could probably notice :)
Tks!