People have been doing that for decades, the earliest efforts go back to the 50s.
https://en.wikipedia.org/wiki/Spiking_neural_network