Search found 1838 matches

by jimmo
Mon May 20, 2019 5:25 am
Forum: Development of MicroPython
Topic: Find out how much RAM will be used by MicroPython at compile the runtime
Replies: 5
Views: 1149

Re: Find out how much RAM will be used by MicroPython at compile the runtime

- at compile time to show the RAM and Flash that will be allocated by the core and each module (kind of size mod....o ?) By core I assume you mean MicroPython core (i.e. /py/*.c), not sure what you mean by module, but perhaps you mean a single translation unit (i.e. one .c file?). You can look at t...
by jimmo
Sun May 19, 2019 2:32 pm
Forum: ESP8266 boards
Topic: not able to blink led on esp8266 with MQTT App & Raspberry Pi
Replies: 2
Views: 748

Re: not able to blink led on esp8266 with MQTT App & Raspberry Pi

Hi, Btw, you use the </> button to format your code, so it keeps the correct indenting. What do you see when you run the code? Importantly, does it say that it's connected successfully? Do you see the prints in sub_cb? If you can tell us more then we can provide more help -- sorry I can't tell wheth...
by jimmo
Sun May 19, 2019 12:46 pm
Forum: ESP8266 boards
Topic: how to plot?
Replies: 7
Views: 1752

Re: how to plot?

The only thing I've seen that plots on your PC but using data from a device is https://codewith.mu/en/tutorials/1.0/plotter
But that's for the micro:bit (and possibly other boards supported by Mu) not the ESP8266.

As @pythoncoder said, please describe more about what you actually want to do.
by jimmo
Sun May 19, 2019 10:26 am
Forum: Programs, Libraries and Tools
Topic: How to send file using urequests.
Replies: 6
Views: 2441

Re: How to send file using urequests.

The urequests module doesn't include all of the features of the one from big Python. But you can do it manually by crafting your own POST request using the multipart/form-data Content-Type. See https://developer.mozilla.org/en-US/docs/Web/HTTP/Methods/POST#Example for an example And depending on how...
by jimmo
Sat May 18, 2019 12:35 pm
Forum: Other Boards
Topic: [TM4C123] SD card with SPI
Replies: 3
Views: 647

Re: [TM4C123] SD card with SPI

Sorry I don't have any specific advice but you might find the discussion on this PR useful -- https://github.com/micropython/micropython/pull/4772
by jimmo
Sat May 18, 2019 12:33 pm
Forum: Pyboard D-series
Topic: PYBD and WebREPL ?
Replies: 2
Views: 763

Re: PYBD and WebREPL ?

Hi, webrepl is available on the pybd, I have it running on my SF2. It's possible that you need to update the firmware version though http://micropython.org/download -- check if you can `import webrepl` directly. However, there's a minor change to the ESP8266 version, where it no longer uses webrepl_...
by jimmo
Sat May 18, 2019 1:20 am
Forum: ESP8266 boards
Topic: send HTTP Request ESP8266
Replies: 16
Views: 4477

Re: send HTTP Request ESP8266

Just to confirm something -- you don't need to put anything in /lib. urequests is built-in to the firmware. Here's a demo, starting from a brand new ESP8266 module. jimmo@jimmo-x240: ~ 11:17 $ esptool --port /dev/ttyUSB0 erase_flash esptool.py v2.6 Serial port /dev/ttyUSB0 Connecting.... Detecting c...
by jimmo
Sat May 18, 2019 12:56 am
Forum: ESP32 boards
Topic: Power consumption of TTGO T8 Board
Replies: 15
Views: 1897

Re: Power consumption of TTGO T8 Board

What's your setup for measuring the current? Are you able to verify with a multimeter that VDD_SDIO is in fact being turned off in deep sleep? The regulator is a buck converter... the datasheet doesn't give a good indication of what its low-load current is like but of course the efficiency does drop...
by jimmo
Sat May 18, 2019 12:39 am
Forum: ESP8266 boards
Topic: send HTTP Request ESP8266
Replies: 16
Views: 4477

Re: send HTTP Request ESP8266

Did you `import urequests` before `help(urequests)` ?

Sorry about the bad advice earlier with http.client. It might be a good idea to completely clear the filesystem on your ESP8266 and make sure it's not getting confused about other libraries on there.
by jimmo
Sat May 18, 2019 12:24 am
Forum: ESP32 boards
Topic: Hardware SPI not working
Replies: 10
Views: 1317

Re: Hardware SPI not working

Hi,
Can you share the code you're using to construct and use the machine.SPI instance.
Thanks