Added original files

This commit is contained in:
lurenaud
2021-05-22 16:20:53 +02:00
parent 70f0e2f94f
commit 5c88724e38
59 changed files with 518333 additions and 0 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 62 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,43 @@
# Debug VGA param
## Params for custom VGA
Modify file: `sudo nano /boot/config.txt` then restart to apply
dpi_group=2
dpi_mode=87
dpi_timings= xxxx
## Tests:
- 640x480 60Hz : `dpi_timings=640 0 16 96 48 480 0 11 2 31 0 0 0 60 0 25175000 1 `
Visible but only halph of the screen...
- 320x240 60Hz : 'dpi_timings=320 1 12 32 44 240 1 6 10 6 0 0 0 60 0 6400000 1`
Not working
## Syntax:
`hdmi_timings=<h_active_pixels> <h_sync_polarity> <h_front_porch> <h_sync_pulse> <h_back_porch> <v_active_lines> <v_sync_polarity> <v_front_porch> <v_sync_pulse> <v_back_porch> <v_sync_offset_a> <v_sync_offset_b> <pixel_rep> <frame_rate> <interlaced> <pixel_freq> <aspect_ratio>`
- <h_active_pixels> = horizontal pixels (width)
- <h_sync_polarity> = invert hsync polarity
- <h_front_porch> = horizontal forward padding from DE acitve edge
- <h_sync_pulse> = hsync pulse width in pixel clocks
- <h_back_porch> = vertical back padding from DE active edge
- <v_active_lines> = vertical pixels height (lines)
- <v_sync_polarity> = invert vsync polarity
- <v_front_porch> = vertical forward padding from DE active edge in horizontal sync pulse
- <v_sync_pulse> = vsync pulse width in pixel clocks
- <v_back_porch> = vertical back padding from DE active edge in horizontal sync pulse
- <v_sync_offset_a> = leave at zero
- <v_sync_offset_b> = leave at zero
- <pixel_rep> = leave at zero
- <frame_rate> = screen refresh rate in Hz
- <interlaced> = leave at zero
- <pixel_freq> = clock frequency (width*height*framerate)
- <aspect_ratio> = *
HDMI_ASPECT_4_3 = 1
HDMI_ASPECT_14_9 = 2
HDMI_ASPECT_16_9 = 3
HDMI_ASPECT_5_4 = 4
HDMI_ASPECT_16_10 = 5
HDMI_ASPECT_15_9 = 6
HDMI_ASPECT_21_9 = 7
HDMI_ASPECT_64_27 = 8

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -0,0 +1,56 @@
# Generate hdmitiming command lines
print("DPI Command : ")
# Original 640x480x60Hz
# p = [0] *17
# p[0] = 640 # h_active_pixels = horizontal pixels (width)
# p[1] = 0 # h_sync_polarity = invert hsync polarity
# p[2] = 16 # h_front_porch = horizontal forward padding from DE acitve edge
# p[3] = 96 # h_sync_pulse = hsync pulse width in pixel clocks
# p[4] = 48 # h_back_porch = vertical back padding from DE active edge
# p[5] = 480 # v_active_lines = vertical pixels height (lines)
# p[6] = 0 # v_sync_polarity = invert vsync polarity
# p[7] = 11 # v_front_porch = vertical forward padding from DE active edge
# p[8] = 2 # v_sync_pulse = vsync pulse width in pixel clocks
# p[9] = 31 # v_back_porch = vertical back padding from DE active edge
# p[10] = 0 # v_sync_offset_a = leave at zero
# p[11] = 0 # v_sync_offset_b = leave at zero
# p[12] = 0 # pixel_rep = leave at zero
# p[13] = 60 # frame_rate = screen refresh rate in Hz
# p[14] = 0 # interlaced = leave at zero
# p[15] = 25175000 # pixel_freq = clock frequency (width*height*framerate)
# p[16] = 1 # HDMI_ASPECT
# * The aspect ratio can be set to one of eight values (choose closest for your screen):
# HDMI_ASPECT_4_3 = 1
# HDMI_ASPECT_14_9 = 2
# HDMI_ASPECT_16_9 = 3
# HDMI_ASPECT_5_4 = 4
# HDMI_ASPECT_16_10 = 5
# HDMI_ASPECT_15_9 = 6
# HDMI_ASPECT_21_9 = 7
# HDMI_ASPECT_64_27 = 8
p = [0] *17
p[0] = 416 # h_active_pixels = horizontal pixels (width)
p[1] = 0 # h_sync_polarity = invert hsync polarity
p[2] = 12 # h_front_porch = horizontal forward padding from DE acitve edge
p[3] = 27 # h_sync_pulse = hsync pulse width in pixel clocks
p[4] = 37 # h_back_porch = vertical back padding from DE active edge
p[5] = 234 # v_active_lines = vertical pixels height (lines)
p[6] = 0 # v_sync_polarity = invert vsync polarity
p[7] = 9 # v_front_porch = vertical forward padding from DE active edge
p[8] = 3 # v_sync_pulse = vsync pulse width in pixel clocks
p[9] = 17 # v_back_porch = vertical back padding from DE active edge
p[10] = 0 # v_sync_offset_a = leave at zero
p[11] = 0 # v_sync_offset_b = leave at zero
p[12] = 0 # pixel_rep = leave at zero
p[13] = 60 # frame_rate = screen refresh rate in Hz
p[14] = 0 # interlaced = leave at zero
p[15] = 5760000 # pixel_freq = clock frequency (width*height*framerate)
p[16] = 1 # HDMI_ASPECT
print("dpi_timings=", end='')
for i in p:
print(i, end=' ')