ATmega8 firmware and testing utility for 40b bargraph device