Search found 13 matches

by mevero
Fri Oct 28, 2022 11:54 am
Forum: Raspberry Pi microcontroller boards
Topic: Two buttons on the Pico W
Replies: 10
Views: 44801

Re: Two buttons on the Pico W

It is quite difficult for a person who is not very good in creating a script in MicroPython. More difficult when you get a script to understand a program that consists so many lines. I have had help from the “ raspberrystore.nl” in producing/making a new and shorter script. For example, the purchase...
by mevero
Fri Sep 02, 2022 12:39 pm
Forum: Raspberry Pi microcontroller boards
Topic: Two buttons on the Pico W
Replies: 10
Views: 44801

Re: Two buttons on the Pico W

My problem is solved by two members of the Raspberry Pi forum may thanks for the time you are trying the support me !!!
by mevero
Mon Aug 22, 2022 10:42 am
Forum: Raspberry Pi microcontroller boards
Topic: Two buttons on the Pico W
Replies: 10
Views: 44801

Re: Two buttons on the Pico W

After a lot of reading, thinking, trying and maybe some learning, I succeed in making a script ( after a lot trying and correcting ) Is here a script without "errors" only a bit sad that I can get NO result pushing a button. But no errors !! The result after a lot of......... Hope you can give me th...
by mevero
Fri Aug 12, 2022 11:22 am
Forum: Raspberry Pi microcontroller boards
Topic: Two buttons on the Pico W
Replies: 10
Views: 44801

Re: Two buttons on the Pico W

First of all Thank you for the link to the documentation. But I have not enough knowledge to "understand" the Micro-Python language. Maybe this is not a forum for users like me !! But i am still hoping that someone update my code and I am can go further with my project. Sorry, I understand this is n...
by mevero
Thu Aug 11, 2022 7:37 am
Forum: Raspberry Pi microcontroller boards
Topic: Two buttons on the Pico W
Replies: 10
Views: 44801

Re: Two buttons on the Pico W

Thank you very much for your reply, I think for Micro Python for the Pico W they use the command uasyncio. And I have not enough knowledge to put the information on the right place in the script I get the message don't know task.
by mevero
Wed Aug 10, 2022 10:05 am
Forum: Raspberry Pi microcontroller boards
Topic: Two buttons on the Pico W
Replies: 10
Views: 44801

Two buttons on the Pico W

I am very glad I bought a Raspberry Pico W. Only again i must feel that I am not as good as I thought. I want to make a system with two buttons an i saw a script from on YouTube form Shawn Hymel which has no deb-ounce and that was one of the items I has to solve. He told on YouTube that i was possib...
by mevero
Fri Jan 07, 2022 3:28 pm
Forum: ESP8266 boards
Topic: From Normally open to Normally closed.
Replies: 3
Views: 11284

Re: From Normally open to Normally closed.

Please would you be so kind to write the compete code, my skills are not so good to find-out to program it myself. Thanks for your help. The code at this moment print more times "wit" en "Zwart". from machine import Pin import uasyncio led = Pin(5, Pin.OUT) but1 = Pin(4, Pin.IN, Pin.PULL_UP) but2 = ...
by mevero
Tue Jan 04, 2022 11:23 am
Forum: ESP8266 boards
Topic: From Normally open to Normally closed.
Replies: 3
Views: 11284

From Normally open to Normally closed.

In my new project I want to use the same program about 2 buttons only now "when you pursed the button it goes from closed to open".
The program is ( in code) is attached "Voor NC.jpg.
by mevero
Thu Dec 16, 2021 6:31 pm
Forum: ESP8266 boards
Topic: Two buttons with bounce nearly work but...
Replies: 3
Views: 8326

Problem solved !

May the button ore a wire was not good. IT WORKS NOW !!
I can make now a lot of things Thinking of An alarm system
Thanks for the help !!
by mevero
Thu Dec 16, 2021 12:55 pm
Forum: ESP8266 boards
Topic: Two buttons with bounce nearly work but...
Replies: 3
Views: 8326

Re: Two buttons with bounce nearly work but...

Thanks for your answer, I hope this is what your asking for ?? I saw that on line it looks not as I put it there. from machine import Pin led = Pin(5, Pin.OUT) but1 = Pin(4, Pin.IN, Pin.PULL_UP) but2 = Pin(14, Pin.IN, Pin.PULL_UP) def debounce(pin): prev = None for _ in range(32): current_value = pi...