Search found 1044 matches

by Roberthh
Fri Sep 28, 2018 11:23 am
Forum: The MicroPython pyboard
Topic: REPL over GPIO serial?
Replies: 1
Views: 67

Re: REPL over GPIO serial?

You can use uos.dupterm() to redirect the REPL prompt to a UART stream.
http://docs.micropython.org/en/latest/p ... os.dupterm
by Roberthh
Thu Sep 27, 2018 5:23 pm
Forum: ESP32 boards
Topic: Time keeping with utime
Replies: 15
Views: 307

Re: Time keeping with utime

Did you pull GPIO0 to GND and push reset before starting esptool.py?
by Roberthh
Thu Sep 27, 2018 10:39 am
Forum: ESP32 boards
Topic: Time keeping with utime
Replies: 15
Views: 307

Re: Time keeping with utime

You should get a recent copy of esptool.py, e.g. from this place: https://github.com/espressif/esptool
by Roberthh
Wed Sep 26, 2018 5:20 am
Forum: ESP32 boards
Topic: Time keeping with utime
Replies: 15
Views: 307

Re: Time keeping with utime

That seems to be the wrong forum for your questions, since pysense is a Pycom product. You may better ask at forum.pycom.io.
Besides that, it is not clear why ticks_ms and ticks_diff should cause a core dump. Please post also you firmware version and the ESP32 board model.
by Roberthh
Mon Sep 24, 2018 4:06 pm
Forum: General Discussion and Questions
Topic: bitarrays for upython... anyone doing it
Replies: 12
Views: 312

Re: bitarrays for upython... anyone doing it

Trust the error message. In the REPL version, you combine two int with &, in the script version, it is a bytes object and int.
Try in the script:
value[0] & 2**bit
by Roberthh
Sun Sep 23, 2018 10:07 am
Forum: The MicroPython pyboard
Topic: what are the fields in os.stat
Replies: 1
Views: 92

Re: what are the fields in os.stat

The tuple follows the python standard, explained e.g. here: https://www.tutorialspoint.com/python3/os_stat.htm But due to the limitation of the FAT file system, only a few members have reasonable value. os.stat()[0] tells the file type, regular or directory. os.stat()[6] is the file size os.stat()[7...
by Roberthh
Fri Sep 21, 2018 8:08 pm
Forum: ESP32 boards
Topic: New Lolin D32 Pro with 4MB PSRAM
Replies: 42
Views: 3311

Re: New Lolin D32 Pro with 4MB PSRAM

I do not have a D32 Pro at hand, so the setting of the Pins was derived from the d32 specs. But they should be OK, since the software SPI works. With the Lolin32 pro I have sometimes the issue that I have to do a hard reset with the SD card inserted to get it properly working. And no, SPI and serial...
by Roberthh
Sun Sep 16, 2018 10:35 am
Forum: ESP32 boards
Topic: New Lolin D32 Pro with 4MB PSRAM
Replies: 42
Views: 3311

Re: New Lolin D32 Pro with 4MB PSRAM

That is the reset problem mentioned above. You can also tie GPIO0 to GND, then push reset and then start the upload. That is reproducibly.
by Roberthh
Sun Sep 16, 2018 9:31 am
Forum: ESP32 boards
Topic: New Lolin D32 Pro with 4MB PSRAM
Replies: 42
Views: 3311

Re: New Lolin D32 Pro with 4MB PSRAM

I just have tried and succeeded to use the built-in SD card on my Wemos LoLin32 Pro. It uses the sdcard.py script from the drivers/sdcard section and the following statements for mounting. import machine, sdcard, os sd = sdcard.SDCard(machine.SPI(1, sck=machine.Pin(14), mosi=machine.Pin(15), miso=ma...
by Roberthh
Sun Sep 16, 2018 7:07 am
Forum: General Discussion and Questions
Topic: Best way to "detect" MicroPython
Replies: 6
Views: 276

Re: Best way to "detect" MicroPython

Many ways to rome. I use:

Code: Select all

import sys
if sys.implementation.name == "micropython":
	# whatever flag is set then