Skip to content

Commit

Permalink
Add warning if <4K RAM
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed Sep 6, 2017
1 parent 1e9af95 commit f62c6d4
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions Adafruit_SharpMem.h
Expand Up @@ -21,6 +21,10 @@ All text above, and the splash screen must be included in any redistribution
#else
#include "WProgram.h"
#endif

#if defined(RAMSTART) && defined(RAMEND) && ((RAMEND-RAMSTART) < 4096)
#warning "Display may not work on devices with less than 4K RAM"
#endif

#include <Adafruit_GFX.h>
#ifdef __AVR
Expand Down

0 comments on commit f62c6d4

Please sign in to comment.