Mini HDMI (Type C) to Standard HDMI (Type A)
Mini HDMI (Type C) to Standard HDMI (Type A)
10CM
Up to 1080p (1920x1080) at 60Hz
Yes
White
Raspberry Pi boards and other devices with mini HDMI ports
Certifications and Compliance
RoHS (Restriction of Hazardous Substances) compliant
CE (Conformit Europene) certified
FCC (Federal Communications Commission) compliant
Warranty and Support
The Raspberry Pi Official 10CM Mini HDMI C/M to Standard HDMI A/F Cable White is backed by a manufacturer's warranty and dedicated customer support, ensuring a hassle-free experience for users.
Raspberry Pi Official 10CM Mini HDMI C/M to Standard HDMI A/F Cable White
Overview
The Raspberry Pi Official 10CM Mini HDMI C/M to Standard HDMI A/F Cable White is a high-quality cable designed specifically for use with Raspberry Pi boards, allowing users to connect their device to a standard HDMI display or projector. This cable is 10cm in length and features a mini HDMI C/M connector on one end and a standard HDMI A/F connector on the other.
Technical Specifications
Length: 10cm
Connector Type: Mini HDMI C/M (Male) to Standard HDMI A/F (Male)
Resolution Support: Up to 4K@60Hz
Compatibility: Raspberry Pi boards (all models)
Code Examples
### Example 1: Outputting Video to an HDMI Display using Raspbian OS
In this example, we will demonstrate how to use the Raspberry Pi Official 10CM Mini HDMI C/M to Standard HDMI A/F Cable White to output video to an HDMI display using the Raspbian operating system.
Hardware Requirements
Raspberry Pi board (any model)
Raspberry Pi Official 10CM Mini HDMI C/M to Standard HDMI A/F Cable White
HDMI display or projector
Software Requirements
Raspbian OS (latest version)
Code
```python
# Import the necessary libraries
import pygame
# Initialize pygame
pygame.init()
# Set the screen resolution and display mode
screen_width = 1920
screen_height = 1080
screen_mode = pygame.display.set_mode((screen_width, screen_height), pygame.HWSURFACE | pygame.DOUBLEBUF)
# Create a sample video surface
video_surface = pygame.Surface((640, 480))
# Fill the video surface with a solid color
video_surface.fill((255, 0, 0)) # Red color
# Blit the video surface to the screen
screen_mode.blit(video_surface, (0, 0))
# Update the screen
pygame.display.flip()
# Run the video output loop
while True:
# Handle events
for event in pygame.event.get():
if event.type == pygame.QUIT:
pygame.quit()
sys.exit()
# Update the screen
pygame.display.flip()
```
### Example 2: Streaming Video over HDMI using Python and OpenCV
In this example, we will demonstrate how to use the Raspberry Pi Official 10CM Mini HDMI C/M to Standard HDMI A/F Cable White to stream video from a Raspberry Pi camera module to an HDMI display using OpenCV and Python.
Hardware Requirements
Raspberry Pi board (any model)
Raspberry Pi camera module
Raspberry Pi Official 10CM Mini HDMI C/M to Standard HDMI A/F Cable White
HDMI display or projector
Software Requirements
Raspbian OS (latest version)
OpenCV library (latest version)
Python 3.x
Code
```python
import cv2
# Initialize the camera module
cap = cv2.VideoCapture(0)
while True:
# Read a frame from the camera
ret, frame = cap.read()
# Convert the frame to HDMI output format
frame_hdmi = cv2.resize(frame, (1920, 1080))
# Display the frame on the HDMI output
cv2.imshow('HDMI Output', frame_hdmi)
# Exit on key press
if cv2.waitKey(1) & 0xFF == ord('q'):
break
# Release the camera module
cap.release()
cv2.destroyAllWindows()
```
In this example, we use OpenCV to read frames from the Raspberry Pi camera module and resize them to fit the HDMI output resolution. We then display the frames on the HDMI output using the `cv2.imshow()` function.