Giter VIP home page Giter VIP logo

efont's People

Contributors

magicpot73 avatar riraosan avatar tanakamasayuki avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar

efont's Issues

fatal error: utility/In_eSPI.h: No such file or directory

素晴らしいライブラリをありがとうございます!

使わせていただいてコンパイルエラーが発生することが分かったので共有致します。

1.0.6以降でコンパイルエラーが発生するようです。1.0.5以下では発生しませんでした。

エラーの内容は次のとおりです。

In file included from /Users/suin/Documents/Arduino/libraries/efont_Unicode_Font_Data/src/efontWrapper.cpp:3:
/Users/suin/Documents/Arduino/libraries/efont_Unicode_Font_Data/src/efontWrapper.h:15:10: fatal error: utility/In_eSPI.h: No such file or directory
 #include <utility/In_eSPI.h>
          ^~~~~~~~~~~~~~~~~~~

コンパイルしたコードは次です。

#include <M5CoreInk.h>
#include "efontEnableAll.h"
#include "efont.h"
#include "efontM5StackCoreInk.h"

Ink_Sprite inkPageSprite(&M5.M5Ink);

void setup() {
  M5.begin();
  if ( !M5.M5Ink.isInit()) {
    Serial.printf("Ink Init faild");
    while (1) {
      delay(100);
    }
  }
  M5.M5Ink.clear();
  delay(1000);

  //creat ink refresh Sprite
  if ( inkPageSprite.creatSprite(0, 0, 200, 200, true) != 0 ) {
    Serial.printf("Ink Sprite creat faild");
  }

  printEfont(&inkPageSprite, "Hello\n");
  printEfont(&inkPageSprite, "こんにちは\n");
  printEfont(&inkPageSprite, "你好\n");
  printEfont(&inkPageSprite, "안녕하세요\n");
  printEfont(&inkPageSprite, "Доброе утро\n");
  printEfont(&inkPageSprite, "Päivää\n");
  printEfont(&inkPageSprite, "Здравствуйте\n");

  printEfont(&inkPageSprite, "efont\nPrint Test", 0, 130, 2, 1);

  inkPageSprite.pushSprite();
}

void loop() {
}

M5CoreInkのバージョンは0.0.2を使用しています。

Arduino.h should be capitalized

efont.h - line 4 the #include <arduino.h>
should be #include <Arduino.h>

Lower case probably works on a Windows machine, but Linux and Mac OS treat file names different - and "A" and "a" are not the same.

ESP32に対応するためのヘッダファイルについて

素晴らしいライブラリのご提供ありがとうございます。
いつも利用させていただいております。

 M5StickCの対応となっているのですが、
M5StackやESP32でも使用できると思い、
ライブラリに少し手を加えてみました。
ソースを添付いたします。

 もしよろしければefontライブラリに
ESP32にも対応していただけると助かります。

efontESP.zip

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.