New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Cool project - any suggestions to get vcom value? #1
Comments
Hey @kimmobrunfeldt! 👋 I just made an experiment and could retreive the data with the command you've mentioned. The result you're receiving is a "word" (that is two bytes, or 16 bit). The VCOM value of my display is let data = [
CUSTOMER_CMD, // 0xfe
0x00,
0x00,
0x00,
0x00,
0x00,
PMIC_CONTROL_CMD, // 0xa3
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
0x00,
];
// https://github.com/adzialocha/it8951-video/blob/main/src/usb.rs#L47
let result: u16 = self
.connection
.read_command(&data, bincode::options().with_big_endian())?;
println!("{:x}", result); // 062c |
@adzialocha ok awesome, thanks for testing! |
Finally figured it out with the help of your example code. I didn't spot the "FROM" vs "TO" difference before, now with correct communication direction it works: kimmobrunfeldt/eink-weather-display@84b60bf |
Super |
Hi! I've been playing with the usb based controlling using https://sr.ht/~martijnbraam/it8951/ C code as the basis. I wasn't able to get the current vcom value using this code. Have you successfully queried the vcom value? The USB programming pdf sheet had an example command:
but it didn't describe the return shape or length in bytes.
As a reference, Waveshare has a GPIO based C code example.
The text was updated successfully, but these errors were encountered: