yay it works
thanks to @lespio for the scripts I "borrowed" for the analogue only, but i made the digital one myself!