lucadentella / arduinolib_ceclient Goto Github PK
View Code? Open in Web Editor NEWHDMI CEC library for Arduino
License: GNU General Public License v3.0
HDMI CEC library for Arduino
License: GNU General Public License v3.0
I understand this not the best place to ask questions but instead is for reporting bugs, I am hoping you can oblige anyhow. I have very little programming knowledge and understanding. I am trying to create a simple sketch which will transmit a cec frame to play and pause my chromecast when receiving a IR signal (my really old tv doesnt support dec controls only on and off) but I am unsure of how to write the syntax, any help you can provide in pointing me in the correct direction would be greatly appreciated.
EDIT: I should clarify that I already have a working sketch which performs actions when receiving the correct IR signal, my exact problem is how exactly to use the cec library to transmit a frame
how to use this library in esp32
C:\Users\Isaac\Documents\Arduino\libraries\CEClient\src\CEC\CEC.cpp: In member function 'virtual void CEC_LogicalDevice::OnTransmitComplete(bool)':
C:\Users\Isaac\Documents\Arduino\libraries\CEClient\src\CEC\CEC.cpp:138:1: error: expected primary-expression before '}' token
}
^
Can you give me hardware connection details and serial print while receiving signal example code
Has anyone been able to get the write function to work? If so, can you share a short example? Even a code snippet would be helpful.
Tried "everything". Been able to get monitor mode to work, but once a write is executed, even that stops working.
Update: Didn't get an answer to this so analyzed the code. Got the code to work on an esp32. Seems to read and write to the HDMI CEC signal great. Thanks lucadentella. Also updated the library to print out the CEC opcodes and logical address, which I found very useful to discover what the commands were giving. Used the published schematic using discreet components. That worked, too.
How to use this? The only included example seems to monitor the communication between two other existance devices.
It points to another Project: https://github.com/floe/CEC, that point again to another thats 404.
Is this strange complex Hardware of floe/CEC used?
There exists only one CEC line but 2 I/O are wasted. At 3V3 Adrduino no Hardware should required.
On a 5V Arduino a single FET is would required for Voltage conversion.
I assume the complex Hardware convert the HIGH to LOW and LOW to HIGH?
Dont get it the code to work with 1 Pin. All 5 trys the TV find 1 to 6 different devices that are not set, never incoming messages.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.