/** * Draw 7-seg digits to the framebuffer */ #ifndef FB_7SEG_H #define FB_7SEG_H #include "framebuffer.h" /// Draw a 7-segment digit. Returns its width (without spacing) /// /// \param x - pos X (left top) /// \param y - pos Y (left top) /// \param w - full digit width /// \param h - full digit height; will be adjusted down if needed /// \param th - thickness /// \param digit - digit 0-9 /// \return width taken fbpos_t fb_7seg_dig(fbpos_t x, fbpos_t y, fbpos_t w, fbpos_t h, fbpos_t th, uint8_t digit, fbcolor_t color); /// Draw a 7-segment period. Returns its width (without spacing). /// Digit height is (w * 2 - th) /// /// \param x - pos X (digit left top) /// \param y - pos Y (digit left top) /// \param w - full digit width /// \param h - full digit height; will be adjusted down if needed /// \param th - thickness /// \return width taken fbpos_t fb_7seg_period(fbpos_t x, fbpos_t y, fbpos_t w, fbpos_t h, fbpos_t th, fbcolor_t color); #endif //FB_7SEG_H