Search found 8 matches

by Armen
Mon May 04, 2020 5:58 pm
Forum: General Discussion and Questions
Topic: DS18x20 -> ds.convert_temp() Question
Replies: 2
Views: 687

DS18x20 -> ds.convert_temp() Question

Hello PyLovers Can anyone describe me about ds.convert_temp() module ? # https://github.com/micropython/micropython/blob/master/drivers/onewire/ds18x20.py _CONVERT = const(0x44) def convert_temp(self): self.ow.reset(True) self.ow.writebyte(self.ow.SKIP_ROM) self.ow.writebyte(_CONVERT) What happen if...
by Armen
Sun Apr 26, 2020 5:51 pm
Forum: ESP8266 boards
Topic: EEPROM I2C (24C32N) on DS3231 Problem
Replies: 1
Views: 504

EEPROM I2C (24C32N) on DS3231 Problem

Hello PyLovers I try to access 24C32N (87=x57) memory of DS3231 (104) for test. I can't do it. Do you have any idea for it? Thanks Armen https://images-na.ssl-images-amazon.com/images/I/41H31B47vyL._AC_.jpg (Chip is ATHYC502-24C32N) storage capacity 32K VCC= Tested with 5.0 and 3.3 V Pull up =10K re...
by Armen
Sun Apr 19, 2020 3:01 pm
Forum: ESP8266 boards
Topic: Debouncing in IRQ
Replies: 6
Views: 1423

Re: Debouncing in IRQ

Hi Jimmo
I want select set-point for one-wire, every time push button select array number in loop and hear stable beep.
every time beep time changed :?
Thanks
BTW: I use ESP-01 (2M) with extended pins
https://www.reboot.ms/vd/esp8266_extragpio2.jpg
by Armen
Sun Apr 12, 2020 2:51 pm
Forum: ESP8266 boards
Topic: Debouncing in IRQ
Replies: 6
Views: 1423

Re: Debouncing in IRQ

Sorry I'm not sure I understand your question. What do you want to change in the IRQ handler? You asked in the other thread about cancelling the IRQ handler. You can put that line inside the "callback" function. def callback(p): print('pin change', p) print(led.value()) # Disable the IRQ. p0.irq(ha...
by Armen
Mon Apr 06, 2020 9:32 am
Forum: ESP8266 boards
Topic: Debouncing in IRQ
Replies: 6
Views: 1423

Re: Debouncing in IRQ

pythoncoder wrote:
Wed Apr 01, 2020 8:48 am
Please see my suggestion here.
OK, I'll try to learn it from
https://github.com/peterhinch/micropyth ... DRIVERS.md
and test on ESP8266 - ESP01
Thank you for send post to guide.
Armen
by Armen
Tue Mar 31, 2020 4:36 pm
Forum: ESP8266 boards
Topic: Debouncing in IRQ
Replies: 6
Views: 1423

Debouncing in IRQ

Hello MicroPython lovers I try resolve subject problem from https://forum.micropython.org/viewtopic.php?t=1938 (special thanks from dhylands for this useful post) Who can help me for change IRQ handler to resolve this problem in this example http://docs.micropython.org/en/v1.9.3/esp8266/esp8266/tuto...
by Armen
Tue Mar 31, 2020 4:28 pm
Forum: WiPy and CC3200 boards
Topic: Debouncing with IRQ
Replies: 25
Views: 28950

Re: Debouncing with IRQ

how can edit IRQ handler and disable IRQ? p0.irq(handler=None) Thank for reply but how can put it inside of handler? (special thanks from dhylands for his useful posts) Who can help me for change IRQ handler to resolve this problem in this example Please Continue to ESP8622: https://forum.micropyth...
by Armen
Mon Mar 30, 2020 7:05 pm
Forum: WiPy and CC3200 boards
Topic: Debouncing with IRQ
Replies: 25
Views: 28950

Re: Debouncing with IRQ

To debounce with an IRQ, the normal flow would go something like this: 1 - Setup pin to generate IRQ on an approriate edge 2 - In IRQ handler, disable the IRQ and start a debounce timer 3 - When the timer expires, examine the state of the pin, re-enable the edge IRQ and then do whatever callbacks a...