Intelligent headlamps with 256 pixels