Test firware for a galvo-based scanning laser mechanism