Search found 3667 matches

by Roberthh
Tue Dec 08, 2015 9:53 am
Forum: MicroPython pyboard
Topic: pyb.ADCAll() side effect
Replies: 13
Views: 10283

Re: pyb.ADCAll() side effect

It's not too surpising the enabling the ADC switches the port to High-Z (assuming you wanted to write pyb.ADC("Y11")). And what that does to your external circuitry, depends on how this is set up. Or do I miss the point? Update: Found pyb.ADCAll() in the examples of the documentation, which is somet...
by Roberthh
Fri Dec 04, 2015 8:10 am
Forum: WiPy and CC3200 boards
Topic: Telling if char is pending in input
Replies: 13
Views: 13778

Re: Telling if char is pending in input

So it's not a bug, its ... by intention. Good to lear something, even if it does not help for the initial objective.
by Roberthh
Fri Dec 04, 2015 6:18 am
Forum: WiPy and CC3200 boards
Topic: Telling if char is pending in input
Replies: 13
Views: 13778

Re: Telling if char is pending in input

Hi Dave, thanks for the reply. I wanted to code something similar which can be achieved by the signal handling mechanism in Unix. Maybe that is something you think about with the software ISR. Besides that. The aim was to get a read with timeout. I know that a one.shot is expected to fire once, and ...
by Roberthh
Thu Dec 03, 2015 8:22 pm
Forum: WiPy and CC3200 boards
Topic: Telling if char is pending in input
Replies: 13
Views: 13778

Re: Telling if char is pending in input

On a related issue: I tried to what I mentioned above: set up a read which is interrupted by timeout. I have added a short sketch which should do that. import sys from machine import Timer timeout = None def readch(): global timeout tim = Timer(1) tim.init(mode = Timer.ONE_SHOT, width = 32) while Tr...
by Roberthh
Mon Nov 30, 2015 8:24 am
Forum: WiPy and CC3200 boards
Topic: Telling if char is pending in input
Replies: 13
Views: 13778

Re: Telling if char is pending in input

Does that apply to a Telnet connection?
by Roberthh
Mon Nov 30, 2015 6:34 am
Forum: WiPy and CC3200 boards
Topic: Telling if char is pending in input
Replies: 13
Views: 13778

Telling if char is pending in input

Hello all, is there any way in telling on WiPy, if a char is pending in input, like sys.stdio? The cPython select method doesn't work, the USB_VCP.any() method for PYBOARD is also not applicable. I could think of a read attempt, aborted by a timer interrupt, but that seems too complicated for the pu...
by Roberthh
Sat Nov 28, 2015 4:04 pm
Forum: WiPy and CC3200 boards
Topic: not able to establish ftp-connection
Replies: 4
Views: 5772

Re: not able to establish ftp-connection

Hi all,
in the protocol above the OPEN .... after the password entry is unexpected, since the connection was already opened for user authentication. But like nui_de said, try another client, maybe just the command line version. At my place, filezilla works, but I prefer the simple ftp client.
Regards
by Roberthh
Wed Nov 25, 2015 5:49 pm
Forum: General Discussion and Questions
Topic: sys.stdxx.buffer implemented or not?
Replies: 5
Views: 5689

Re: sys.stdxx.buffer implemented or not?

Hi Dave, this is the simple peace of code which behaves differently on WiPy and PyBoard. I take just Microypthon as provided the web site. import sys def readch(): while True: try: ch = sys.stdin.read(1) print ("{!r} ".format(ch), end="") if ch == "q": break except KeyboardInterrupt: print("Keyboard...
by Roberthh
Tue Nov 24, 2015 8:10 pm
Forum: General Discussion and Questions
Topic: sys.stdxx.buffer implemented or not?
Replies: 5
Views: 5689

Re: sys.stdxx.buffer implemented or not?

Thanks, Dave, that worked. But it did not get me further. I am looking for a raw interface to the Telnet input stream on WiPy. Besides that, I saw differences between the PyBoard and Wipy behavior in the way the respond to stdin.buffer.read() and Ctrl-C. None of them respond to Control-C immediately...
by Roberthh
Tue Nov 24, 2015 6:33 am
Forum: General Discussion and Questions
Topic: sys.stdxx.buffer implemented or not?
Replies: 5
Views: 5689

sys.stdxx.buffer implemented or not?

Hi folks, I have a question regarding the discussions about sys.stdxx.buffer in various threads. It was discussed in May time, and there is a change note for v. 1.4.5, that it was implemented in stmhal, but I cannot see it. What is the status now? Alternatively: Is there another way for Python scrip...