Search found 159 matches

by danielm
Thu Nov 03, 2016 8:38 pm
Forum: WiPy and CC3200 boards
Topic: RFC: Moving forward with the WiPy/CC3200 port
Replies: 6
Views: 3567

Re: RFC: Moving forward with the WiPy/CC3200 port

Damien, thank you for your effort to maintain CC3200 port in the future. Does it mean that Pycom people are not going to support their first product any more?

I am ok with backwards-incompatible changes, I will update my scripts I am actively using.
by danielm
Sun Oct 30, 2016 7:22 am
Forum: Programs, Libraries and Tools
Topic: MQTT: c.connect() -> IndexError: bytes index out of range
Replies: 7
Views: 3392

Re: MQTT: c.connect() -> IndexError: bytes index out of range

I also think so, but I never used MP on esp.
Maybe you could create an issue on GitHub. Please try to search through existing issues first, there are several related to MQTT client.
https://github.com/micropython/micropython/issues
by danielm
Sat Oct 29, 2016 5:41 pm
Forum: Programs, Libraries and Tools
Topic: MQTT: c.connect() -> IndexError: bytes index out of range
Replies: 7
Views: 3392

Re: MQTT: c.connect() -> IndexError: bytes index out of range

I experience something similar on CC3200 port when trying with MP version older than 1.8.x.
by danielm
Thu Oct 27, 2016 5:34 pm
Forum: Hardware Projects
Topic: Connected RGB laser scanner
Replies: 1
Views: 1794

Connected RGB laser scanner

This scanner was created during a hackathon with modules from our laser 3D controller project and won first place ;-) https://drive.google.com/file/d/0B2mvAuXuxQ6Bc29lTFo1aW1sck0 It can display time, temperature measured from SHT31D sensor and when nearby person is detected by PIR sensor, it zooms d...
by danielm
Wed Oct 19, 2016 4:16 pm
Forum: WiPy and CC3200 boards
Topic: SyntaxError: invalid micropython decorator
Replies: 10
Views: 4828

Re: SyntaxError: invalid micropython decorator

@pythoncoder, I wanted to implement your solution, however enumerate() probably does not work with list of lists as expected: >>> alphabet["A"] [[0, 0], [1, 4], [2, 8], [3, 12], [4, 16], [5, 20], [6, 24], [7, 28], [8, 32], [9, 28], [10, 24], [11, 20], [12, 16], [13, 12], [10, 12], [6, 12], [13, 12],...
by danielm
Wed Oct 12, 2016 8:58 pm
Forum: WiPy and CC3200 boards
Topic: SyntaxError: invalid micropython decorator
Replies: 10
Views: 4828

Re: SyntaxError: invalid micropython decorator

Dave, it helped, thanks a lot! Decorator @micropython.native increased performance of my function by almost 10%. I am looking for further improvements. This is my code - its purpose is to render words consisting of letters - each represented by 20-30 X-Y coordinates defined as two-dimensional lists ...
by danielm
Wed Oct 12, 2016 6:20 pm
Forum: WiPy and CC3200 boards
Topic: SyntaxError: invalid micropython decorator
Replies: 10
Views: 4828

Re: SyntaxError: invalid micropython decorator

I was not able to build MP with MICROPY_EMIT_THUMB and MICROPY_EMIT_INLINE_THUMB set to (1) CC ../py/compile.c ../py/compile.c: In function 'compile_built_in_decorator': ../py/compile.c:759:24: error: 'MP_QSTR_native' undeclared (first use in this function) } else if (attr == MP_QSTR_native) { ^ ../...
by danielm
Tue Oct 11, 2016 9:01 pm
Forum: WiPy and CC3200 boards
Topic: SyntaxError: invalid micropython decorator
Replies: 10
Views: 4828

Re: SyntaxError: invalid micropython decorator

Thanks Dave, I will rebuild tomorrow and check if it works.

Could you please suggest some typical test function on which I should observe improvement when defined with @micropython.native or @micropython.viper decorators?
by danielm
Tue Oct 11, 2016 8:37 pm
Forum: WiPy and CC3200 boards
Topic: SyntaxError: invalid micropython decorator
Replies: 10
Views: 4828

SyntaxError: invalid micropython decorator

When trying @micropython.native or @micropython.viper decorator on MicroPython v1.8.4-54-gec078af-dirty on 2016-09-22; WiPy with CC3200.

Do I have to enable it manually somewhere before building MP?