Search found 31 matches

by snake77
Mon Oct 18, 2021 9:54 pm
Forum: General Discussion and Questions
Topic: Is built-in function iter only partially implemented?
Replies: 6
Views: 2754

Re: Is built-in function iter only partially implemented?

Well, for the second argument for next there is a very easy obvious workaround with try ... except StopIteration. Am I overlooking the easy workaround for the missing second argument of iter?
by snake77
Sun Oct 17, 2021 12:41 pm
Forum: General Discussion and Questions
Topic: Is built-in function iter only partially implemented?
Replies: 6
Views: 2754

Is built-in function iter only partially implemented?

Python 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110] on linux Type "help", "copyright", "credits" or "license" for more information. >>> iter(int, 1) <callable_iterator object at 0x7f2623b7c100> >>> vs. MicroPython v1.17-80-g4c9e17e0a-dirty on 2021-10-14; linux version Use Ctrl-D to ...
by snake77
Wed Oct 13, 2021 12:06 pm
Forum: General Discussion and Questions
Topic: WebREPL client for terminal instead of browser?
Replies: 1
Views: 1121

WebREPL client for terminal instead of browser?

Is there a REPL client which uses the WebREPL/websockets but works on the terminal instead of in the browser?
by snake77
Sat Oct 09, 2021 9:16 pm
Forum: General Discussion and Questions
Topic: Overwhelming inconsistent readings from machine.Pin.value()
Replies: 7
Views: 2446

Re: Overwhelming inconsistent readings from machine.Pin.value()

davef wrote:
Sat Oct 09, 2021 8:12 pm
To see if there was information about correct GPIO0 and GPIO1 usage. Sorry, I thought there was an issue with GPIO.
You didn't misunderstand. There is in fact an issue with the GPIO. I just don't know what exactly to investigate.
by snake77
Sat Oct 09, 2021 6:26 pm
Forum: General Discussion and Questions
Topic: Overwhelming inconsistent readings from machine.Pin.value()
Replies: 7
Views: 2446

Re: Overwhelming inconsistent readings from machine.Pin.value()

Search for "how to use an ESP-01s module" at Tayda Electronics. Thank you! :) I assume you're talking about https://www.taydaelectronics.com/datasheets/files/ESP-01S.pdf ? If yes, then I'm unfortunately not sure what exactly I should be looking for in that PDF. GPIO0 you have to pull low then progr...
by snake77
Sat Oct 09, 2021 4:34 pm
Forum: General Discussion and Questions
Topic: Overwhelming inconsistent readings from machine.Pin.value()
Replies: 7
Views: 2446

Re: Overwhelming inconsistent readings from machine.Pin.value()

The following GPIO pins on an ESP8266 shouldn't be used: P1, P3 Used by UART 0 for the REPL. P0, P2 Have pullups for boot. P15 Has a pulldown. But... that would mean there are no GPIO pins left on the ESP-01S. I cannot use GPIO1 and GPIO3 even I'm not connecting via serial console but over WebREPL?
by snake77
Sat Oct 09, 2021 11:42 am
Forum: General Discussion and Questions
Topic: Porting Arduino Capacitive Sensing Library to MicroPython
Replies: 2
Views: 1345

Re: Porting Arduino Capacitive Sensing Library to MicroPython

If the input pin is stuck at a level regardless of the state of the output pin, that implies that (even when no pull is called for) the input pin has a pull up or pull down impedance lower than 1MΩ. Thank you very much for your response! :) I was thinking that maybe the LED was interfering, since i...
by snake77
Sat Oct 09, 2021 11:35 am
Forum: General Discussion and Questions
Topic: where is #MicroPython
Replies: 1
Views: 1195

Re: where is #MicroPython

I agree. Even if no new channel has been set up, that link to the now defunct (possibly hostile) Freenode has to be removed. Maybe file an issue on the GitHub issue tracker? https://github.com/micropython/micropython/issues I couldn't find the website source code there on first glance though.
by snake77
Sat Oct 09, 2021 11:34 am
Forum: General Discussion and Questions
Topic: Overwhelming inconsistent readings from machine.Pin.value()
Replies: 7
Views: 2446

Overwhelming inconsistent readings from machine.Pin.value()

I'm trying to port the Arduino Capacitive Sensing Library to MicroPython and in the process noticed some unexpected behavior from my ESP-01S board. This is the schematic I'm using: https://api.circuit-diagram.org/document/store/render/3772f77eea784f95905e7fb9187fcb32.svg?h=90efe4 Edit here: https://...
by snake77
Thu Oct 07, 2021 10:43 am
Forum: General Discussion and Questions
Topic: Porting Arduino Capacitive Sensing Library to MicroPython
Replies: 2
Views: 1345

Porting Arduino Capacitive Sensing Library to MicroPython

https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/57170/versions/2/previews/html/CapacitiveSensorExample_01.png Image source: https://www.mathworks.com/matlabcentral/mlc-downloads/downloads/submissions/57170/versions/2/previews/html/CapacitiveSensorExample.html https://www...