Author: jsuijs
Date: Mon Nov 17 11:55:27 2008
New Revision: 566

Modified:
    trunk/unvalidated/sample/by_device/16f877a/lcd_format.jal

Log:


Modified: trunk/unvalidated/sample/by_device/16f877a/lcd_format.jal
==============================================================================
--- trunk/unvalidated/sample/by_device/16f877a/lcd_format.jal   (original)
+++ trunk/unvalidated/sample/by_device/16f877a/lcd_format.jal   Mon Nov 17  
11:55:27 2008
@@ -46,24 +46,24 @@

  forever loop                                  -- loop forever

-   lcd_setcursor(0, 0)
+   lcd_setcursor(0, 0)
     hd44780 = "T"    hd44780 = "e"    hd44780 = "s"    hd44780 = "t"     
hd44780 = ":"    hd44780 = " "
-   format_byte_dec (hd44780, counter, 3, 1)  -- print a byte as fixed  
point var with 1 decimal,
-                                             --   3 positions (including  
decimal point) in total
+   format_byte_dec (hd44780, counter, 3, 1)  -- print a byte as fixed  
point var with 1 decimal,
+   --   3 positions (including decimal point) in total
     -- clear first part of lower line
-   lcd_setcursor(1, 0)
+   lcd_setcursor(1, 0)
     for 8 loop
        hd44780 = " "
     end loop

     -- set cursor at start of line1
-   lcd_setcursor(1, 0)
+   lcd_setcursor(1, 0)

     CASE counter OF

        0 : block
           -- hex byte output
-         format_byte_hex(hd44780, 0xEA)
+         format_byte_hex(hd44780, 0xEA)
           counter = counter + 1
        end block

@@ -75,68 +75,68 @@

        10 : block
           -- decimal output ' 1.2'
-         format_byte_dec(hd44780, 12, 3, 1)
+         format_byte_dec(hd44780, 12, 3, 1)
           counter = counter + 1
        end block

        11 : block
           -- decimal output '0.12'
-         format_byte_dec(hd44780, 12, 3, 2)
+         format_byte_dec(hd44780, 12, 3, 2)
           counter = counter + 1
        end block

        12 : block
           -- decimal output ' 12'
-         format_byte_dec(hd44780, 12, 3, 0)
+         format_byte_dec(hd44780, 12, 3, 0)
           counter = counter + 1
        end block

        13 : block
           -- decimal output '12.0'
-         format_byte_dec(hd44780, 120, 3, 1)
+         format_byte_dec(hd44780, 120, 3, 1)
           counter = 20
        end block

        20 : block
           -- decimal output '-12'
-         format_sbyte_dec(hd44780, -12, 3, 0)
+         format_sbyte_dec(hd44780, -12, 3, 0)
           counter = counter + 1
        end block

        21 : block
           -- decimal output '-1.2'
-         format_sbyte_dec(hd44780, -12, 3, 1)
+         format_sbyte_dec(hd44780, -12, 3, 1)
           counter = counter + 1
        end block

        22 : block
           -- decimal output '-12'
-         format_sbyte_dec(hd44780, -12, 3, 2)
+         format_sbyte_dec(hd44780, -12, 3, 2)
           counter = 30
        end block
-
+
        30 : block
           -- decimal output ' 0.012'
-         format_word_dec(hd44780, 12, 6, 3)
+         format_word_dec(hd44780, 12, 6, 3)
           counter = counter + 1
        end block

        31 : block
           -- decimal output '   1.2'
-         format_word_dec(hd44780, 12, 6, 1)
+         format_word_dec(hd44780, 12, 6, 1)
           counter = counter + 1
        end block
-
+
        32 : block
           -- decimal output '   12'
-         format_word_dec(hd44780, 12, 6, 0)
+         format_word_dec(hd44780, 12, 6, 0)
           counter = 40
        end block
-
+

        40 : block
           -- decimal output ' -0.012'
-         format_sword_dec(hd44780, -12, 6, 3)
+         format_sword_dec(hd44780, -12, 6, 3)
           counter = 50  -- (no more examples in this group - you should get  
it by now...)
        end block


--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"jallib" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/jallib?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to