This is a library for the Adafruit LED Backpacks. This library works with the Adafruit Mini 8x8 and 16x8.
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
--- 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++ )
{
