0% found this document useful (0 votes)
35 views4 pages

CEC Python

The document discusses using HDMI CEC with a Raspberry Pi to detect remote button presses and control HDMI-connected devices. It notes that a Pulse-Eight USB-CEC adapter is required for Banana Pi users, as its onboard HDMI does not support CEC. The document offers assistance for users wanting to connect an Arduino or ESP to read CEC signals.

Uploaded by

Jagdeep Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
35 views4 pages

CEC Python

The document discusses using HDMI CEC with a Raspberry Pi to detect remote button presses and control HDMI-connected devices. It notes that a Pulse-Eight USB-CEC adapter is required for Banana Pi users, as its onboard HDMI does not support CEC. The document offers assistance for users wanting to connect an Arduino or ESP to read CEC signals.

Uploaded by

Jagdeep Singh
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as PDF, TXT or read online on Scribd
You are on page 1/ 4

4/18/25, 11:23 AM HDMI CEC Raspberry Pi

Skip to content
ChatGPT
try: 
Copy code
while True:
time.sleep(1)
except KeyboardInterrupt:
print("Stopped.")

if __name__ == "__main__":
main()

 

🔎 What You Can Do with It


Detect when a TV remote button is pressed (e.g., volume, power, navigation).

Send CEC commands back to the TV (like cec_init.PowerOnDevices() ).

Control HDMI-connected devices programmatically.

⚠️ If You're on Banana Pi
You need a Pulse-Eight USB-CEC adapter for this to work on Banana Pi since the onboard
HDMI doesn't pass CEC.

Let me know:

Do you have a USB-CEC adapter?

Or do you want to hook up an Arduino or ESP to read CEC signals from HDMI pin 13?

I can help either way.


Ask anything

Search Reason

ChatGPT can make mistakes. Check important info. ?

https://chatgpt.com/c/68018657-915c-800d-b8eb-d9663550122b 1/4
4/18/25, 11:23 AM HDMI CEC Raspberry Pi

Skip to content

https://chatgpt.com/c/68018657-915c-800d-b8eb-d9663550122b 2/4
4/18/25, 11:23 AM HDMI CEC Raspberry Pi

Skip to content

https://chatgpt.com/c/68018657-915c-800d-b8eb-d9663550122b 3/4
4/18/25, 11:23 AM HDMI CEC Raspberry Pi

https://chatgpt.com/c/68018657-915c-800d-b8eb-d9663550122b 4/4

You might also like