Author Topic: Doco with related examples  (Read 4008 times)

davidateeyore

  • Full Member
  • ***
  • Posts: 7
    • View Profile
    • The Gerb's Tech Blog
Doco with related examples
« on: June 12, 2016, 08:11:36 AM »
Are there any plans to make the CleO commands available with related example code as hard doco, i.e. PDF?

Fred Dart

  • CEO of FTDI
  • Administrator
  • Full Member
  • *****
  • Posts: 74
  • Welcome...
    • View Profile
    • FTDI CleO Page
Re: Doco with related examples
« Reply #1 on: June 12, 2016, 12:05:18 PM »
Yes, we're think about something like that - we'll wait a couple of months for the contents to stabilize first - it could be a PDF or a downloadable HTML file or both.

MacSteven

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: Doco with related examples
« Reply #2 on: June 29, 2016, 12:40:57 PM »
It would be very useful to have a font table to use characters by char(). I'm looking esp. for the "" for the thermometer project, I updated it for the humidity value.

Fred Dart

  • CEO of FTDI
  • Administrator
  • Full Member
  • *****
  • Posts: 74
  • Welcome...
    • View Profile
    • FTDI CleO Page
Re: Doco with related examples
« Reply #3 on: June 30, 2016, 02:25:58 PM »
Noted, thanks -I'll pass it onto the team..

prashanthb

  • Full Member
  • ***
  • Posts: 23
    • View Profile
Re: Doco with related examples
« Reply #4 on: July 04, 2016, 09:33:47 AM »
Hi Doco,

At the moment only ASCII is exposed in CleO and extended ASCII is not. In the later releases we will plan to add the support of extended ASCII. Kindly note that built-in font is wrt EVE feature set, so Font handle number 17 and 19 are the only available extended ascii fonts which are pair with Font handles 16 and 18.

At the moment you can utilize below approach to display built-in extended ASCII. CleO font number 1 and 3 should be utilized for displaying extended ascii. Please note that EVE extended ascii characters start at index 0 instead of index 128.




/* (C) Copyright Future Technology Devices International Ltd.
 * ============================================================================
 *
 * This source code ("the Software") is provided by Future Technology Devices
 * International Limited ("FTDI") subject to the licence terms set out
 * http://www.ftdichip.com/FTSourceCodeLicenceTerms.htm ("the Licence Terms").
 * You must read the Licence Terms before downloading or using the Software.
 * By installing or using the Software you agree to the Licence Terms. If you
 * do not agree to the Licence Terms then do not download or use the Software.
 */
#include <SPI.h>
#include <CleO.h>


/*
Example to utilze extended ASCII.
*/

void setup()
{
  int screenWidth = 320, screenheight = 480;

  /* Initialize CleO */
  CleO.begin();

  /* Start building a screen frame */
  CleO.Start();

  /* Draw C using EVE builtin fonts - VGA (8x8) */
  CleO.StringExt(1, screenWidth / 2, 120, 0xff4040UL, TL, 0, 0, "\x78\x00"); //CleO Font number 1 corresponds to EVE Font handle 17
  CleO.StringExt(FONT_VGA_8, 8 + (screenWidth / 2), 120, 0xff4040UL, TL, 0, 0, "C");

  /* Draw C using EVE builtin fonts - VGA_16 (8x16) */
  CleO.StringExt(3, screenWidth / 2, 240, 0xff4040UL, TL, 0, 0, "\x78\x00"); //CleO Font number 3 corresponds to EVE Font handle 19
  CleO.StringExt(FONT_VGA_16, 8 + (screenWidth / 2), 240, 0xff4040UL, TL, 0, 0, "C");

  /* Display completed screen frame */
  CleO.Show();
}

void loop() {}

MacSteven

  • Jr. Member
  • **
  • Posts: 2
    • View Profile
Re: Doco with related examples
« Reply #5 on: July 04, 2016, 11:57:21 AM »
Thank you so much, I am going to test the code this evening!

Best regards, MacSteven