Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Do we need vcc pin for vga? #18

Open
mylab4492 opened this issue Sep 25, 2023 · 6 comments
Open

Do we need vcc pin for vga? #18

mylab4492 opened this issue Sep 25, 2023 · 6 comments

Comments

@mylab4492
Copy link

I have used esp32 vga library but vcc pin is not required to be connected.
Also in other library of yours you did not connected the vcc pin but in this library you have connected the vcc pin at pin number 9 with resisitor of 150 ohm.

@Panda381
Copy link
Owner

Pin 9 is specified as the power supply for the ROM in the monitor. Sometimes I use it, sometimes I don't, but I haven't noticed a difference. Sometimes I even connect it to GND (easier to connect the connector pins). I think it is not necessary.

@mylab4492
Copy link
Author

Ok, thank you for your quick reply as always.
But somehow I'm not able to get display.
here is what I'm doing

  1. compiling vga_baloons program by clicking on c.bat
    2.copying program.uf2 to pi pico storage

Note: I'm new to pi pico.

Is there anything wrong here?

@Panda381
Copy link
Owner

Check the settings in vga_config.h to see if it matches your hardware - VGA_GPIO_FIRST is the first pin with colors, followed by 8 pins of colors and 1 pin with CSYNC composite sync. However, some monitors do not support composite sync, they require separate HSYNC and VSYNC. This is not included in this version of the library. The PicoVGA description provides a link to a derivative project that includes an adjustment for VSYNC.

Or you can use another (newer) project, PicoLibSDK, which also supports hardware with 8-bit display and a mixture of HSYNC+VSYNC, but uses a simple frame buffer display, and does not support extended modes like PicoVGA. https://github.com/Panda381/PicoLibSDK

@mylab4492
Copy link
Author

mylab4492 commented Sep 25, 2023

Thank you for your suggestions. I'll check this one. My requirements are high resolution (at least 800x600) with 8 bit colors. which library will be more suitable for my use case can you suggest?

@mylab4492
Copy link
Author

One more question can we rotate the display?

@Panda381
Copy link
Owner

PicoVGA cannot rotate the display. It would be difficult to implement - mainly because DMA cannot transfer data with increment other than 1. It would have to be solved by software auxiliary buffer, which would be slow. It would be easier to implement it in drawing routines - they could be modified to render graphics to the frame buffer rotationally. But it wouldn't be easy to modify them.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants