Search found 3538 matches

by pythoncoder
Fri Sep 13, 2019 6:40 am
Forum: General Discussion and Questions
Topic: Private const() variables aren't defined
Replies: 8
Views: 133

Re: Private const() variables aren't defined

I guess it makes sense although it is confusing in repl to have a different behaviour between const and strings. The optimisation is important in device drivers where, for readability, you might want a lot of integer symbolic constants. This allows them to be used at zero cost (in RAM and in perfor...
by pythoncoder
Fri Sep 13, 2019 6:16 am
Forum: Pyboard D-series
Topic: Firmware for PyBoard D
Replies: 4
Views: 107

Re: Firmware for PyBoard D

The official test running on a Pyboard 1.1 reports 28fps drawing some fairly complex graphics. Actual rates are likely to depend on exactly what you're drawing.
by pythoncoder
Thu Sep 12, 2019 7:52 am
Forum: Pyboard D-series
Topic: Firmware for PyBoard D
Replies: 4
Views: 107

Re: Firmware for PyBoard D

Something has gone wrong with the download page, I have raised an issue so hopefully it will be fixed soon.

As for the LCD skin subjectively it's similar to the Pyboard 1.x. In practice the refresh rate tends to depend on how you're using it.
by pythoncoder
Thu Sep 12, 2019 7:45 am
Forum: General Discussion and Questions
Topic: Private const() variables aren't defined
Replies: 8
Views: 133

Re: Private const() variables aren't defined

It seems to work as I'd expect. Consider foo.py from micropython import const _A = const(1) _B = 2 C = 3 At the REPL >>> from foo import * >>> dir() ['const', '__name__', 'C'] Names with underscores are not exported. This is standard Python. Now try: >>> import foo >>> foo._A Traceback (most recent ...
by pythoncoder
Thu Sep 12, 2019 7:30 am
Forum: ESP8266 boards
Topic: Urequests problem (multiple Post) with google docs/forms
Replies: 10
Views: 292

Re: Convert arduino code to esp8266 micropython (google sheets without IFTTT) or suggestion

Is it possible that Google impose some form of throttling?
by pythoncoder
Tue Sep 10, 2019 6:00 am
Forum: ESP8266 boards
Topic: Urequests problem (multiple Post) with google docs/forms
Replies: 10
Views: 292

Re: Convert arduino code to esp8266 micropython (google sheets without IFTTT) or suggestion

The syntax

Code: Select all

form_data = {'entry.61639300=1','entry.1495906291=2','entry.211888248=3'}
causes form_data to be an instance of a Python set. It should be a string, as per your earlier example.
by pythoncoder
Mon Sep 09, 2019 7:54 am
Forum: Pyboard D-series
Topic: High Speed USB PHY
Replies: 4
Views: 326

Re: High Speed USB PHY

This strikes me as an important issue as it's a key selling point of the SF3W. If there is no response from @Damien or @jimmo it might be worth raising on GitHub.
by pythoncoder
Mon Sep 09, 2019 7:50 am
Forum: ESP8266 boards
Topic: Urequests problem (multiple Post) with google docs/forms
Replies: 10
Views: 292

Re: Convert arduino code to esp8266 micropython (google sheets) or suggestion

Converting Arduino code to MicroPython is not particularly difficult but you do need a reasonable knowledge of C/C++ and Python. The Adafruit way of accessing hardware is somewhat different but there is a driver for the MLX90614 so using that should be easy.
by pythoncoder
Mon Sep 09, 2019 7:35 am
Forum: General Discussion and Questions
Topic: Does anybody know what is going on with micropython?
Replies: 6
Views: 354

Re: Does anybody know what is going on with micropython?

I don't know where you're getting this idea. The original Pyboard is in stock https://store.micropython.org/product/PYBv1.1 as is the Pyboard D https://store.micropython.org/product/PYBD-SF2-W4F2. The project is highly active.
by pythoncoder
Sun Sep 08, 2019 4:16 pm
Forum: Pyboard D-series
Topic: Does the "lcd160cr" fully compatible with the d-series pyboard?
Replies: 3
Views: 143

Re: Does the "lcd160cr" fully compatible with the d-series pyboard?

It does indeed work well. I pointed out to Damien a while back that the way the store is laid out doesn't make it obvious. The other issue I mentioned is that it would be good if there were documentation showing what pins brought out on the LCD160CR are available for use when plugged into a Pyboard ...