Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unable to pull image from SPIFFS #67

Open
bvlet opened this issue Jul 12, 2018 · 0 comments
Open

Unable to pull image from SPIFFS #67

bvlet opened this issue Jul 12, 2018 · 0 comments

Comments

@bvlet
Copy link

bvlet commented Jul 12, 2018

I can't seem to get your tft.drawImage to work with an *.c file stored in SPIFFS.
I was using this code with another OLED:

  File f;
  // OPEN FILE (ENTER FILE WITH PATH WIRH SLASH IN FRONT)
  f = SPIFFS.open("/file.mono", "r");

  if (f) {
    int s = f.size();
    Serial.printf("File Opened , Size=%d\r\n", s);

    String data = f.readString();
    //Serial.println(data);

    const char* data1 = data.c_str();
    f.close();


    display.drawXbm(0, 0, 125, 60, data1);
    display.display();

but everything I tried in a similar way seems to fail.....
Is this a bug or can you point me in the right direction to solve this?

BR,
Bart

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant