Search found 67 matches

by Christian Walther
Tue Dec 10, 2019 6:28 pm
Forum: ESP32 boards
Topic: MicroPython Startup Time
Replies: 1
Views: 37

Re: MicroPython Startup Time

This has been discussed on Discord: https://discordapp.com/channels/605621786616528915/605622154037428240/633717638651969537 https://discordapp.com/channels/605621786616528915/605622129995677706/634090423429890058 Time to boot the TinyPICO and get into MicroPython is hampered by the RAM test that th...
by Christian Walther
Sun Dec 08, 2019 9:50 pm
Forum: General Discussion and Questions
Topic: Pin mode as variable
Replies: 2
Views: 74

Re: Pin mode as variable

Code: Select all

getattr(Pin, pinMode)
Attribute access (x.y, getattr(x, 'y')) is a different thing than element access (x['y']) in Python (unlike JavaScript or Lua).
by Christian Walther
Sun Dec 08, 2019 10:21 am
Forum: General Discussion and Questions
Topic: ESP32 how to program over Ethernet
Replies: 2
Views: 100

Re: ESP32 how to program over Ethernet

Once you have IP connectivity I suppose you should be able to use WebREPL to transfer files (either via web client or webrepl_cli.py) and access the REPL. I am however not aware of any IDE working over WebREPL, they tend to use the serial connection for that. (Unfortunately it’s not straightforward ...
by Christian Walther
Fri Dec 06, 2019 8:56 pm
Forum: General Discussion and Questions
Topic: littlefs - advantages & disadvantages
Replies: 23
Views: 802

Re: littlefs - advantages & disadvantages

As far as I can see, littlefs is not enabled by default for ESP8266, you need to explicitly build with MICROPY_VFS_LFS2=1 . Apparently the daily builds are made with the default manifest rather than the release manifest and therefore don’t have as many frozen modules as the stable releases. I’m not ...
by Christian Walther
Sun Dec 01, 2019 11:32 am
Forum: ESP8266 boards
Topic: LCD 1602 - Library
Replies: 53
Views: 23186

Re: LCD 1602 - Library

Yes, the FBConsole class demonstrates how you need to subclass uio.IOBase so that it can be plugged into the REPL using os.dupterm . (Incidentally, is there any documentation for this? Searching for “IOBase” in the docs yields nothing.) Writing the text you get from there out to the display should t...
by Christian Walther
Sat Nov 30, 2019 9:17 pm
Forum: ESP8266 boards
Topic: LCD 1602 - Library
Replies: 53
Views: 23186

Re: LCD 1602 - Library

Apparently yes, see viewtopic.php?t=7083&p=40307
by Christian Walther
Sun Nov 03, 2019 9:47 pm
Forum: ESP32 boards
Topic: Does ESP32 MP port implement AP password?
Replies: 3
Views: 319

Re: Does ESP32 MP port implement AP password?

The following code works for me on a TinyPICO with MicroPython v1.10-231-g673db939b-dirty. Reading out the password seems to be prohibited, but setting it works. import network import time ap = network.WLAN(network.AP_IF) ap.active(True) import ubinascii essid = b"MicroPython-%s" % ubinascii.hexlify...
by Christian Walther
Sat Nov 02, 2019 8:59 am
Forum: General Discussion and Questions
Topic: round() is not rounding on SF6
Replies: 6
Views: 379

Re: round() is not rounding on SF6

That doesn’t explain the OP’s observation to me though, because 65.5, being a multiple of 0.5 = 2^-1, is exactly representable as a float or double. What am I missing?
by Christian Walther
Thu Oct 31, 2019 12:06 pm
Forum: General Discussion and Questions
Topic: Does a serial device know when it is being connected to or read from?
Replies: 4
Views: 284

Re: Does a serial device know when it is being connected to or read from?

What could be happening is that opening the device in pyserial does something with the hardware handshake lines that causes the microcontroller to reset, hence you get the boot output on every new connection. (I don’t know the details offhand about how to configure that in pyserial and how the usual...
by Christian Walther
Thu Oct 24, 2019 11:20 am
Forum: ESP32 boards
Topic: Updating main.py with infinite loop
Replies: 5
Views: 347

Re: Updating main.py with infinite loop

By “no longer have access to the REPL”, do you mean that you explicitly detached the UART from stdin/out (using dupterm )? Because if not, you can just send a control-C through the UART and that will break out of your infinite loop and drop you in the REPL – same as in CPython on the desktop. And ye...