I was trying to adapt https://github.com/Scondo/purepng to micropython. https://github.com/Ratfink/micropython- ... ter/png.py works only partly. It doesn't allow you to write png file.
Thanks,
Search found 14 matches
- Wed Aug 17, 2022 1:17 pm
- Forum: Programs, Libraries and Tools
- Topic: MemoryError when loading python library
- Replies: 2
- Views: 21912
- Sun Aug 14, 2022 8:49 am
- Forum: Programs, Libraries and Tools
- Topic: MemoryError when loading python library
- Replies: 2
- Views: 21912
MemoryError when loading python library
When trying to load purepng "python" library in arduino nano rp2040 connect i am getting the following error.
>>> import png
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
MemoryError: memory allocation failed, allocating 1016 bytes
>>>
Any ideas? How to fix this?
>>> import png
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
MemoryError: memory allocation failed, allocating 1016 bytes
>>>
Any ideas? How to fix this?
- Wed Jul 06, 2022 2:55 am
- Forum: Programs, Libraries and Tools
- Topic: read / write png files
- Replies: 7
- Views: 3613
Re: read / write png files
You didn't answer my question "Where does your graphic data come from?". Depending upon your application, it might be sufficient to write files using a simpler format (TIFF, GIF) or render the PNG files elsewhere (e.g. in a web browser). How can i write files in tiff / gif format. Is there a librar...
- Wed Jul 06, 2022 2:48 am
- Forum: Programs, Libraries and Tools
- Topic: read / write png files
- Replies: 7
- Views: 3613
Re: read / write png files
In my case I want to read png file from onboard storage, run some image processing algorithms and write the output back to onboard storage as png file. Then view the output png from pc.
- Tue Jul 05, 2022 8:28 am
- Forum: Programs, Libraries and Tools
- Topic: read / write png files
- Replies: 7
- Views: 3613
Re: read / write png files
I haven't tried that. But why would the author comment it out if it works good.
- Mon Jul 04, 2022 4:27 pm
- Forum: Programs, Libraries and Tools
- Topic: read / write png files
- Replies: 7
- Views: 3613
Re: read / write png files
I want to read / write png files from flash storage. i am able to read png files with https://github.com/Ratfink/micropython- ... ter/png.py but that library does not allow me to write png files.
- Mon Jul 04, 2022 4:05 pm
- Forum: Programs, Libraries and Tools
- Topic: read / write png files
- Replies: 7
- Views: 3613
- Mon Jul 04, 2022 2:48 pm
- Forum: Development of MicroPython
- Topic: Build error - nano rp2040 connect
- Replies: 5
- Views: 25063
Re: Build error - nano rp2040 connect
Thanks. Now i can successfully build micropython for nano rp2040 connect.
- Mon Jul 04, 2022 1:42 pm
- Forum: Development of MicroPython
- Topic: Build error - nano rp2040 connect
- Replies: 5
- Views: 25063
Re: Build error - nano rp2040 connect
Previous error seems to be fixed. But now i am getting the following error. inspiron3000@inspiron3000-Inspiron-14-3467:~/micropython/ports/rp2$ make BOARD=ARDUINO_NANO_RP2040_CONNECT [ -e build-ARDUINO_NANO_RP2040_CONNECT/CMakeCache.txt ] || cmake -S . -B build-ARDUINO_NANO_RP2040_CONNECT -DPICO_BUI...
- Sun Jul 03, 2022 4:04 pm
- Forum: Development of MicroPython
- Topic: Build error - nano rp2040 connect
- Replies: 5
- Views: 25063
Build error - nano rp2040 connect
I am getting the following error msg when i try to build micropython for nano rp2040 connect. inspiron3000@inspiron3000-Inspiron-14-3467:~/micropython/ports/rp2$ make BOARD=ARDUINO_NANO_RP2040_CONNECT [ -e build-ARDUINO_NANO_RP2040_CONNECT/CMakeCache.txt ] || cmake -S . -B build-ARDUINO_NANO_RP2040_...