-
Notifications
You must be signed in to change notification settings - Fork 130
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure consistent behaviour of MicroBitDisplay::print() operations
- Simplify behaviour of print() and printAsync() methods. - print(char) print(ManagedString) and print(MicroBitImage) now all have same semantics: - If provided, the delay parameter is always respected. Screen is cleared after that time. - discrete print operations (character, string of length 1 and MicroBitImage) with no delay parameter are printed, and return immeditely. The screen is not cleared. - print (string of length > 1) with no delay parameter defaults to a delay of MICROBIT_DEFAULT_PRINT_SPEED milliseconds. The screen is cleared on completion.
- Loading branch information
Showing
2 changed files
with
106 additions
and
16 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters