Author: sebastien.lelong
Date: Thu Sep  4 22:51:52 2008
New Revision: 270

Modified:
    trunk/unvalidated/sample/external/lcd/hello_world_lcd.jal
    trunk/unvalidated/sample/external/lcd/lcd_format.jal

Log:
now JSG compliant

Modified: trunk/unvalidated/sample/external/lcd/hello_world_lcd.jal
==============================================================================
--- trunk/unvalidated/sample/external/lcd/hello_world_lcd.jal   (original)
+++ trunk/unvalidated/sample/external/lcd/hello_world_lcd.jal   Thu Sep  4  
22:51:52 2008
@@ -1,9 +1,19 @@
--- prog.jal, to test LCD
+-- Title: Hello world with an LCD
+-- Author: Eur Van Andel, Copyright (c) 2008, all rights reserved.
+-- Adapted-by:
+-- Compiler: >=2.4g
+--
+-- This file is part of jallib (http://jallib.googlecode.com)
+-- Released under the BSD license  
(http://www.opensource.org/licenses/bsd-license.php)
+--
+-- Description: this sample shows how to setup an LCD and writes
+-- "Hello World"
+--

-include 16F877a
+include 16f877a

-pragma target clock 20_000_000                  -- xtal frequency
-pragma target OSC        hs
+pragma target  CLOCK 20_000_000                  -- xtal frequency
+pragma target  OSC   HS
  pragma target   LVP disabled
  pragma target   WDT disabled

@@ -22,13 +32,12 @@

  include lcd                         -- LCD library
  include print                       -- output library
-;include delay_any_mc

  for 4 loop
-   LED = on
-   delay_100ms(3)
-   LED = off
-   delay_100ms(3)
+    LED = on
+    delay_100ms(3)
+    LED = off
+    delay_100ms(3)
  end loop

  const byte str1[] = "Hello world"   -- define a string
@@ -39,10 +48,10 @@

  forever loop                                  -- loop forever

-   lcdsetcursor(1, 0)
-   print_byte_hex(lcd, counter)   -- output in hex format
-   counter = counter + 1
-   delay_100ms(2)
+    lcdsetcursor(1, 0)
+    print_byte_hex(lcd, counter)   -- output in hex format
+    counter = counter + 1
+    delay_100ms(2)

  end loop


Modified: trunk/unvalidated/sample/external/lcd/lcd_format.jal
==============================================================================
--- trunk/unvalidated/sample/external/lcd/lcd_format.jal        (original)
+++ trunk/unvalidated/sample/external/lcd/lcd_format.jal        Thu Sep  4  
22:51:52 2008
@@ -1,9 +1,19 @@
--- prog.jal, to test LCD
+-- Title: How to use format lib with an LCD
+-- Author: Eur Van Andel, Copyright (c) 2008, all rights reserved.
+-- Adapted-by:
+-- Compiler: >=2.4g
+--
+-- This file is part of jallib (http://jallib.googlecode.com)
+-- Released under the BSD license  
(http://www.opensource.org/licenses/bsd-license.php)
+--
+-- Description: this sample shows how to use the format lib with
+-- an LCD
+--

-include 16F877a
+include 16f877a

-pragma target clock 20_000_000                  -- xtal frequency
-pragma target OSC        hs
+pragma target  CLOCK 20_000_000                  -- xtal frequency
+pragma target  OSC   HS
  pragma target   LVP disabled
  pragma target   WDT disabled


--~--~---------~--~----~------------~-------~--~----~
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