Difference between revisions of "H6105-D Hello World !!!"

From Hydrover
Jump to: navigation, search
Line 1: Line 1:
 
This is the source code in PAWN language of the Hello World example:
 
This is the source code in PAWN language of the Hello World example:
  
<pre>
+
<syntaxhighlight lang="pawn" line>
 
 
 
/***************************************************************
 
/***************************************************************
 
*
 
*
Line 45: Line 44:
 
// program end
 
// program end
 
}
 
}
 
+
</syntaxhighlight>
</pre>
 

Revision as of 17:31, 14 June 2017

This is the source code in PAWN language of the Hello World example:

/***************************************************************
*
*		Hello World - example
*
*       program.p
*
***************************************************************/

// include the library for H6105-D
//
#include <hydlib_cp>

// main function
//
main()
{
	// clear display
	//
	dClear();
	
	// select system font
	//
	dFont( system5x7 );

	// place cursor
	//
	dCursor( 0, 0 );
	
	// print on display
	//
	dPrintf("Hello World !!!");
	
	// print on console
	//
	printf("Hello World !!!\n");
	
	// wait a couple of seconds
	//
	Sleep( 2000 );
	
	// program end
}