Search found 2821 matches

by dhylands
Mon Aug 20, 2018 8:17 pm
Forum: Hardware Projects
Topic: LCD160CR firmware source code
Replies: 7
Views: 101

Re: LCD160CR firmware source code

I'm not sure who manufactures the chip used to control the LCD160CR.
by dhylands
Mon Aug 20, 2018 5:18 pm
Forum: The micro:bit
Topic: arm thumb2 assembly
Replies: 3
Views: 80

Re: arm thumb2 assembly

I have an example here: https://github.com/dhylands/bioloid3/bl ... rt_port.py (the _write_packet routine).
by dhylands
Mon Aug 20, 2018 5:08 pm
Forum: Hardware Projects
Topic: LCD160CR firmware source code
Replies: 7
Views: 101

Re: LCD160CR firmware source code

If you're referring to the firmware on the LCD panel itself (i.e. the firmware that implements the API in the document you sent), then that's not available from micropython. You'd have to contact the LCD manufacturer to get that firmware, and it's unlikely that they'd release it. The source code for...
by dhylands
Fri Aug 17, 2018 4:39 pm
Forum: Hardware Projects
Topic: LCD160CR firmware source code
Replies: 7
Views: 101

Re: LCD160CR firmware source code

The driver is written in python and can be found here: https://github.com/micropython/micropyt ... rs/display
by dhylands
Fri Aug 17, 2018 4:34 pm
Forum: Development of MicroPython
Topic: MICROPY_OBJ_REPR == MICROPY_OBJ_REPR_B
Replies: 3
Views: 68

Re: MICROPY_OBJ_REPR == MICROPY_OBJ_REPR_B

For the pyboard, the heap is aligned to 4 byte boundary, and the blocks are 16-bytes each. This causes all allocated objects to automatically have 4-byte alignment. In C, any structure which contains a pointer is also pointer-size aligned. Since all python objects declared in C have an mp_obj_type_t...
by dhylands
Thu Aug 16, 2018 8:18 pm
Forum: Development of MicroPython
Topic: MICROPY_OBJ_REPR == MICROPY_OBJ_REPR_B
Replies: 3
Views: 68

Re: MICROPY_OBJ_REPR == MICROPY_OBJ_REPR_B

Pointers to micropython objects always have at least 4-byte alignment. Note that this representation is not for pointers in general, just pointers to micropython objects.
by dhylands
Tue Aug 14, 2018 11:16 pm
Forum: The MicroPython pyboard
Topic: Combining two bytes to one 16-bit object
Replies: 3
Views: 81

Re: Combining two bytes to one 16-bit object

You'd need to consult the datasheet for the chip in questions.

Generally, that's how i2c devices work. With some devices there is an auto-increment register, and you may need to configure that properly. But all of this behavior is device specific.
by dhylands
Mon Aug 13, 2018 9:15 pm
Forum: Drivers for External Components
Topic: Seeking display with driver subclassed from framebuf
Replies: 17
Views: 247

Re: Seeking display with driver subclassed from framebuf

Why don't we just allocate the framebuffer with some number of "header" bytes which could be used to store the i2c commands? I'm not sure I follow. Care to elaborate a little? Lets say you want a 128x64 pixel (1 bit per pixel) frame buffer. For the actual frame buffer, you need to allocate 128x64/8...
by dhylands
Mon Aug 13, 2018 7:52 pm
Forum: Drivers for External Components
Topic: Seeking display with driver subclassed from framebuf
Replies: 17
Views: 247

Re: Seeking display with driver subclassed from framebuf

Why don't we just allocate the framebuffer with some number of "header" bytes which could be used to store the i2c commands?
by dhylands
Mon Aug 13, 2018 7:50 pm
Forum: General Discussion and Questions
Topic: GPIO settings change after USB disconnect, reconnect (caused bympconfigboard.h lines?)
Replies: 4
Views: 106

Re: GPIO settings change after USB disconnect, reconnect (with rshell)

Does your mpconfigboard.h file show anything on either of those pins?

The only way that I know that rshell can effect the hardware is indirectly, through something like LEDs.