Search found 905 matches

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

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...
by Roberthh
Sat Apr 16, 2016 11:33 am
Forum: The MicroPython pyboard
Topic: Persistent bytecode
Replies: 11
Views: 3202

Re: Persistent bytecode

Thanks @pythoncoder. These are good instructions. By not following them literally, I ran into an issue. mpy_cross creates symbols form the source filenames. If these contains '.' characters, like ../sample.py, these dots will go into the mpy file, and further on into the frozen_mpy.c file, which the...
by Roberthh
Sat Apr 16, 2016 8:37 am
Forum: General Discussion and Questions
Topic: Memoryview and readinto()
Replies: 2
Views: 1124

Re: Memoryview and readinto()

Thanks @dhylands, that did the trick. The function now looks like: # split read, due to the bug in the SD card library, avoid reading # more than 512 bytes at once, at a performance penalty # required if the actual file position is not a multiple of 4 def odd_read(f, buf, n): BLOCKSIZE = const(512) ...
by Roberthh
Sat Apr 16, 2016 6:35 am
Forum: General Discussion and Questions
Topic: Memoryview and readinto()
Replies: 2
Views: 1124

Memoryview and readinto()

Hello all, following the hint about the optimization of code by using memoryview, I wrote that little function, which wraps teh SD-card library error: # split read, due to the bug in the SD card library, avoid reading # more than 511 bytes at once, at a performance penalty # required if the actual f...
by Roberthh
Wed Apr 13, 2016 11:31 am
Forum: Other Boards
Topic: Power probelms
Replies: 2
Views: 602

Re: Power probelms

Hello @wwsehldons, I think we all need more details to understand your problem. a) how do you supply PyBoard, at which pins and which suplly voltage. b) is there an additional circuitry on you PCB. c) Do you have statements in boot.py and main.py that start your code at power-up? d) What do you mean...
by Roberthh
Mon Apr 11, 2016 7:55 pm
Forum: Drivers for External Components
Topic: Driver for a SSD1963 TFT controller
Replies: 38
Views: 8598

Re: Driver for a SSD1963 TFT controller

Hello everyone. For everyone who is interested, I have updated the driver for SSD1963 displays, to be found here: https://github.com/robert-hh/SSD1963-TFT-Library-for-PyBoard The biggest change is in the aspects of text printing and font handling, which was possible due to the kind help of and coope...
by Roberthh
Mon Apr 11, 2016 7:45 pm
Forum: The MicroPython pyboard
Topic: PyBoard: is there a way to expand physical ram on Pyboard
Replies: 6
Views: 1461

Re: PyBoard: is there a way to expand physical ram on Pyboard

@MCHobby: In addition to what pythoncoder mentioned. I did not test that yet for the SSD1963 controller. But it might be possible to use the part of the frame buffer, which is not needed for the actually displayed data, for other data. Other TFT controllers like the MD070 have several pages of frame...
by Roberthh
Mon Apr 04, 2016 7:01 pm
Forum: Programs, Libraries and Tools
Topic: HTML presentation about MicroPython hosted on WiPy
Replies: 3
Views: 1158

Re: HTML presentation about MicroPython hosted on WiPy

That sound great. I can start it on Wipy, but cannot connect to it. Any hint what's missing?
Besides this test code, Wipy is in the base configuration.
by Roberthh
Sat Apr 02, 2016 10:32 am
Forum: General Discussion and Questions
Topic: Need help debugging with REPL
Replies: 11
Views: 2250

Re: Need help debugging with REPL

Hi Dave, thanks for the swift reply. That change did change the error message. robert@DELL-HH:~/Downloads/MicroPython/usb-ser-mon$ ./usb-ser-mon.py -n Micro USB Serial device with vendor 'MicroPython' serial '347A35663333' connected @/dev/ttyACM0 Use Control-X to exit. Traceback (most recent call la...