You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

30 lines
532 B

#include "display.hpp"
#include <iostream>
#include"utils.hpp"
Display::Display()
{
}
void Display::showTime(const uint8_t& minutes,
const uint8_t& secconds)
{
std::cout << "time: " <<
+clip<uint8_t>(minutes, 0, 99) <<" : " <<
+clip<uint8_t>(secconds,0,59)<< std::endl;
}
void Display::showTime(const uint16_t& secconds)
{
uint8_t sec = secconds % 60;
std::cout << "time: " <<
+((secconds - sec) / 60) <<" : " <<
+sec<< std::endl;
}
void Display::showMode(modes mode)
{
}