Search found 2704 matches

by Roberthh
Wed Apr 20, 2016 2:31 pm
Forum: WiPy and CC3200 boards
Topic: Frozen Bytecode
Replies: 3
Views: 2247

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

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

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

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

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

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...
by Roberthh
Tue Apr 19, 2016 10:33 am
Forum: General Discussion and Questions
Topic: How to reduce the memory consumption of the object definition
Replies: 25
Views: 13200

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

I had the experience of the compiler running out of heap space several times for larger code. Using precompiled code avoides that. But still, using frozen bytecode would be the cure for static data like fonts. That remindes me of splitting my driver into smaller pieces, wher some of them could be pr...
by Roberthh
Tue Apr 19, 2016 5:32 am
Forum: ESP8266 boards
Topic: problems entering raw repl (needs 2 Ctrl-A's?)
Replies: 10
Views: 9075

Re: problems entering raw repl (needs 2 Ctrl-A's?)

What you see is related to minicom. Ctrl-A is its command character starting commands for minocom. To get a Ctrl-A to the connected device, you have to enter Ctrl-A twice. That's intentional and not related to the ESP8266 at all. More useful inofrmation can be found on minicom's man page.
by Roberthh
Mon Apr 18, 2016 7:17 pm
Forum: WiPy and CC3200 boards
Topic: IRQ on Pin throwing TypeError: can't convert to int
Replies: 15
Views: 7765

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

I did not try that, but as code I would then have expected something like: mycallback = echoPin.irq(trigger = Pin.IRQ_RISING | Pin.IRQ_FALLING, handler = changingEdge) mycallback() But, like pythoncoder said, I would have my doubts of calling print() in an ISR handler. In the trial call it may work,...
by Roberthh
Mon Apr 18, 2016 6:51 pm
Forum: General Discussion and Questions
Topic: How to reduce the memory consumption of the object definition
Replies: 25
Views: 13200

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

I would generally not see that as a big problem. For a specific application of Pyboard and similar devices I would expect a limited set of fonts and font sizes. I looked up the RAM (or flash) usage of some sample fonts in the TFT project: 6x8 font, 96 characters, 770 bytes (6 pts) 8x12 font, 128 cha...