Search found 2758 matches

by Roberthh
Sat Apr 30, 2016 6:55 pm
Forum: ESP8266 boards
Topic: Call for testing finalized WebREPL setup (before 1.8 release)
Replies: 27
Views: 13169

Re: Call for testing finalized WebREPL setup

Thanks for the reply. It looks as if that is part of the early access package which I did no book. No problem, I'll wait
Regards, Robert
by Roberthh
Sat Apr 30, 2016 6:27 pm
Forum: ESP8266 boards
Topic: Call for testing finalized WebREPL setup (before 1.8 release)
Replies: 27
Views: 13169

Re: Call for testing finalized WebREPL setup

I cannot even find webrepl_cli.py in master.
by Roberthh
Sat Apr 23, 2016 6:31 am
Forum: WiPy and CC3200 boards
Topic: Read temperature with TMP-36 and WiPy ADC
Replies: 6
Views: 4954

Re: Read temperature with TMP-36 and WiPy ADC

Hello @gabi. First of all I would place a voltage divider (2 resistors e.g. 2 x 100kOhm) between the TMP-36 and the WiPy protecting the WiPy. That will resulting a changed voltage range. A 2:1 divider (2 identical resistor values) would then result in a range of 0.05 to 1 V. Sample schematics here: ...
by Roberthh
Thu Apr 21, 2016 11:21 am
Forum: General Discussion and Questions
Topic: How to reduce the memory consumption of the object definition
Replies: 25
Views: 13602

Re: How to reduce the memory consumption of the object definition

I tried it and it worked instantly, saving a lot of RAM space.
by Roberthh
Wed Apr 20, 2016 2:31 pm
Forum: WiPy and CC3200 boards
Topic: Frozen Bytecode
Replies: 3
Views: 2291

Re: Frozen Bytecode

Thanks Damien. I should have had a glance at the CC3200 data sheet before asking. But at least, precompiled code is some advantage, and that's possible.
by Roberthh
Wed Apr 20, 2016 7:01 am
Forum: General Discussion and Questions
Topic: How to reduce the memory consumption of the object definition
Replies: 25
Views: 13602

Re: How to reduce the memory consumption of the object definition

That's obviously true, and the driver functions declared as static do not need any element of the class. I would have seen that more as an element of (coding-)style. What I have to try is having one class as frozen bytecode, including a module or class not frozen. I do not see a reason why not, but ...
by Roberthh
Wed Apr 20, 2016 5:27 am
Forum: WiPy and CC3200 boards
Topic: IRQ on Pin throwing TypeError: can't convert to int
Replies: 15
Views: 8010

Re: IRQ on Pin throwing TypeError: can't convert to int

I do not know if I understand your intention right, but if you want to access the symbols declared outside your handler, like raising_time, falling_time and delay, in the function changingEdge, you have to declare them global inside your handler. Add the statement: global raising_time, falling_time,...
by Roberthh
Tue Apr 19, 2016 5:26 pm
Forum: WiPy and CC3200 boards
Topic: Frozen Bytecode
Replies: 3
Views: 2291

Frozen Bytecode

Hello @danicampora, are there any plans to support frozen bytecode in Wipy?
Best Regards, Robert
by Roberthh
Tue Apr 19, 2016 5:24 pm
Forum: General Discussion and Questions
Topic: How to reduce the memory consumption of the object definition
Replies: 25
Views: 13602

Re: How to reduce the memory consumption of the object definition

I just started to sort out the function of the tft driver into three classes, tft_base with the low level drivers, tft_draw with the drawing functions and tft_text with all the text and font handling. By LOC, tft_base will be the largest, but that contains many duplicate stuff that can be eliminated...
by Roberthh
Tue Apr 19, 2016 10:51 am
Forum: WiPy and CC3200 boards
Topic: IRQ on Pin throwing TypeError: can't convert to int
Replies: 15
Views: 8010

Re: IRQ on Pin throwing TypeError: can't convert to int

@pyhtoncoder: I did not see this in the documentation at first glance. It is in the examples. The syntax of that is confusing. I had the understanding that the pin.irq call creates a callback. It looks like using it w/o an argument has a different behaviour, as returing a previously created callback...