使いやすいように。
Dependencies: ArduinoSerial I2Cdev
Fork of MPU6050 by
Diff: MPU6050.h
- Revision:
- 8:4ee054567b6c
- Parent:
- 7:d5845b617139
--- a/MPU6050.h Sun Jan 31 09:12:19 2016 +0000 +++ b/MPU6050.h Sun Jan 31 14:02:32 2016 +0000 @@ -10,11 +10,10 @@ #include <avr/pgmspace.h> #else #define PROGMEM /* empty */ -#define pgm_read_byte(addr) (*(const unsigned char *)(addr)) -#define pgm_read_word(addr) (*(const unsigned short *)(addr)) -#define pgm_read_dword(addr) (*(const unsigned long *)(addr)) -#define pgm_read_float(addr) (*(const float *)(addr)) -#define PSTR(str) (str) +#define pgm_read_byte(x) (*(x)) +#define pgm_read_word(x) (*(x)) +#define pgm_read_float(x) (*(x)) +#define PSTR(STR) STR #endif