I'm trying to use a esp32 to simulate a mouse sensor. Essentially i opened a mouse and i connected the microcontroller inside (an AT8083) to the esp32 through I2C. The point is to send data to the AT8083 to make it move the cursor on the pc, and i want to control the data with logic on the esp32.
Essentially the same could be done using a Leonardo, i know, but i don't want to do it that way, i have to do it this way.
It appears the connection is made, because when i connect the esp to the AT8083 the cursor starts moving at a constant speed in a perfect 45 degree angle towards the bottom left part of the screen, however i don't really know how to proceed from here.
I don't know what model the sensor is, i have a picture
Hi thanks for reply
yes it could be, i just saw that the datasheet it lists the compatible sensors, however i still have no idea how exactly to write the code to mimic it
yes I2c. reading the datasheet it seems that first i need to receive a byte from the AT8083, then i have to send a byte with the data from the esp32, however i'm not getting any data at all it seems, here's the sketch:
That chipis not an i2c device. If you look at the datasheet, there is no START/STOP, just continuous serial. It looks like you might be able to use the SPI functions to communicate. I'm not sure.