Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Fork of RA8875 by
Diff: RA8875.h
- Revision:
- 40:04aa280dfa39
- Parent:
- 38:38d503b4fad6
- Child:
- 41:2956a0a221e5
--- a/RA8875.h Sun Jan 26 02:02:29 2014 +0000 +++ b/RA8875.h Tue Feb 04 02:58:06 2014 +0000 @@ -103,10 +103,10 @@ } alignment_t; /// Scale factor - 1, 2, 3 4 - typedef unsigned int HorizontalScale; + typedef int HorizontalScale; /// Scale factor - 1, 2, 3, 4 - typedef unsigned int VerticalScale; + typedef int VerticalScale; /// Clear screen region typedef enum @@ -334,14 +334,20 @@ /// /// @param hScale defaults to 1, but can be 1, 2, 3, or 4, /// and scales the font size by this amount. - /// @param vScale defaults to 1, but can be 1, 2, 3, or 4, - /// and scales the font size by this amount. + /// @param vScale is an optional parameter that defaults to the hScale value, + /// but can be 1, 2, 3, or 4, and scales the font size by this amount. + /// + /// @code + /// lcd.SetTextFontSize(2); // Set the font to 2x normal size + /// lcd.SetTextFontSize(2,3); // Set the font to 2x Width and 3x Height + /// lcd.SetTextFontSize(); // Restore to normal size in both dimensions + /// @endcode /// /// @note if either hScale or vScale is outside of its permitted range, /// the command is not executed. /// @returns success/failure code. @see RetCode_t. /// - RetCode_t SetTextFontSize(HorizontalScale hScale = 1, VerticalScale vScale = 1); + RetCode_t SetTextFontSize(HorizontalScale hScale = 1, VerticalScale vScale = -1); /// put a character on the screen. ///