Skip to content

Hyperdisplay including error #10

@Cat4eve

Description

@Cat4eve

Subject of the issue

When I try to include HyperDisplay_UG2856KLBAG01.h In file included from C:\Users\karap\Documents\Arduino\libraries\SparkFun_HyperDisplay\src/hyperdisplay.h:39:0,
from C:\Users\karap\Documents\Arduino\libraries\SparkFun_HyperDisplay_SSD1309\src/HyperDisplay_SSD1309.h:19,
from C:\Users\karap\Documents\Arduino\libraries\SparkFun_HyperDisplay_Transparent_Graphical_OLED\src/HyperDisplay_UG2856KLBAG01.h:19,
from C:\Users\karap\Desktop\smartglasses\smartglasses.ino:6:
C:\Users\karap\Documents\Arduino\libraries\SparkFun_HyperDisplay\src/util/font5x7.h:22:19: error: missing binary operator before token "("
#if __has_include ( <avr/pgmspace.h> )
^
C:\Users\karap\Documents\Arduino\libraries\SparkFun_HyperDisplay\src/util/font5x7.h:29:19: error: missing binary operator before token "("
#if __has_include ( <avr/pgmspace.h> )
^
exit status 1
` and literaly don't know what to do

Your workbench

  • Arduino IDE
  • ESP8266 2.3.0
  • Haven't even connected a display to ESP, just a mini USB wire connection to the ESP.
  • Via pc usb port

Steps to reproduce

My code is:

//===================================================
// INCLUDING LIBRARIES
//===================================================
#include <ESP8266WiFi.h>
#include <ESP8266HTTPClient.h>
#include "HyperDisplay_UG2856KLBAG01.h"
#include "SparkFun_CAP1203.h"
#include <TimeLib.h>
#include "ArduinoJson.h"
//===================================================
//===================================================

Expected behaviour

Console must show that everything is fine and library has been successfully included.

Actual behaviour

When I check or try to compile the code, such error occurs.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions