Unless you can find docs on it or someone else doing the same thing, you'll need to reverse engineer it to find which pins do what.
Identifying those chips would be a good first step for reverse engineering, though the skateboard it came from might be a better place to look, as you could see what piece of hardware each pin went to, and probably deduce what it did from that.
Espruino is a JavaScript interpreter for low-power Microcontrollers. This site is both a support community for Espruino and a place to share what you are working on.
Unless you can find docs on it or someone else doing the same thing, you'll need to reverse engineer it to find which pins do what.
Identifying those chips would be a good first step for reverse engineering, though the skateboard it came from might be a better place to look, as you could see what piece of hardware each pin went to, and probably deduce what it did from that.