mbenkmann
mbenkmann
What I want to do is use the Timestamp in my event loop, so that I can process events for the proper frames (because of CPU load and process scheduling...
Another use case I have is a function that has a type switch with common code using the timestamp for all cases. Right now it looks like this: ``` var...
Even nicer of course would be to have sdl.Event give access to the fields directly. So the subtypes would have to be declared like this ``` // this assumes that...
"I wonder if anyone does changes to the events data." Please do not make the struct fields private. Being able to create and modify instances of sdl structures in client...
I've created 3 possible solutions for this issue. The following are the implementation links, followed by what the client code would look like, assuming var event sdl.Event https://github.com/mbenkmann/go-sdl2/commit/71e00c91d82e965f5a68221855b98faff496b15c ts :=...
Maybe a firmware for i2cdriver could be developed that is compatible with the simple device supported by this Linux driver: /usr/src/linux/drivers/i2c/busses/i2c-tiny-usb.c which is for this device https://github.com/harbaum/I2C-Tiny-USB
Unfortunately my idea does not seem possible because the USB frontend of the i2cdriver is provided by an FTDI chip and is therefore hardwired to be a USB serial device,...
I'm seriously looking into working on this. Has anyone else started on this? I'm still looking for the best option. I think I will try a CUSE solution first. @kornpow...
Okay. I've implemented the CUSE-based solution. You can find it here: https://github.com/mbenkmann/i2cdriver/tree/master/c/linux The program also includes a more powerful command line interface to all other features of the i2cdriver, so...
Thanks for pointing that out. I wasn't aware that Issues weren't enabled by default. I enabled them now. As for clock stretching, I'm not seeing a command to configure this...