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.
Dependents: Adafruit_LEDBackpack_16x8_App Adafruit_32x8matrix
Fork of Adafruit_LEDBackpack by
Diff: Adafruit_GFX.cpp
- Revision:
- 3:b0ac557b5f0c
- Parent:
- 0:e81a6274acce
- Child:
- 4:b4ce71619694
diff -r 529bad55777e -r b0ac557b5f0c Adafruit_GFX.cpp --- a/Adafruit_GFX.cpp Thu Dec 15 17:31:22 2016 +0000 +++ b/Adafruit_GFX.cpp Wed Dec 21 18:24:56 2016 +0000 @@ -363,6 +363,10 @@ size_t Adafruit_GFX::writeChar(uint8_t c) { + + //mpl + printf("entered writeChar \r\n"); + if (c == '\n') { cursor_y += textsize*8; @@ -386,13 +390,14 @@ // draw a character void Adafruit_GFX::drawChar(int16_t x, int16_t y, unsigned char c, uint16_t color, uint16_t bg, uint8_t size) { + if( (x >= _width) || // Clip right (y >= _height) || // Clip bottom ((x + 5 * size - 1) < 0) || // Clip left ((y + 8 * size - 1) < 0) // Clip top ) - return; + return; for (int8_t i=0; i<6; i++ ) {