Added some more projects and libraries.
This commit is contained in:
parent
f7151392ab
commit
1e1459fa50
94 changed files with 11904 additions and 0 deletions
21
libraries/PinChangeInt/Examples/GetPSTR/GetPSTR.h
Normal file
21
libraries/PinChangeInt/Examples/GetPSTR/GetPSTR.h
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
#ifndef INCLUDE_GETPSTR
|
||||
#define INCLUDE_GETPSTR
|
||||
|
||||
#if defined(ARDUINO) && ARDUINO >= 100
|
||||
#include <Arduino.h>
|
||||
#else
|
||||
#include "pins_arduino.h"
|
||||
#include "WProgram.h"
|
||||
#include "wiring.h"
|
||||
#endif
|
||||
|
||||
#define getPSTR(s) pgmStrToRAM(PSTR(s))
|
||||
|
||||
char *_pstr_to_print;
|
||||
char *pgmStrToRAM(PROGMEM char *theString) {
|
||||
free(_pstr_to_print);
|
||||
_pstr_to_print=(char *) malloc(strlen_P(theString));
|
||||
strcpy_P(_pstr_to_print, theString);
|
||||
return (_pstr_to_print);
|
||||
}
|
||||
#endif
|
||||
Loading…
Add table
Add a link
Reference in a new issue