I stumbled upon the same buffer protocol problem, albeit aiming to a different target: viewtopic.php?f=15&t=9211
There's currently no proper solution, I had to make a compromise on RAM usage to achive an acceptable result. Maybe my topic contains something useful to you.
Search found 11 matches
- Mon Mar 14, 2022 11:48 pm
- Forum: General Discussion and Questions
- Topic: why does the frambuf cannot use a memoryview as buf?
- Replies: 4
- Views: 1334
- Sat Nov 21, 2020 10:00 am
- Forum: Programs, Libraries and Tools
- Topic: How to implement the buffer protocol
- Replies: 9
- Views: 4513
Re: How to implement the buffer protocol
Just un update about how I solved my problem. I used a second image buffer to mirror what it is shown on the display, and byte-by-byte look for the differences against the FrameBuffer actual buffer, and then send data to the display only for those differences. This additional computational cost is l...
- Wed Oct 28, 2020 9:13 am
- Forum: Programs, Libraries and Tools
- Topic: How to implement the buffer protocol
- Replies: 9
- Views: 4513
Re: How to implement the buffer protocol
Yes, I thought about it, but I don't agree it is simpler. FrameBuffer gives me all the basic drawing primitives for free, especially a tedious feature like text drawing. Also (if I'm not going wrong) could be considered as standard in MicroPython, and future new FrameBuffer features will be availabl...
- Wed Oct 28, 2020 8:36 am
- Forum: Programs, Libraries and Tools
- Topic: How to implement the buffer protocol
- Replies: 9
- Views: 4513
Re: How to implement the buffer protocol
Yes, this display module allows the update of a single byte, 8 pixels.
Edit: I'm not expecting to do this writing regular Python code, C or even something else would be fine. But I'm glad to know that there's currently no way to do this. Thanks.
Edit: I'm not expecting to do this writing regular Python code, C or even something else would be fine. But I'm glad to know that there's currently no way to do this. Thanks.
- Wed Oct 28, 2020 7:33 am
- Forum: Programs, Libraries and Tools
- Topic: How to implement the buffer protocol
- Replies: 9
- Views: 4513
Re: How to implement the buffer protocol
Exactly: I'd like to send to the display, though the I2C bus, only the bytes actively written by the FrameBuffer class, and I need to replace the bytearray with something else - but it must to implement the buffer protocol. Currently I'm sending the whole bytearray to the display when needed and it ...
- Tue Oct 27, 2020 9:35 pm
- Forum: Programs, Libraries and Tools
- Topic: How to implement the buffer protocol
- Replies: 9
- Views: 4513
How to implement the buffer protocol
Hi all. I'm writing a small library to drive the Seeed Grove OLED display ( https://wiki.seeedstudio.com/Grove-OLED_Display_1.12inch/ ). I'm following the Arduino example source code, it has been pretty easy so far. I'd like to let the FrameBuffer class to directly write into the display ram but I n...
- Sat Oct 24, 2020 8:03 pm
- Forum: ESP32 boards
- Topic: bluetooth, send and receive raw data
- Replies: 2
- Views: 2729
Re: bluetooth, send and receive raw data
I was expecting that Bluetooth LE was a just a low-power version on the regular bluetooth. Now I know it isn't
Thanks a lot!
Thanks a lot!
- Fri Oct 23, 2020 4:48 pm
- Forum: ESP32 boards
- Topic: bluetooth, send and receive raw data
- Replies: 2
- Views: 2729
bluetooth, send and receive raw data
Hi all. Just bought a ESP-WROOM-32, immediately flashed Micropython and played a bit with it, very cool! I'm really not a bluetooth expert, but I wrote in the past some client-server programs to communicate between PCs using pybluez and the serial-like RFCOMM protocol. I'm trying to do the same thin...
- Sun Oct 04, 2020 8:59 pm
- Forum: ESP32 boards
- Topic: What to buy?
- Replies: 8
- Views: 3791
- Wed Sep 30, 2020 5:22 pm
- Forum: ESP32 boards
- Topic: What to buy?
- Replies: 8
- Views: 3791
Re: What to buy?
@pythoncoder Yes, reliability does matter to me, and ADCs too. Regarding the serial communication I'm planning to connect to board to a PC (Raspberry PI or other, still to be decided, but it doesn't matter) and I want to have communication and power on the same USB cable, so I'm wondering weather th...