Search found 190 matches

by SpotlightKid
Mon May 29, 2017 10:46 pm
Forum: ESP8266 boards
Topic: machine.Pin methods?
Replies: 13
Views: 840

Re: machine.Pin methods?

The Pin methods have been renamed in the latest release. Read the changelog here:

https://github.com/micropython/micropyt ... s/tag/v1.9
by SpotlightKid
Wed Apr 19, 2017 10:40 pm
Forum: Development of MicroPython
Topic: uasyncio scheduling algorithm
Replies: 10
Views: 615

Re: uasyncio scheduling algorithm

Good write up! I will try it as soon as I have time to dig into my uPy projects again (which may be one or two months off).
by SpotlightKid
Tue Apr 04, 2017 4:56 pm
Forum: ESP8266 boards
Topic: 2nd ESP8266 projects stretch goal - Embedded Database (btree module)
Replies: 12
Views: 3839

Re: 2nd ESP8266 projects stretch goal - Embedded Database (btree module)

I am not sure. Anyway, I was guessing that the sorting would be implemented in C.
by SpotlightKid
Tue Apr 04, 2017 12:08 pm
Forum: ESP8266 boards
Topic: 2nd ESP8266 projects stretch goal - Embedded Database (btree module)
Replies: 12
Views: 3839

Re: 2nd ESP8266 projects stretch goal - Embedded Database (btree module)

One remark about the docs: I don't see any mention of what the implicit sort order of keys is. If it is alphabetical, which I assume, which encoding is used and is it by code point or lexicographical? Can the sort method be changed? Apart from that the docs have the (usual ;-)) inconsistent use of s...
by SpotlightKid
Tue Apr 04, 2017 8:39 am
Forum: ESP8266 boards
Topic: BAD REQUEST on urequests HTTP POST
Replies: 3
Views: 270

Re: BAD REQUEST on urequests HTTP POST

There shouldn't be spaces in HTTP header names, right? ('WWW - Authenticate')
by SpotlightKid
Sat Mar 25, 2017 12:39 am
Forum: The MicroPython pyboard
Topic: Dealing with Noisy/False reading touch sensing button
Replies: 5
Views: 276

Re: Dealing with Noisy/False reading touch sensing button

Maybe you need to adjust the sensitivity of the touch plate sensor by replacing the Cs capcitor above the sensor chip on the board? See the datasheet linked on the sparkfun page for the board.
by SpotlightKid
Wed Mar 22, 2017 8:04 pm
Forum: ESP8266 boards
Topic: How to make two ESP8266 communicate with ere
Replies: 1
Views: 189

Re: How to make two ESP8266 communicate with ere

This forum is about programming with MicroPython. If you have question about programming an ESP8266 with the Arduino API, I suggest you ask them here:

http://www.esp8266.com/arduino
by SpotlightKid
Wed Mar 22, 2017 8:00 pm
Forum: General Discussion and Questions
Topic: parsing JSON string into numeric
Replies: 2
Views: 228

Re: parsing JSON string into numeric

I could convert string values to float only a on-demand basis, e.g. when you're actually using them: get_float = lambda d, k: float(d.get(k, 0)) f = get_float(data, 'c') or, a little bit fancier: class DictWrapper(dict): def get_float(self, key, default=0): val = self.get(key, default) try: return f...
by SpotlightKid
Sun Mar 19, 2017 10:12 pm
Forum: Development of MicroPython
Topic: pyb.PinAF documentation and examples improvement?
Replies: 5
Views: 254

Re: pyb.PinAF documentation and examples improvement?

Yeah, I figured you could pass e.g. af=pyb.Pin('A0').af_list()[0].index() but this seems a strange API and the PinAF objects are kinda useless.
by SpotlightKid
Sun Mar 19, 2017 9:10 pm
Forum: Development of MicroPython
Topic: pyb.PinAF documentation and examples improvement?
Replies: 5
Views: 254

Re: pyb.PinAF documentation and examples improvement?

Thanks for the explanation. So, if I get that correctly, the PinAF objects, that you get back from pyb.af_list(), name the general alternate function groups available for a particular pin, e.g. USART2, SPI2, TIM5 etc., but when you pass the 'af' argument to pyb.Pin(), you have to pass in the constan...

Go to advanced search