PAlib
Functions
Shape Recognition

Functions

char PA_CheckLetter ()
 Analyzes the drawn shape and returns a letter according to it. 0 if nothing. The drawn shape's string is copied into PA_RecoShape on Stylus Release. You can find a copy of the current letters used here : http://www.palib.info/Reco/PAGraffiti.gif.
 
static void PA_RecoAddShape (char letter, char *shape)
 Adds a new shape to the recognition system.
 
static void PA_ResetRecoSys ()
 Resets the Recognition system.
 
static void PA_UsePAGraffiti (u8 use)
 Set on or off the PA Graffiti letters. You'll want to turn them off if you plan on using your own shapes....
 

Detailed Description

Draw a shape and have it recognized !

Function Documentation

◆ PA_RecoAddShape()

static inline void PA_RecoAddShape ( char  letter,
char *  shape 
)
inlinestatic

Adds a new shape to the recognition system.

Parameters
letterLetter it will return for that shape (you can use any thing, even a number from 1 to 255)
shape15 characters string given by the recognition system in PA_RecoShape

◆ PA_UsePAGraffiti()

static inline void PA_UsePAGraffiti ( u8  use)
inlinestatic

Set on or off the PA Graffiti letters. You'll want to turn them off if you plan on using your own shapes....

Parameters
use1/0, on/off...