Skip to content

Commit

Permalink
add src
Browse files Browse the repository at this point in the history
  • Loading branch information
Tinyu-Zhao committed Sep 24, 2021
1 parent ce79af6 commit 5868fc9
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 1 deletion.
2 changes: 1 addition & 1 deletion library.properties
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,5 @@ paragraph=See more on http://M5Stack.com
category=Device Control
url=https://github.com/m5stack/STAMP-PICO.git
architectures=esp32
includes=
includes=Arduino.h
depends=FastLED,ESP32 AnalogWrite
26 changes: 26 additions & 0 deletions src/Arduino.h
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
#ifndef Arduino_h
#define Arduino_h

#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#include <math.h>
#include "Print.h"


extern "C"{
typedef uint8_t byte ;
typedef uint8_t boolean ;

/* sketch */
extern void setup( void ) ;
extern void loop( void ) ;
uint32_t millis( void );
}

#define PROGMEM
#define pgm_read_byte_near(x) *(x)

#define yield(x) {}

#endif // Arduino_h

0 comments on commit 5868fc9

Please sign in to comment.