Search found 185 matches

by SpotlightKid
Sat Mar 25, 2017 12:39 am
Forum: The MicroPython pyboard
Topic: Dealing with Noisy/False reading touch sensing button
Replies: 2
Views: 52

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

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

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

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

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...
by SpotlightKid
Sun Mar 19, 2017 6:30 pm
Forum: Development of MicroPython
Topic: pyb.PinAF documentation and examples improvement?
Replies: 5
Views: 103

pyb.PinAF documentation and examples improvement?

I'm currently working on a clean-up of the pyb.Pin documentation page, and in the section on Pin alternate functions and the pyb.PinAF object , I noticed that the example using pin X3 and how the TIM2_CH3 alternate function can be used, can be confusing, because it's not immediately clear what the r...
by SpotlightKid
Thu Mar 16, 2017 3:34 pm
Forum: ESP8266 boards
Topic: latest stable release source
Replies: 4
Views: 128

Re: latest stable release source

You already typed the commands. Why don't you just try them out? You won't break anything ;)

Like I said, follow the instructions in the README. The git clone/pull + checkout combo basically is equivalent to a normal git clone/pull if you build from the master branch.
by SpotlightKid
Thu Mar 16, 2017 2:43 pm
Forum: ESP8266 boards
Topic: build environment on OSX without brew
Replies: 1
Views: 67

Re: build environment on OSX without brew

Look into the config.log file in the directory where configure was running for a more detailed error report. It may be that the version of sed installed on your system is not compatible, but it's hard to tell from the sparse error output.
by SpotlightKid
Thu Mar 16, 2017 2:38 pm
Forum: ESP8266 boards
Topic: latest stable release source
Replies: 4
Views: 128

Re: latest stable release source

Releases of MicroPython are tagged in the git repository. The release tags have names with the version number prefixed by a "v", e.g. "v1.8.7". To change your git checkout to a specific tag, just use "git checkout" with the tag name. E.g.: git clone https://github.com/m...
by SpotlightKid
Tue Mar 14, 2017 3:05 am
Forum: The MicroPython pyboard
Topic: interfacing the pyboard to an esp8266-01
Replies: 2
Views: 109

Re: interfacing the pyboard to an esp8266-01

Does a module/library exist in micropython for the esp8266? No, there is, to my knowledge, no module to use the esp8266 as a network adapter for a another micropython board. It's theoretically possible, but we would either need to develop a special (C/C++) firmware for the ESP8266 for that or add I...

Go to advanced search