Download ACS Color 320 x 240 LCD Basic Programming
Transcript
ACS Color 320 x 240 LCD Basic Programming Manual 8 September 2014 Functions Returning a String ...................................................................................................40 Some Funny Characters...................................................................................................................42 Don’t Get Boxed In ..................................................................................................................43 Character Rules .......................................................................................................................43 Don’t Repeat Yourself.....................................................................................................................44 Rules for Subroutines ...............................................................................................................45 Making Changes ..............................................................................................................................46 Rules for Editing ......................................................................................................................47 There’s a System .............................................................................................................................48 System Timers ..........................................................................................................................49 Rules for System Variables .......................................................................................................50 Enough Text – Let’s Draw Something ............................................................................................50 Pixels ........................................................................................................................................50 Clearing The Screen .................................................................................................................51 Drawing Lines ..........................................................................................................................52 Drawing Arcs ...........................................................................................................................53 Drawing Arcs with Style ...........................................................................................................54 Drawing Boxes .........................................................................................................................55 Drawing Circles .......................................................................................................................56 Drawing Ellipses ......................................................................................................................56 Drawing Polygons ....................................................................................................................57 Drawing Text............................................................................................................................58 Drawing Text with Style ...........................................................................................................59 It’s a Matter of Resources .................................................................................................59 There’s a Table of Fonts ...................................................................................................60 And Now Back to Drawing the Text .................................................................................62 Drawing Images .......................................................................................................................63 Rules for Drawing ....................................................................................................................64 Making Things Move ......................................................................................................................64 Warning – Mathematics ...........................................................................................................65 Moving Smarter........................................................................................................................66 Changing Direction .........................................................................................................................68 Rules for Making Things Move ................................................................................................69 Staging an Event..............................................................................................................................69 Rules for Events........................................................................................................................70 Taking Control with the Screen Framework ...................................................................................71 There’s a Table of Screens .......................................................................................................71 Scheming Controls ...................................................................................................................71 Controlling Screens and Objects ..............................................................................................72 Touch Button Control ...............................................................................................................72 Multiple Objects .......................................................................................................................74 Diving Into the Screen Framework ..........................................................................................75 Rules for the Screen Framework ..............................................................................................76 ACS Basic Reference................................................................................................................... 77 Programs .................................................................................................................................................77 Copyright©2010-2014 by ACS, Sarasota, Florida ALL RIGHTS RESERVED