Recent Changes - Search:
<^< Writing Messages | Course index | A More Useful Counter >^>

Introduction to Microcontroller Programming * Course Index * Introduction * About the Author * About this Course * Feedback * Course Navigation * Quick Course Navigation * How to use this Course * Acronyms Used and Course Conventions

About PICmicro Chips * What is a PICmicro? * Microcontrollers * Digital versus Analogue * Inputs and Outputs * Memory * Programming * 16F1937 Architecture

Clocking Your PICmicro Devices * Introduction * The Clock Circuit * Clock Settings * Clock Confusion

E-Blocks * Introduction to E-blocks * Using E-blocks * E-blocks Boards

Flowcode Step By Step * Introduction to Flowcode * Basic Flowcode Functions * Digital Outputs * Digital Inputs * Basic Loops * The LCD Display ## Set up the Equipment ## LCD Displays ## Adding the LCD component ## Writing Messages ##

Other LCD Functions ## A More Useful Counter * Binary Numbers * Decisions * Goto (Connection Point) * 7-Segment Displays * Software Macro * Strings and Memory * A Simple Hi-Fi

PICmicro Projects * Introduction to PICmicro Projects * Construction Methods * Choosing a Power Source * Adding Inputs * Input Conditioning * Adding Outputs * Adding Drivers

Labs * Introduction and Lesson Plan * 1. Output * 2. Delay * 3. Connection Point * 4. Calculations * 5. Loop * 6. Input * 7. Decision * 8. LCD * 9. Keypad * 10. Analogue + EEPROM * 11. Software Macro * 12. External Interrupt * 13. Timer Interrupt

(:Summary:Contains the 'action' links (like Browse, Edit, History, etc.), placed at the top of the page, see site page actions:) (:comment This page can be somewhat complex to figure out the first time you see it. Its contents are documented at PmWiki.SitePageActions if you need help. :) * Print (:comment (:if group Site,SiteAdmin,Cookbook,Profiles,PmWiki*:) (:comment delete if and ifend to enable backlinks:) * %item rel=nofollow class=backlinks accesskey='$[ak_backlinks]'% [[{*$Name}?action=search&q=link={*$FullName} | $[Backlinks] ]] (:ifend:) :) * Login

Other LCD Functions

<^< Writing Messages | Course Index | A More Useful Counter >^>(:nl:)

There are a number of other useful functions in the LCD macro list:

Clear

Clears the display and resets the cursor (the position the display will print on next) to 0,0 - top left.

Cursor

Moves the cursor to the specified location. This takes two parameters X and Y, corresponding to the horizontal and vertical position respectively. 0,0 is the top left position on the display. 0,1 is the first letter of the second line. 3,2 would represent the fourth letter of the third line.

PrintNumber

This works like 'PrintString' but prints the number instead of the string. Can be used with variables, or actual numbers.

PrintNumber example:

If you add a Component Macro icon, select 'Cursor' and add 0,1 to the parameters. Create another Component Macro icon and select 'PrintNumber' with the parameter value as '123'. Finally create another and select 'PrintString' and add "Hello World" (with quotation marks) to the parameter.

Now click 'Run' to simulate the program, you should see results similar to this:

PrintASCII and Command

These are more advanced features that you will learn about later. For now you can ignore them.(:nl:)(:table style="clear:both":)

(:Summary: Website page footer:)

Print - (:comment (:if group Site,SiteAdmin,Cookbook,Profiles,PmWiki*:) (:comment delete if and ifend to enable backlinks:) %item rel=nofollow class=backlinks accesskey='$[ak_backlinks]'% [[{*$Name}?action=search&q=link={*$FullName} | $[Backlinks] ]] (:ifend:) :) Search - Login

Page last modified on May 07, 2013, at 01:37 PM