Stap 2: Een software die is ontwikkeld op Atmel Studio
Hier is de belangrijkste code...
cli();
current_rps = rps;
Sei();
Als (minuut == 1)
{
lcd_cmd(0x01);
sprintf(rps_lcd,"%.3F",current_rps);
sprintf (rpm_lcd,"%.3f", current_rps * 60,0);
lcd_xy(0,0);
lcd_string ("BPS =");
lcd_string(rps_lcd);
lcd_xy(1,0);
lcd_string ("BPM =");
lcd_string(rpm_lcd);
}