Introduction to Microcontroller Programming
About PICmicro Chips
Clocking Your PICmicro Devices E-Blocks Flowcode Step By Step
PICmicro Projects
Labs |
Other LCD FunctionsThere are a number of other useful functions in the LCD macro list: ClearClears the display and resets the cursor (the position the display will print on next) to 0,0 - top left. CursorMoves 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. PrintNumberThis 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 CommandThese are more advanced features that you will learn about later. For now you can ignore them. |