Search found 424 matches

by jimmo
Wed Aug 21, 2019 1:24 pm
Forum: ESP32 boards
Topic: Store data temporarily.
Replies: 3
Views: 73

Re: Store data temporarily.

There's probably two decisions you need to make: 1. - Do you want to persist even if the power is turned off? 2 - Is the data best represented as a dictionary If #1 is yes, then you need to use the filesystem. If both are yes, then filesystem+btree is a great solution. With the right choice of key, ...
by jimmo
Wed Aug 21, 2019 1:16 pm
Forum: ESP8266 boards
Topic: Adafruit Feather Huzzah esp8266 not running MicroPython
Replies: 9
Views: 131

Re: Adafruit Feather Huzzah esp8266 not running MicroPython

And you've tries ctrl-c also?


Hrmm... I wonder... did you do an erase_flash before programming? Might be worth trying?
by jimmo
Wed Aug 21, 2019 6:38 am
Forum: ESP8266 boards
Topic: What is maximum valid heap size
Replies: 6
Views: 184

Re: What is maximum valid heap size

When you build the firmware image, it will tell you the size of the text, data, and bss segments. The text segment goes in flash, the data and bss go in RAM. (Well, the data segment goes in both). data comes from any object with static lifetime that has an initialised value, e.g.: int foo = MODE_FOO...
by jimmo
Wed Aug 21, 2019 5:49 am
Forum: ESP8266 boards
Topic: Adafruit Feather Huzzah esp8266 not running MicroPython
Replies: 9
Views: 131

Re: Adafruit Feather Huzzah esp8266 not running MicroPython

Probably not the reason, but have you tried using the latest version, v1.11?

If you press enter a few times at the terminal, does the prompt appear?
by jimmo
Tue Aug 20, 2019 10:13 pm
Forum: ESP8266 boards
Topic: How do I list the RSSI (strength) of the Wi-Fi SSID I'm connected to?
Replies: 11
Views: 3803

Re: How do I list the RSSI (strength) of the Wi-Fi SSID I'm connected to?

Hasenradball wrote:
Tue Aug 20, 2019 2:20 pm
do I get the RSSI by wlan.status('rssi') only when I am connected?
Yes. I think on some platforms the scan results include rssi if you want to know the rssi in the opposite direction.
by jimmo
Tue Aug 20, 2019 11:26 am
Forum: General Discussion and Questions
Topic: Logging exceptions from interrupts
Replies: 2
Views: 96

Re: Logging exceptions from interrupts

Hi, It sounds like what you're looking for is for the exception thrown in the interrupt handler to be caught by the main code? Unfortunately that's not how exceptions from interrupts work. In your output you can see the message "uncaught exception in Timer(4) interrupt handler" where the default han...
by jimmo
Tue Aug 20, 2019 7:10 am
Forum: ESP32 boards
Topic: Flash Esp32 from another Esp32
Replies: 2
Views: 76

Re: Flash Esp32 from another Esp32

Hi, Just to confirm - you'd like to use one ESP32 to program the actual firmware on another ESP32 (not just update/modify just the Python code / filesystem contents). I'd imagine it was probably do-able (to port esptool.py to micropython). Especially if you strip out everything that isn't firmware u...
by jimmo
Tue Aug 20, 2019 5:48 am
Forum: General Discussion and Questions
Topic: Freezing modules having native and viper functions
Replies: 11
Views: 271

Re: Freezing modules having native and viper functions

The fix for original issue with alignment is now merged. #5014 @pythoncoder's follow up issue I'm still investigating. There appears to be an issue calling a @native function that calls another @native/@viper function when the globals change (e.g. across a module). It seems that a workaround in the ...
by jimmo
Tue Aug 20, 2019 5:09 am
Forum: Pyboard D-series
Topic: Programming a D-series in Win64
Replies: 7
Views: 302

Re: Programming a D-series in Win64

https://docs.pycom.io/pytrackpysense/installation/firmware/ should have you covered, the only difference being how you get the device into DFU mode. But the basic idea is that when you've got the pybd in DFU mode, run Zadig, select the DFU device, and switch it to the libusbk driver. That worked for...
by jimmo
Tue Aug 20, 2019 5:06 am
Forum: Drivers for External Components
Topic: HX1230 96x68 Mono LCD - Nokia 5110 killer
Replies: 6
Views: 162

Re: HX1230 96x68 Mono LCD - Nokia 5110 killer

Neat!

This is just so you can play Snake, written in MicroPython, on a 5110 display right? :)

(a quick Google turned up https://github.com/Zhebr/snake)