Giter Club home page Giter Club logo

Comments (4)

blazer82 avatar blazer82 commented on July 3, 2024

No, I haven't implemented this feature. Although it should be possible if you're willing to dig into the FT81x's documentation.

from ft81x_arduino_driver.

semir-t avatar semir-t commented on July 3, 2024

Yes, I am already trying to do that but without any luck.

I am guided by the following application note and I managed to generate the data that needs to be loaded. This data is loaded by following code:

ft81x.writeGRAM(1000,148,SAMApp_ShowCustomFont_MetricBlock);
ft81x.writeGRAM(1000 + 148,5510,SAMApp_ShowCustomFont_FontBmpData);
ft81x.beginDisplayList();
ft81x.clear(WHITE);
ft81x.clear(FT81x_COLOR_RGB(255,255,255));
ft81x.drawText(240, 230, 34, FT81x_COLOR_RGB(0,0,0), FT81x_OPT_CENTER, "Font1\0"); 
ft81x.sendCommand(BITMAP_HANDLE(6));
/* ft81x.sendCommand(BITMAP_SOURCE(1000)); */
/* ft81x.sendCommand(BITMAP_SOURCE(1090)); */
/* ft81x.sendCommand(BITMAP_SOURCE(-508)); */
ft81x.sendCommand(BITMAP_SOURCE(-708));
ft81x.sendCommand(BITMAP_LAYOUT(FT_L1,2,29));
ft81x.sendCommand(BITMAP_SIZE(FT_NEAREST,FT_BORDER,FT_BORDER,16,29));

ft81x.sendCommand(0xFFFFFF2BUL);
ft81x.sendCommand(6);
ft81x.sendCommand(FT81x_RAM_G + 1000);
ft81x.sendCommand(0);
}
ft81x.drawText(240, 280, 6, FT81x_COLOR_RGB(0,0,0), FT81x_OPT_CENTER, "Font2\0");
ft81x.swapScreen();`

`
But I only get white screen in a place where text should be and I am running out of ideas. :/

from ft81x_arduino_driver.

blazer82 avatar blazer82 commented on July 3, 2024

It seems to me that your approach is correct. I haven't tried this myself yet and I'd need to consult the documentation to verify your code, so I can't tell you much more right now.

from ft81x_arduino_driver.

semir-t avatar semir-t commented on July 3, 2024

Ok, I will continue to work on it and will write comment here if I manage to fix it.

from ft81x_arduino_driver.

Related Issues (7)

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.