Tiny4kOLED: Digistump board doesn't define __FlashStringHelper

Arduino: 1.8.12 (Windows 7), Board: “Digispark (Default - 16.5mhz)”


In file included from E:\SkyRanger\Eigene Dateien\Arduino\libraries\Tiny4kOLED-1.5.0\src/Tiny4kOLED_Wire.h:12:0,

                 from E:\SkyRanger\Eigene Dateien\Arduino\libraries\Tiny4kOLED-1.5.0\src/Tiny4kOLED.h:19,

                 from R:\Arduino\DigisparkOLED_\DigisparkOLED_.ino:2:

E:\SkyRanger\Eigene Dateien\Arduino\libraries\Tiny4kOLED-1.5.0\src/Tiny4kOLED_common.h:74:59: error: '__FlashStringHelper' does not name a type

   void clipText(uint16_t startPixel, uint8_t width, const __FlashStringHelper *text);

                                                           ^

E:\SkyRanger\Eigene Dateien\Arduino\libraries\Tiny4kOLED-1.5.0\src/Tiny4kOLED_common.h:74:80: error: ISO C++ forbids declaration of 'text' with no type [-fpermissive]

   void clipText(uint16_t startPixel, uint8_t width, const __FlashStringHelper *text);

                                                                                ^

About this issue

  • Original URL
  • State: closed
  • Created 4 years ago
  • Comments: 23 (13 by maintainers)

Most upvoted comments

I’m considering replacing const __FlashStringHelper in Tiny4kOLED_common.h and Tiny4kOLED.cpp with DATACUTE_F_MACRO_T defined in Tiny4kOLED_common.h as

#ifndef DATACUTE_F_MACRO_T
#ifdef AVR_DIGISPARK
#define DATACUTE_F_MACRO_T fstr_t
#else
#define DATACUTE_F_MACRO_T const __FlashStringHelper
#endif
#endif