strange output with os.listdir()

All ESP32 boards running MicroPython.
Target audience: MicroPython users with an ESP32 board.
Post Reply
cyrano1960
Posts: 7
Joined: Fri Mar 29, 2019 7:08 pm

strange output with os.listdir()

Post by cyrano1960 » Sun Sep 01, 2019 2:17 pm

Hi there, I am working with an Heltec ESP32 board and I have installed MicroPython v.1-10 for a while and it works. But now I have started it up again and I got the REPL and I can enter commands such as

Code: Select all

print('hello')
without problems. If I check my directory on the ESP32 using rshell I will get the correct output, but if I use

Code: Select all

import os
os.listdir()
in the REPL console, I will get the following result:
os-listdir.JPG
os-listdir.JPG (20.25 KiB) Viewed 110 times
It seems to be an address but what went wrong? Could somebody help me? Thanks a lot in advance!

cyrano1960
Posts: 7
Joined: Fri Mar 29, 2019 7:08 pm

Re: strange output with os.listdir()

Post by cyrano1960 » Sun Sep 01, 2019 3:18 pm

Update:
A very very stupid mistake. I have turned on the "heap mode" in Thonny, so it will output the addresses. :oops: :oops: :oops:

Post Reply