1 – Basic Code Structure

In this tutorial,  we will introduce the basic code structure of the Panther Language. There are three major code blocks: pin initialization and assignment to the board, pin data transmission direction, and sensor configuration.

 

// You should initialize pin with pin number and pin type like the one below.
Pin <pin-variable-name> = new <pin-type>(<pin-number>);

void Pinconfiguration ()
{
// All initialized and assigned pins should be decided in here about data transmission way
}

void Main ()
{
// In here, you should specify the upper and lower bound threshold values for your sensor.
// you should bind the initialized pin to the initialized sensor.
}

 

 

 

Leave a reply

Your email address will not be published.

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <strike> <strong>