diff options
Diffstat (limited to 'source/widget.cpp')
-rw-r--r-- | source/widget.cpp | 24 |
1 files changed, 22 insertions, 2 deletions
diff --git a/source/widget.cpp b/source/widget.cpp index 9109185..358de01 100644 --- a/source/widget.cpp +++ b/source/widget.cpp @@ -1,7 +1,27 @@ +/** + * @file widget.cpp + * @brief Defines widgets that may be put on the display. + * + * Copyright (C) 2019 Clyne Sullivan + * + * This program is free software: you can redistribute it and/or modify + * it under the terms of the GNU General Public License as published by + * the Free Software Foundation, either version 3 of the License, or + * (at your option) any later version. + * + * This program is distributed in the hope that it will be useful, + * but WITHOUT ANY WARRANTY; without even the implied warranty of + * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + * GNU General Public License for more details. + * + * You should have received a copy of the GNU General Public License + * along with this program. If not, see <https://www.gnu.org/licenses/>. + */ + #include "rtc.hpp" #include "widget.hpp" -void TimeWidget::render(Adafruit_GFX& display, unsigned int ypos) +void TimeWidget::render(Adafruit_GFX& display, int ypos) { if (auto t = RTC::ticks(); t != prevTicks) { prevTicks = t; @@ -12,7 +32,7 @@ void TimeWidget::render(Adafruit_GFX& display, unsigned int ypos) } } -void NotificationWidget::render(Adafruit_GFX& display, unsigned int ypos) +void NotificationWidget::render(Adafruit_GFX& display, int ypos) { display.setTextSize(2); display.setCursor(0, ypos); |