work on display

master
polymurph 4 years ago
parent 42c5e945ec
commit c796fa0273

@ -16,6 +16,14 @@ void Display::showTime(const uint8_t& minutes,
+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)
{

@ -17,6 +17,8 @@ class Display
void showTime(const uint8_t& minutes,
const uint8_t& secconds);
void showTime(const uint16_t& secconds);
void showMode(modes mode);
private:

Binary file not shown.

@ -16,6 +16,7 @@ void Timer::run()
std::cout << "...timer running now!" << std::endl;
display.showTime(100, 100);
display.showTime(1000);
while(1)
{

Loading…
Cancel
Save