working in progress...
This commit is contained in:
		
							
								
								
									
										114
									
								
								Raspberry/config.txt
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										114
									
								
								Raspberry/config.txt
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,114 @@
 | 
				
			|||||||
 | 
					# For more options and information see
 | 
				
			||||||
 | 
					# http://rpf.io/configtxt
 | 
				
			||||||
 | 
					# Some settings may impact device functionality. See link above for details
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# uncomment if you get no picture on HDMI for a default "safe" mode
 | 
				
			||||||
 | 
					#hdmi_safe=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# uncomment this if your display has a black border of unused pixels visible
 | 
				
			||||||
 | 
					# and your display can output without overscan
 | 
				
			||||||
 | 
					#disable_overscan=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# uncomment the following to adjust overscan. Use positive numbers if console
 | 
				
			||||||
 | 
					# goes off screen, and negative if there is too much border
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# uncomment to force a console size. By default it will be display's size minus
 | 
				
			||||||
 | 
					# overscan.
 | 
				
			||||||
 | 
					#framebuffer_width=1280
 | 
				
			||||||
 | 
					#framebuffer_height=720
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# uncomment if hdmi display is not detected and composite is being output
 | 
				
			||||||
 | 
					#hdmi_force_hotplug=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# uncomment to force a specific HDMI mode (this will force VGA)
 | 
				
			||||||
 | 
					#hdmi_group=1
 | 
				
			||||||
 | 
					#hdmi_mode=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# uncomment to force a HDMI mode rather than DVI. This can make audio work in
 | 
				
			||||||
 | 
					# DMT (computer monitor) modes
 | 
				
			||||||
 | 
					#hdmi_drive=2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# uncomment to increase signal to HDMI, if you have interference, blanking, or
 | 
				
			||||||
 | 
					# no display
 | 
				
			||||||
 | 
					#config_hdmi_boost=4
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# uncomment for composite PAL
 | 
				
			||||||
 | 
					#sdtv_mode=2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#uncomment to overclock the arm. 700 MHz is the default.
 | 
				
			||||||
 | 
					#arm_freq=800
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Uncomment some or all of these to enable the optional hardware interfaces
 | 
				
			||||||
 | 
					#dtparam=i2s=on
 | 
				
			||||||
 | 
					#dtparam=spi=on
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Uncomment this to enable infrared communication.
 | 
				
			||||||
 | 
					#dtoverlay=gpio-ir,gpio_pin=17
 | 
				
			||||||
 | 
					#dtoverlay=gpio-ir-tx,gpio_pin=18
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Additional overlays and parameters are documented /boot/overlays/README
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Enable audio (loads snd_bcm2835)
 | 
				
			||||||
 | 
					dtparam=audio=on
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[pi4]
 | 
				
			||||||
 | 
					# Enable DRM VC4 V3D driver on top of the dispmanx display stack
 | 
				
			||||||
 | 
					dtoverlay=vc4-fkms-v3d
 | 
				
			||||||
 | 
					max_framebuffers=2
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					[all]
 | 
				
			||||||
 | 
					dtoverlay=vc4-fkms-v3d
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Custom power settings
 | 
				
			||||||
 | 
					max_usb_current=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Disable the PWR LED.
 | 
				
			||||||
 | 
					# dtparam=pwr_led_trigger=none
 | 
				
			||||||
 | 
					# dtparam=pwr_led_activelow=off
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Disable Rainbow splash
 | 
				
			||||||
 | 
					disable_splash=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# GPU Mem
 | 
				
			||||||
 | 
					gpu_mem=256
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Overscan fix
 | 
				
			||||||
 | 
					overscan_scale=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Enable watchdog
 | 
				
			||||||
 | 
					dtparam=watchdog=on
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Boot time improvements
 | 
				
			||||||
 | 
					boot_delay=0
 | 
				
			||||||
 | 
					initial_turbo=30
 | 
				
			||||||
 | 
					start_cd=1
 | 
				
			||||||
 | 
					#dtoverlay=sdtweak,overclock_50=100
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Bluetooth
 | 
				
			||||||
 | 
					dtoverlay=pi3-disable-bt
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# VGA666
 | 
				
			||||||
 | 
					dtoverlay=vga666
 | 
				
			||||||
 | 
					enable_dpi_lcd=1
 | 
				
			||||||
 | 
					display_default_lcd=1
 | 
				
			||||||
 | 
					dpi_group=2
 | 
				
			||||||
 | 
					dpi_mode=87
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# test
 | 
				
			||||||
 | 
					dpi_timings=400 0 16 32 48 234 0 9 3 17 0 0 0 60 1 8000000 1 # ok
 | 
				
			||||||
 | 
					#dpi_timings=848 0 24 80 104 480 0 3 10 7 0 0 0 60 0 31500000 1
 | 
				
			||||||
 | 
					#dpi_timings=400 0 16 96 48 234 0 11 2 31 0 0 0 60 0 12175000 1
 | 
				
			||||||
 | 
					# 640x480x50Hz
 | 
				
			||||||
 | 
					#dpi_timings=640 0 16 96 48 480 0 11 2 31 0 0 0 60 0 25175000 1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					#dpi_timings=320 0 16 96 48 240 0 11 2 31 0 0 0 60 0 12587500 6
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# overscan_left=16
 | 
				
			||||||
 | 
					# overscan_right=0
 | 
				
			||||||
 | 
					# overscan_top=0
 | 
				
			||||||
 | 
					# overscan_bottom=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# I2C Bus
 | 
				
			||||||
 | 
					dtparam=i2c_arm=on
 | 
				
			||||||
 | 
					dtparam=spi=off
 | 
				
			||||||
							
								
								
									
										212
									
								
								Raspberry/crankshaft_env.sh
									
									
									
									
									
										Normal file
									
								
							
							
						
						
									
										212
									
								
								Raspberry/crankshaft_env.sh
									
									
									
									
									
										Normal file
									
								
							@@ -0,0 +1,212 @@
 | 
				
			|||||||
 | 
					### Hardware ###
 | 
				
			||||||
 | 
					# The hardware pins can be completly disabled with the global flag.
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Global Flag (enables / disables gpio usage excluding device connected
 | 
				
			||||||
 | 
					# trigger gpio and ignition based shutdown!)
 | 
				
			||||||
 | 
					ENABLE_GPIO=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Possible used gpio's by hifiberry dac's depending on model:
 | 
				
			||||||
 | 
					# For more info visit the hifiberry homepage! To prevent from bugs don't use them!
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# GPIO 4,5,6,16,18,19,20,21,27,28,29,30,31
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Generally used GPIO's
 | 
				
			||||||
 | 
					# Used for HAT modules - Never use it!
 | 
				
			||||||
 | 
					# GPIO 27,28
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# GPIO Setup
 | 
				
			||||||
 | 
					DEV_PIN=0
 | 
				
			||||||
 | 
					INVERT_PIN=0
 | 
				
			||||||
 | 
					X11_PIN=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Device connected gpio (device connected 1 / else 0)
 | 
				
			||||||
 | 
					# Note: this gpio depends NOT on ENABLE_GPIO!!!
 | 
				
			||||||
 | 
					# To disable set to 0
 | 
				
			||||||
 | 
					ANDROID_PIN=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# GPIO Trigger for Rearcam
 | 
				
			||||||
 | 
					# GPIO wich triggers enabling Rearcam Mode of RPICam
 | 
				
			||||||
 | 
					# To disable set to 0
 | 
				
			||||||
 | 
					REARCAM_PIN=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# GPIO Trigger for Day/Night
 | 
				
			||||||
 | 
					# GPIO wich triggers Day (open gpio)/Night (closed to gnd) of GUI
 | 
				
			||||||
 | 
					# To disable set to 0
 | 
				
			||||||
 | 
					# If enabled it overrides lightsensor!
 | 
				
			||||||
 | 
					DAYNIGHT_PIN=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Maintenance / Initial Setup ###
 | 
				
			||||||
 | 
					# Start Crankshaft in dev mode to get network, shell and ssh access
 | 
				
			||||||
 | 
					# openauto won't be started automatically
 | 
				
			||||||
 | 
					DEV_MODE=1
 | 
				
			||||||
 | 
					# Start openauto in dev mode if enabled
 | 
				
			||||||
 | 
					DEV_MODE_APP=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Debugging ###
 | 
				
			||||||
 | 
					# Start Crankshaft in debug mode to get network, shell and ssh access
 | 
				
			||||||
 | 
					# System will do a normal start in ro mode
 | 
				
			||||||
 | 
					DEBUG_MODE=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### OpenAuto ###
 | 
				
			||||||
 | 
					# Start OpenAuto in X11 or EGL
 | 
				
			||||||
 | 
					# By default, EGL, but if you can't get it to work, do X11
 | 
				
			||||||
 | 
					START_X11=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Screen ###
 | 
				
			||||||
 | 
					# Brightness related stuff
 | 
				
			||||||
 | 
					# brightness file (default for rpi display: /sys/class/backlight/rpi_backlight/brightness)
 | 
				
			||||||
 | 
					BRIGHTNESS_FILE=/sys/class/backlight/rpi_backlight/brightness
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# brightness values
 | 
				
			||||||
 | 
					BR_MIN=30
 | 
				
			||||||
 | 
					BR_MAX=255
 | 
				
			||||||
 | 
					BR_STEP=25
 | 
				
			||||||
 | 
					BR_DAY=83
 | 
				
			||||||
 | 
					BR_NIGHT=30
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Custom brightness control
 | 
				
			||||||
 | 
					# Note: this command is called after every brightness change - can slow down for example the brightness
 | 
				
			||||||
 | 
					# slider depending on execution speed - the process is called with "&" so call is not waiting for exit!
 | 
				
			||||||
 | 
					# Sample call which will be executed on request: "CUSTOM_BRIGHTNESS_COMMAND brightnessvalue &"
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Note: To allow backup and restore your command must be located on /boot/crankshaft/custom/
 | 
				
			||||||
 | 
					# otherwise it will not be transfered during updates!
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# To disable leave empty
 | 
				
			||||||
 | 
					CUSTOM_BRIGHTNESS_COMMAND=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Flip the screen 180°
 | 
				
			||||||
 | 
					FLIP_SCREEN=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Audio ###
 | 
				
			||||||
 | 
					# If stored vol is lower than this set to this value
 | 
				
			||||||
 | 
					STARTUP_VOL_MIN=30
 | 
				
			||||||
 | 
					# If stored vol is greater than this limit to this value
 | 
				
			||||||
 | 
					STARTUP_VOL_MAX=100
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					###  Power Mgmt Related Stuff ###
 | 
				
			||||||
 | 
					# Timeout display after disconnect or after boot without connected device
 | 
				
			||||||
 | 
					DISCONNECTION_SCREEN_POWEROFF_SECS=120
 | 
				
			||||||
 | 
					# Disable Timer
 | 
				
			||||||
 | 
					DISCONNECTION_SCREEN_POWEROFF_DISABLE=0
 | 
				
			||||||
 | 
					# Use screensaver (bg+clock) instead of display off
 | 
				
			||||||
 | 
					SCREEN_POWEROFF_OVERRIDE=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Timeout shutdown after disconnect or after boot without connected device
 | 
				
			||||||
 | 
					#
 | 
				
			||||||
 | 
					# Note: on first boot timeout is set to 300 seconds - after first start
 | 
				
			||||||
 | 
					# this value is used
 | 
				
			||||||
 | 
					DISCONNECTION_POWEROFF_MINS=60
 | 
				
			||||||
 | 
					# Disable Timer
 | 
				
			||||||
 | 
					DISCONNECTION_POWEROFF_DISABLE=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### Wifi Setup ###
 | 
				
			||||||
 | 
					# Your country code like EN,DE,FR,UK etc.
 | 
				
			||||||
 | 
					WIFI_COUNTRY=FR
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Wifi client mode (use this entry for home/work wifi - not for phone's hotspot)
 | 
				
			||||||
 | 
					# If your SSID or password contains special chars or spaces make sure using quotation marks ="SSID" / ="password"
 | 
				
			||||||
 | 
					WIFI_SSID="POCOX3"
 | 
				
			||||||
 | 
					WIFI_PSK="123456789"
 | 
				
			||||||
 | 
					# Optinal 2nd config to access to phone's hotspot
 | 
				
			||||||
 | 
					# Note: if second config is configured system will use first connectable wifi during boot
 | 
				
			||||||
 | 
					WIFI2_SSID="sample"
 | 
				
			||||||
 | 
					WIFI2_PSK="sample"
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Force recreate wpa_supplicant.conf during boot after wifi credentials have changed by user (default 0 | update 1)
 | 
				
			||||||
 | 
					WIFI_UPDATE_CONFIG=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Hotspot (if enabled the wifi client is disabled and a hotspot is opened)
 | 
				
			||||||
 | 
					# Hotspot has now a default password (1234567890) -> changeable in /etc/hostapd/hostapd.conf if really needed!
 | 
				
			||||||
 | 
					ENABLE_HOTSPOT=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					### RPi Camera Module ###
 | 
				
			||||||
 | 
					# Overlay settings
 | 
				
			||||||
 | 
					RPICAM_X=100
 | 
				
			||||||
 | 
					RPICAM_Y=52
 | 
				
			||||||
 | 
					RPICAM_WIDTH=590
 | 
				
			||||||
 | 
					RPICAM_HEIGTH=366
 | 
				
			||||||
 | 
					RPICAM_HFLIP=0
 | 
				
			||||||
 | 
					RPICAM_VFLIP=0
 | 
				
			||||||
 | 
					RPICAM_ROTATION=0
 | 
				
			||||||
 | 
					RPICAM_FPS=24
 | 
				
			||||||
 | 
					RPICAM_AWB=auto
 | 
				
			||||||
 | 
					RPICAM_EXP=auto
 | 
				
			||||||
 | 
					### Dashcam realted stuff ###
 | 
				
			||||||
 | 
					# Time for a recording segment
 | 
				
			||||||
 | 
					RPICAM_LOOPTIME=300
 | 
				
			||||||
 | 
					# Max archived recording files / oldest will be removed if newer is created
 | 
				
			||||||
 | 
					RPICAM_LOOPCOUNT=3
 | 
				
			||||||
 | 
					# Start recording on system startup (0|1)
 | 
				
			||||||
 | 
					RPICAM_AUTORECORDING=0
 | 
				
			||||||
 | 
					# Res: 720/1080 (default:720)
 | 
				
			||||||
 | 
					RPICAM_RESOLUTION=720
 | 
				
			||||||
 | 
					# Don't manually edit this values (use gui)
 | 
				
			||||||
 | 
					RPICAM_ZOOM=0
 | 
				
			||||||
 | 
					RPICAM_YCORRECTION=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# USB Rearcam ###
 | 
				
			||||||
 | 
					# Use usb cam instead of rpi cam module for rearcam
 | 
				
			||||||
 | 
					USBCAM_USE=0
 | 
				
			||||||
 | 
					# Overlay settings
 | 
				
			||||||
 | 
					USBCAM_ROTATION=0
 | 
				
			||||||
 | 
					USBCAM_HFLIP=0
 | 
				
			||||||
 | 
					USBCAM_VFLIP=0
 | 
				
			||||||
 | 
					# Ignore all and use this custom params
 | 
				
			||||||
 | 
					# Only for special setups
 | 
				
			||||||
 | 
					USBCAM_CUSTOM_PARAMS=
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# RTC Related Settings ###
 | 
				
			||||||
 | 
					# Enables day/night switch by rtc - don't change manually!
 | 
				
			||||||
 | 
					# Use command 'crankshaft rtc xxx' in shell!
 | 
				
			||||||
 | 
					RTC_DAYNIGHT=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Day / Night (only working with rtc enabled) - don't change manually!
 | 
				
			||||||
 | 
					# Use command 'crankshaft timers daynight xx xx' in shell!
 | 
				
			||||||
 | 
					RTC_DAY_START=8
 | 
				
			||||||
 | 
					RTC_NIGHT_START=18
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Ignition Based Shutdown
 | 
				
			||||||
 | 
					# This pin must be low to keep system running. If high for > IGNITION-DELAY (seconds)
 | 
				
			||||||
 | 
					# system will do a shutdown
 | 
				
			||||||
 | 
					# Note: this gpio depends NOT on ENABLE_GPIO!!!
 | 
				
			||||||
 | 
					# To disable set to 0
 | 
				
			||||||
 | 
					IGNITION_PIN=0
 | 
				
			||||||
 | 
					# Time to wait until shutting down (seconds)
 | 
				
			||||||
 | 
					IGNITION_DELAY=60
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Enable experimental bluetooth stuff
 | 
				
			||||||
 | 
					# don't use - only prepared for further releases!
 | 
				
			||||||
 | 
					ENABLE_BLUETOOTH=0
 | 
				
			||||||
 | 
					# Allow to autopair devices
 | 
				
			||||||
 | 
					ENABLE_PAIRABLE=0
 | 
				
			||||||
 | 
					# Use external adapter not builtin
 | 
				
			||||||
 | 
					EXTERNAL_BLUETOOTH=0
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# System updates
 | 
				
			||||||
 | 
					ALLOW_USB_FLASH=1
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# LightSensor
 | 
				
			||||||
 | 
					LIGHTSENSOR_TYPE='TSL2561' # Allowed Values TSL2561 TSL2591
 | 
				
			||||||
 | 
					# the address of TSL2561/TSL2591 can be
 | 
				
			||||||
 | 
					# 0x29, 0x39 or 0x49
 | 
				
			||||||
 | 
					TSL_I2C_BUS=1
 | 
				
			||||||
 | 
					TSL_ADDR=0x29
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					# Auto brightness control based on tsl2561 light sensor
 | 
				
			||||||
 | 
					# Check interval sensor 5,10,15,20,25,30
 | 
				
			||||||
 | 
					TSL2561_CHECK_INTERVAL=10
 | 
				
			||||||
 | 
					# Switch to night on this level or lower (0 = disabled / 1-5)
 | 
				
			||||||
 | 
					TSL2561_DAYNIGHT_ON_STEP=2
 | 
				
			||||||
 | 
					# Switch levels for brightness sensor in lux
 | 
				
			||||||
 | 
					LUX_LEVEL_1=5
 | 
				
			||||||
 | 
					LUX_LEVEL_2=20
 | 
				
			||||||
 | 
					LUX_LEVEL_3=100
 | 
				
			||||||
 | 
					LUX_LEVEL_4=200
 | 
				
			||||||
 | 
					LUX_LEVEL_5=500
 | 
				
			||||||
 | 
					# Set this display brightness by switch levels
 | 
				
			||||||
 | 
					DISP_BRIGHTNESS_1=30
 | 
				
			||||||
 | 
					DISP_BRIGHTNESS_2=90
 | 
				
			||||||
 | 
					DISP_BRIGHTNESS_3=150
 | 
				
			||||||
 | 
					DISP_BRIGHTNESS_4=210
 | 
				
			||||||
 | 
					DISP_BRIGHTNESS_5=255
 | 
				
			||||||
@@ -10,6 +10,8 @@ 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`
 | 
					- 320x240 60Hz : 'dpi_timings=320 1 12 32 44 240 1 6 10 6 0 0 0 60 0 6400000 1`
 | 
				
			||||||
Not working
 | 
					Not working
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					## Resolution:
 | 
				
			||||||
 | 
					- 400x234
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					
 | 
				
			||||||
## Syntax: 
 | 
					## Syntax: 
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -33,22 +33,22 @@ print("DPI Command : ")
 | 
				
			|||||||
# HDMI_ASPECT_64_27 = 8
 | 
					# HDMI_ASPECT_64_27 = 8
 | 
				
			||||||
 | 
					
 | 
				
			||||||
p = [0] *17
 | 
					p = [0] *17
 | 
				
			||||||
p[0] =  416   # h_active_pixels = horizontal pixels (width)
 | 
					p[0] =  848   # h_active_pixels = horizontal pixels (width)
 | 
				
			||||||
p[1] =  0   # h_sync_polarity = invert hsync polarity
 | 
					p[1] =  0   # h_sync_polarity = invert hsync polarity
 | 
				
			||||||
p[2] =  12   # h_front_porch   = horizontal forward padding from DE acitve edge
 | 
					p[2] =  24   # h_front_porch   = horizontal forward padding from DE acitve edge
 | 
				
			||||||
p[3] =  27   # h_sync_pulse    = hsync pulse width in pixel clocks
 | 
					p[3] =  80   # h_sync_pulse    = hsync pulse width in pixel clocks
 | 
				
			||||||
p[4] =  37   # h_back_porch    = vertical back padding from DE active edge
 | 
					p[4] =  104   # h_back_porch    = vertical back padding from DE active edge
 | 
				
			||||||
p[5] =  234   # v_active_lines  = vertical pixels height (lines)
 | 
					p[5] =  480   # v_active_lines  = vertical pixels height (lines)
 | 
				
			||||||
p[6] =  0   # v_sync_polarity = invert vsync polarity
 | 
					p[6] =  0   # v_sync_polarity = invert vsync polarity
 | 
				
			||||||
p[7] =  9   # v_front_porch   = vertical forward padding from DE active edge
 | 
					p[7] =  3   # v_front_porch   = vertical forward padding from DE active edge
 | 
				
			||||||
p[8] =  3   # v_sync_pulse    = vsync pulse width in pixel clocks
 | 
					p[8] =  10   # v_sync_pulse    = vsync pulse width in pixel clocks
 | 
				
			||||||
p[9] =  17   # v_back_porch    = vertical back padding from DE active edge
 | 
					p[9] =  7   # v_back_porch    = vertical back padding from DE active edge
 | 
				
			||||||
p[10] = 0   # v_sync_offset_a = leave at zero
 | 
					p[10] = 0   # v_sync_offset_a = leave at zero
 | 
				
			||||||
p[11] = 0   # v_sync_offset_b = leave at zero
 | 
					p[11] = 0   # v_sync_offset_b = leave at zero
 | 
				
			||||||
p[12] = 0   # pixel_rep       = leave at zero
 | 
					p[12] = 0   # pixel_rep       = leave at zero
 | 
				
			||||||
p[13] = 60   # frame_rate      = screen refresh rate in Hz
 | 
					p[13] = 60   # frame_rate      = screen refresh rate in Hz
 | 
				
			||||||
p[14] = 0   # interlaced      = leave at zero
 | 
					p[14] = 0   # interlaced      = leave at zero
 | 
				
			||||||
p[15] = 5760000   # pixel_freq      = clock frequency (width*height*framerate)
 | 
					p[15] = 31500000   # pixel_freq      = clock frequency (width*height*framerate)
 | 
				
			||||||
p[16] = 1   # HDMI_ASPECT
 | 
					p[16] = 1   # HDMI_ASPECT
 | 
				
			||||||
 | 
					
 | 
				
			||||||
print("dpi_timings=", end='')
 | 
					print("dpi_timings=", end='')
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user