Search found 1046 matches

by Roberthh
Sun Sep 16, 2018 9:31 am
Forum: ESP32 boards
Topic: New Lolin D32 Pro with 4MB PSRAM
Replies: 42
Views: 3386

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: 279

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
by Roberthh
Sat Sep 15, 2018 6:52 am
Forum: ESP32 boards
Topic: New Lolin D32 Pro with 4MB PSRAM
Replies: 42
Views: 3386

Re: New Lolin D32 Pro with 4MB PSRAM

That#s hard to tell without knowing the exact reason @mike teachman had. The obvious observation is, that in his set-up the timing of reset and GPIO0 do not match. GPIO0 low is too late with respect to the end of the reset pulse. But the reasons could be: - GPIO0 is scanned too early (-> Lolin) - th...
by Roberthh
Fri Sep 14, 2018 11:11 am
Forum: ESP32 boards
Topic: New Lolin D32 Pro with 4MB PSRAM
Replies: 42
Views: 3386

Re: New Lolin D32 Pro with 4MB PSRAM

i have Micropython on the old LOLIN32 pro running, and I see no reason why it should not do so on the new one.
by Roberthh
Tue Sep 11, 2018 7:49 am
Forum: Other Boards
Topic: [ESP32] New dev board
Replies: 33
Views: 968

Re: [ESP32] New dev board

The D1 mini caused me a lot of trouble, when using it in an application, which needed SPI, I2C, and two more I/O's in addition to the RC/TX. Especially since some of the I/O's are these 'special' ones controlling the boot behavior. Not having many analog pins with the ESP32 is definitely not a probl...
by Roberthh
Tue Sep 11, 2018 6:02 am
Forum: Other Boards
Topic: [ESP32] New dev board
Replies: 33
Views: 968

Re: [ESP32] New dev board

Just a question: Since the device is low on pins, why does it have GND and V3.3 twice?
Sorry if that was mentioned in the video. I could not listen to it.
by Roberthh
Sun Sep 09, 2018 4:39 pm
Forum: General Discussion and Questions
Topic: Detect file size and delete
Replies: 6
Views: 200

Re: Detect file size and delete

No. As said, all three time stamps are the same. The file system does not provide more information. And, of course, these time stamps are only reasonable if the time was properly set.
Edit res[7], res[8] and res[9] are these three time stamps.
by Roberthh
Sun Sep 09, 2018 1:41 pm
Forum: General Discussion and Questions
Topic: Detect file size and delete
Replies: 6
Views: 200

Re: Detect file size and delete

These are similar to the standard os.stat() of Python. https://docs.python.org/3/library/os.html#os.stat The symbolic names are not supported, and most fields are not supported by the file system. The three time stamps are all the same. So actually, if you code res=uos.stat(filename), you get res[0]...
by Roberthh
Sun Sep 09, 2018 12:39 pm
Forum: The MicroPython pyboard
Topic: Updating firmware on a PyBoard
Replies: 8
Views: 284

Re: Updating firmware on a PyBoard

The should be normal. Once the device is in ufd mode, you have to use the command:

dfu-util --alt 0 -d 0483:df11 -D firmware_file_name
by Roberthh
Sun Sep 09, 2018 6:37 am
Forum: ESP8266 boards
Topic: problem with Wemos D1 mini
Replies: 13
Views: 335

Re: problem with Wemos D1 mini

What I did, when I started, was reading through the exceptionally good documentation, from start to end, to get an overview. http://docs.micropython.org/en/latest/micropython-esp8266.pdf http://docs.micropython.org/en/latest/micropython-pyboard.pdf Or the online help at: http://docs.micropython.org/...