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 AS-289R2_Hello-mbed-OS-World by
Revision 29:fcc6a8b31944, committed 2017-03-11
- Comitter:
- takehiro
- Date:
- Sat Mar 11 09:11:46 2017 +0000
- Parent:
- 28:96865fc63733
- Commit message:
- Fixed : suoerscript and subscript
Changed in this revision
AS289R2.lib | Show annotated file Show diff for this revision Revisions of this file |
main.cpp | Show annotated file Show diff for this revision Revisions of this file |
--- a/AS289R2.lib Mon Feb 27 05:04:10 2017 +0000 +++ b/AS289R2.lib Sat Mar 11 09:11:46 2017 +0000 @@ -1,1 +1,1 @@ -https://developer.mbed.org/users/takehiro/code/AS289R2/#39c683fde12c +http://mbed.org/users/MACRUM/code/AS289R2/#7f8acb87da7c
--- a/main.cpp Mon Feb 27 05:04:10 2017 +0000 +++ b/main.cpp Sat Mar 11 09:11:46 2017 +0000 @@ -178,16 +178,16 @@ /* Superscript */ tp.printf("1cm"); - tp.setScript(1); + tp.setScript(AS289R2::SCRIPT_SUPER); tp.printf("3"); tp.printf("\r"); - tp.clearScript(); + tp.setScript(AS289R2::SCRIPT_CANCEL); /* Subscript */ tp.printf("H"); - tp.setScript(2); + tp.setScript(AS289R2::SCRIPT_SUB); tp.printf("2"); - tp.clearScript(); + tp.setScript(AS289R2::SCRIPT_CANCEL); tp.printf("O\r"); /* PaperFeed */