Skip to content

Commit

Permalink
Update to support ESP8266
Browse files Browse the repository at this point in the history
  • Loading branch information
PaintYourDragon committed Jun 27, 2015
1 parent 3dcaff2 commit e3c0f9f
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 2 deletions.
6 changes: 5 additions & 1 deletion Adafruit_NeoMatrix.cpp
Expand Up @@ -34,8 +34,12 @@
#include "gamma.h"
#ifdef __AVR__
#include <avr/pgmspace.h>
#elif defined(ESP8266)
#include <pgmspace.h>
#else
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
#ifndef pgm_read_byte
#define pgm_read_byte(addr) (*(const unsigned char *)(addr))
#endif
#endif

// Constructor for single matrix:
Expand Down
2 changes: 2 additions & 0 deletions gamma.h
Expand Up @@ -3,6 +3,8 @@

#ifdef __AVR
#include <avr/pgmspace.h>
#elif defined(ESP8266)
#include <pgmspace.h>
#else
#ifndef PROGMEM
#define PROGMEM
Expand Down
2 changes: 1 addition & 1 deletion library.properties
@@ -1,5 +1,5 @@
name=Adafruit NeoMatrix
version=1.0.0
version=1.0.1
author=Adafruit
maintainer=Adafruit <info@adafruit.com>
sentence=Adafruit_GFX-compatible library for NeoPixel grids
Expand Down

0 comments on commit e3c0f9f

Please sign in to comment.