Search found 2013 matches

by jimmo
Wed May 22, 2019 1:27 am
Forum: ESP32 boards
Topic: URL string
Replies: 1
Views: 587

Re: URL string

Looks like you're talking about URL escaping (or encoding). Maybe take a look at using https://github.com/micropython/micropython-lib/blob/master/urllib.parse/urllib/parse.py It's relatively straightforward to do the transformation yourself %xx --> int(xx, 16). But fom your example I can't tell if y...
by jimmo
Tue May 21, 2019 3:37 pm
Forum: General Discussion and Questions
Topic: double precision float on ESP8266
Replies: 30
Views: 5935

Re: double precision float on ESP8266

Hardware floating point only means "floating point in hardware". Micropython can do any floating point in software. This will be considerably slower for a CPU, but as a human you won't notice any difference in speed. It's true that if you use "double" in C even without hardware support for double p...
by jimmo
Tue May 21, 2019 3:18 pm
Forum: ESP32 boards
Topic: [SOLVED] external interrupts spam
Replies: 4
Views: 849

Re: external interrupts spam

Sounds like classic switch debouncing? In addition to the software approaches dhylands mentions, have you tried adding some capacitance to the switch?

e.g. this first google result seems pretty good https://hackaday.com/2015/12/09/embed-w ... ns-part-i/
by jimmo
Mon May 20, 2019 9:27 pm
Forum: ESP32 boards
Topic: Hardware SPI not working
Replies: 10
Views: 1590

Re: Hardware SPI not working

Out of curiosity does it work if you use software SPI instead? (i.e. just remove the `2` from the SPI constructor).
by jimmo
Mon May 20, 2019 1:06 pm
Forum: Programs, Libraries and Tools
Topic: MemoryError on importing large files
Replies: 4
Views: 1167

Re: MemoryError on importing large files

And if it's an option for you, try freezing the rarely-changing modules into a firmware build. (By putting the code in boards/<BOARD>/modules). This means that they'll execute from ROM, saving even more RAM for your main program.
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: 1326

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

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

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

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

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