Search found 1564 matches

by pythoncoder
Fri Jun 23, 2017 6:01 pm
Forum: ESP8266 boards
Topic: nodemcu starting to act funny...
Replies: 5
Views: 94

Re: nodemcu starting to act funny...

I'm not a Windows user but as a general point the version of cross compiler should match the version of firmware. This is because the bytecode format is subject to change, giving rise to the error message you're seeing.
by pythoncoder
Fri Jun 23, 2017 10:27 am
Forum: ESP8266 boards
Topic: ESP8266: this thing actually works now!
Replies: 6
Views: 383

Re: ESP8266: this thing actually works now!

... Looking forward to the asyncio compatible mqtt code as well! I've made progress with this. I have an asynchronous version of umqtt.robust which has survived testing so far. But I'd be interested to hear comments from yourself or anyone else on this issue. I don't think that umqtt.robust handles...
by pythoncoder
Fri Jun 23, 2017 9:08 am
Forum: The MicroPython pyboard
Topic: pyboard not detected after firmware update
Replies: 3
Views: 61

Re: pyboard not detected after firmware update

After removing the jumper you need to reset or power cycle the board.
by pythoncoder
Fri Jun 23, 2017 9:05 am
Forum: Programs, Libraries and Tools
Topic: upip my drivers
Replies: 2
Views: 70

Re: upip my drivers

I've yet to figure that out. I look forward to reading it ;)
by pythoncoder
Fri Jun 23, 2017 9:03 am
Forum: ESP8266 boards
Topic: How to tell ram/rom usage?
Replies: 2
Views: 54

Re: How to tell ram/rom usage?

Neat! Forcing a garbage collection might give a more accurate figure in cases where unreferenced objects remain on the heap: def free(full=False): gc.collect() F = gc.mem_free() A = gc.mem_alloc() T = F+A P = '{0:.2f}%'.format(F/T*100) if not full: return P else : return ('Total:{0} Free:{1} ({2})'....
by pythoncoder
Fri Jun 23, 2017 8:40 am
Forum: ESP8266 boards
Topic: ESP8266 is resetting
Replies: 2
Views: 68

Re: ESP8266 is resetting

Your DRIVE class has a number of instances of return mode As far as I can see this variable doesn't exist (you have self.mode). What I don't understand is why you haven't seen an error message. When you test the robot, have you got a means of viewing the output at the REPL? Either via a USB interfac...
by pythoncoder
Fri Jun 23, 2017 8:32 am
Forum: ESP8266 boards
Topic: nodemcu starting to act funny...
Replies: 5
Views: 94

Re: nodemcu starting to act funny...

What version of firmware are you running?
by pythoncoder
Fri Jun 23, 2017 8:24 am
Forum: ESP8266 boards
Topic: A way to catch any exception?
Replies: 2
Views: 54

Re: A way to catch any exception?

This is a query about the Python language rather than anything specific to MicroPython. There are plenty of books and online tutorials which can help you and I suggest getting familiar with the language on a PC. In essence if your program stops for any reason (e.g. running to completion or throwing ...
by pythoncoder
Thu Jun 22, 2017 11:37 am
Forum: General Discussion and Questions
Topic: Socket error -78 and errorno 9
Replies: 3
Views: 82

Re: Socket error -78 and errorno 9

Error no. 9 is a standard Python code for a bad file number (defined in errno.py). Maybe -78 is something PyCom specific?
by pythoncoder
Thu Jun 22, 2017 10:56 am
Forum: Programs, Libraries and Tools
Topic: Library to deep sleep for days for esp8366
Replies: 11
Views: 168

Re: Library to deep sleep for days for esp8366

Fair point. This rules out any board with a USB interface. The Adafruit Huzzah looks promising, though https://learn.adafruit.com/adafruit-huzzah-esp8266-breakout/downloads . Assuming the pins with resistors go hi-z on sleep there's not much there to use power. The regulator takes 80μA max (55μA typ...

Go to advanced search