Search found 1083 matches

by Roberthh
Mon Nov 12, 2018 5:58 pm
Forum: ESP8266 boards
Topic: Why is uos.statvs() available block count so low?
Replies: 1
Views: 54

Re: Why is uos.statvs() available block count so low?

I cannot confirm that with my ESP8266. It shows reasonable values:

Code: Select all

>>> uos.statvfs("/flash")
(4096, 4096, 860, 847, 847, 0, 0, 0, 0, 255)
You could try to re-init the file system, using the code from _boot.py:

Code: Select all

import inisetup
inisetup.setup()
Of course that will wipe out any file.
by Roberthh
Mon Nov 12, 2018 8:20 am
Forum: ESP8266 boards
Topic: High-speed via Wi-FI
Replies: 5
Views: 124

Re: High-speed via Wi-FI

That raw sensor information does not tell much. It is just one of the limits. I suggested to determin the actual time it takes to get a value form the sensor on an ESP8266.
by Roberthh
Sun Nov 11, 2018 12:00 pm
Forum: ESP8266 boards
Topic: High-speed via Wi-FI
Replies: 5
Views: 124

Re: High-speed via Wi-FI

You should check using time,ticks_us(), how long each of the steps:
- reading the ADXL345
- reading the MPU6050, and
- sending the data takes.
Then you will know the fastest rate you can get.
by Roberthh
Sun Nov 11, 2018 7:07 am
Forum: The MicroPython pyboard
Topic: wtf main.py and boot.py empty?!
Replies: 12
Views: 181

Re: wtf main.py and boot.py empty?!

I remember to have tried a C-Code interpreters in the past. It combined the disadvantage of compiled code and interpreted code. No. You cannot easily compare compiled C code and Python Code and blame Python for being slow without blaming compiled c code to be unsafe. Python provides a lot of conveni...
by Roberthh
Sat Nov 10, 2018 8:43 pm
Forum: The MicroPython pyboard
Topic: wtf main.py and boot.py empty?!
Replies: 12
Views: 181

Re: wtf main.py and boot.py empty?!

Whatever you like ....
by Roberthh
Sat Nov 10, 2018 7:54 pm
Forum: The MicroPython pyboard
Topic: wtf main.py and boot.py empty?!
Replies: 12
Views: 181

Re: wtf main.py and boot.py empty?!

This is not plausible, since main.py is also executed form sd. To be sure, that there is no interference with the PC file manager, change boot.py like below, disabling the device as storage device. It will then not mount any more at your Pc as drive. This is inconvenient, but saves you from a lot of...
by Roberthh
Sat Nov 10, 2018 3:50 pm
Forum: The MicroPython pyboard
Topic: wtf main.py and boot.py empty?!
Replies: 12
Views: 181

Re: wtf main.py and boot.py empty?!

Sure. If main.py and boot.py are on the sd card, they will be used. What you see may be a problem of the sd-card being attached as a PC drive. Then data may look as if being on the sd card, but is still is in the cache. Take care that you eject that drive always. On linux, use the sync command to fo...
by Roberthh
Sat Nov 10, 2018 1:55 pm
Forum: The MicroPython pyboard
Topic: DFU Util does not connect
Replies: 2
Views: 54

Re: DFU Util does not connect

You might not have the proper access rights. On Linux, try sudo, or/and look at that place: https://github.com/micropython/micropython/blob/master/ports/stm32/README.md or https://github.com/micropython/micropython/wiki/Pyboard-Firmware-Update On Linux, you may add yourself (user name) to the dialou...
by Roberthh
Mon Nov 05, 2018 10:39 am
Forum: The MicroPython pyboard
Topic: Is there a command force pyboard to Factory reset?
Replies: 3
Views: 103

Re: Is there a command force pyboard to Factory reset?

Look here: http://docs.micropython.org/en/latest/p ... boot-modes
And you can always re-flash the firmware after re-building the file system.
by Roberthh
Fri Nov 02, 2018 7:25 am
Forum: ESP8266 boards
Topic: when main.py Program error ,how to restart it
Replies: 1
Views: 69

Re: when main.py Program error ,how to restart it

When main.py eventually finishes, you can delete or rename it from the REPL delete: uos.remove("main.py") rename: uos.rename("main.py", "newname.py") The board does not need main.py to start. And it is a common practice to put in main.py just an import statement for your bulk code. Besides that, you...