Hello there!
I've been struggelign a while now with a handheld console (Retro Game Pi). The tutorial says to use a adapter to make the analoge stick i want to use as a digital 1 and 0 stick. But i really want analoge inputs aswell so i can use it in games which requires an analog stick (Monkey Island on scummvm e.g.).
So i started exploring fields i never been on before, i found out using a i2c enabled ADC i could read the values into pyton, using a uinput module to make a joystick move. So i programmed an attiny to read analoge values, pass them on as 2 bytes on i2c into my raspberry pi using python. Somehow i get values around 310 on 1.64 volt and 895 on 3.3v so it dosent seem to work properly (running it on 3.3v).
So i give kinda up on what i'm doing and want to ask you guys if you have any tip on how i can get this to work? Both making the joystick analog and digital (dpad function when emulator needs it, or joystick if emulator needs that)z




