Search found 46 matches

by shazz
Wed May 15, 2019 5:18 pm
Forum: Programs, Libraries and Tools
Topic: [SOLVED ]VFS / vfs_fat, what is the difference between built-in SPI flash and SD card ?
Replies: 1
Views: 380

[SOLVED ]VFS / vfs_fat, what is the difference between built-in SPI flash and SD card ?

Hi, I have a MicroPython module which uses #include "lib/oofatfs/ff.h" #include "extmod/vfs.h" #include "extmod/vfs_fat.h" To read files on my Meowbit storage devices. The call: extern fs_user_mount_t fs_user_mount_flash; fs_user_mount_t *vfs_fat = &fs_user_mount_flash; FIL fp; FRESULT res = f_open(...
by shazz
Mon May 13, 2019 3:00 pm
Forum: Other Boards
Topic: [Meowbit] MicroPython fork for Meowbit released.
Replies: 0
Views: 425

[Meowbit] MicroPython fork for Meowbit released.

Hi,

Based on original KittenBot port, I fork the last Micropython source code, add KittenBot's modifications and coded a few new features like palette support for Framebuffer

If interested: https://github.com/shazz/micropython

Thanks!
by shazz
Mon May 13, 2019 2:58 pm
Forum: Programs, Libraries and Tools
Topic: [SOLVED] Possible to use cpp to create a new module?
Replies: 5
Views: 491

[SOLVED] Possible to use cpp to create a new module?

Hi, On top of the low level module Framebuf, I'd like to add software based 3D engine module (which will use Framebuf for rendering). Some years ago I use GNUGL but this is a portable cpp library. Concerning the memory allocation on micropython, is it possible, not discouraged, to use some cpp code ...
by shazz
Wed May 08, 2019 6:04 pm
Forum: Programs, Libraries and Tools
Topic: From readinto() to the SD sdcard_read_blocks() / slow read
Replies: 0
Views: 386

From readinto() to the SD sdcard_read_blocks() / slow read

Hi, On my Meowbit, it looks like reading a file (large file, sequential reading) from the SD card (SDIO) is pretty slow. I try to follow the implementation path between the std lib call readinto() (not sure where to find it...) to the low level calls (I guess ports/stm32/sdcard.c) to see if there is...
by shazz
Mon May 06, 2019 12:51 pm
Forum: Development of MicroPython
Topic: [SOLVED] How to access mp_obj_framebuf_t from screen's show()
Replies: 2
Views: 289

Re: How to access mp_obj_framebuf_t from screen's show()

Sorry, I tried to be generic but it did not help :) So, let's explain what I try do do. In the coming sentences, I will probably write a lot of nonsense, feel free to fix me. Board : Meowbit (with TFT screen), but may be applicable to any board with a screen. Constraints : - Most of their boards are...
by shazz
Mon May 06, 2019 1:16 am
Forum: Development of MicroPython
Topic: [SOLVED] Error when building Micropython
Replies: 9
Views: 593

Re: [SOLVED] Error when building Micropython

Yeah, I asked them the question.... (one upon a lot :D)
by shazz
Mon May 06, 2019 1:16 am
Forum: Development of MicroPython
Topic: [SOLVED] How to access mp_obj_framebuf_t from screen's show()
Replies: 2
Views: 289

[SOLVED] How to access mp_obj_framebuf_t from screen's show()

Hi, Within the screen driver function exposed as pyb.SCREEN.show(fb) STATIC mp_obj_t pyb_screen_show(size_t n_args, const mp_obj_t *args) I'd like to retrieve the width, height and format of the framebuffer. To get access to the bytearray I saw that I can do: mp_buffer_info_t bufinfo; mp_get_buffer_...
by shazz
Mon May 06, 2019 12:01 am
Forum: Development of MicroPython
Topic: [SOLVED] Error when building Micropython
Replies: 9
Views: 593

Re: Error when building Micropython

Thanks Jimmo!
Works like that!

I still wonder how it could compile for the Meowbit devs...
by shazz
Sun May 05, 2019 6:36 pm
Forum: Development of MicroPython
Topic: [SOLVED] Error when building Micropython
Replies: 9
Views: 593

Re: Error when building Micropython

Ok... I tried to compile from the https://github.com/micropython repo and here it works. So I guess something is broken in the meowbit fork.
I'll ask the devs...
by shazz
Sun May 05, 2019 6:31 pm
Forum: Development of MicroPython
Topic: [SOLVED] Error when building Micropython
Replies: 9
Views: 593

Re: Error when building Micropython

Same result. With python2 and python3. But doesn't it miss the arguments "file" before the > ? python ../../tools/mpy-tool.py -f -q build-MEOWBIT/genhdr/qstrdefs.preprocessed.h > build-MEOWBIT/frozen_mpy.c from usage: mpy-tool.py [-h] [-d] [-f] [-q QSTR_HEADER] [-mlongint-impl {none,longlong,mpz}] [...