bitluni / ESP32Lib

http://bitluni.net/esp32-vga/
451 stars 79 forks source link

[Question]How to make 8bit(256color) mode? #79

Open riraosan opened 1 year ago

riraosan commented 1 year ago

Hi. @bitluni

I would like to use your results to create an 8BIT(256colors) mode VGA class. Rough question, do I need to create a VGA class for 8BIT mode? Or can I use it as 8BIT mode by omitting the pins on the 554 in 14 bit mode?

riraosan commented 1 year ago

For example, can I use 14bit mode VGA as 8bit mode using the ports R2, R3, R4, G2, G3, G4, B2 ,B3, hsync, vsync?

Martin-Laclaustra commented 1 year ago

Have you tried 6BIT mode? What do you aim to do?

Martin-Laclaustra commented 1 year ago

Check the development branch for a bunch of other options.

riraosan commented 1 year ago

Hi @Martin-Laclaustra

Have you tried 6BIT mode?

No, I have not tried 6bit mode. I tried 14bit mode. Of course, when I used 14bit mode on the circuit for the 332, the white background was not white and the lines drew a pattern. I understand a little more what you are saying. Thank you very much.

I have confirmed that the RGBA() API converts 16 bits of pixel color to 14 bits. I assume that the process of rounding to 6 bits is the same. After this I would like to confirm.

I have three main objectives.

  1. to save memory (this seems impossible in 8bit mode)
  2. to connect and use the VGA library and lovyanGFX(very fast GFX Library for M5Stack. 8bit Composite and lovyanGFX sample movie)
  3. enjoy (JOKE)

1 doesn't seem possible. 2 could do it.

I would like to replace your GFX with lovyanGFX using 6bit mode after this.

I appreciate your contribution. Thank you very much.

@riraosan