Author: jsuijs
Date: Sun Feb 22 12:57:41 2009
New Revision: 807
Modified:
trunk/include/external/lcd/lcd_hd44780_common.jal
trunk/include/external/lcd/ng_hd44780_4.jal
Log:
Modified: trunk/include/external/lcd/lcd_hd44780_common.jal
==============================================================================
--- trunk/include/external/lcd/lcd_hd44780_common.jal (original)
+++ trunk/include/external/lcd/lcd_hd44780_common.jal Sun Feb 22 12:57:41
2009
@@ -18,40 +18,8 @@
--
--
-- ------------------------------------------------------
-
--
--- ------------- place this below, in your MAIN file and add to
---------
--- ------------- the pins which are not used the variable:
---------
--- ------------- "not_connected" and change the other pins
---------
--- ------------- according to your hardware.
---------
--- ------------- (now selected as 4 line)
---------
--- ------------- also remove the "--"
---------
-
--- var bit not_connected
-
--- var volatile bit lcd_rs is pin_e0 -- data/command select
--- var volatile bit lcd_rw is pin_e1 -- read/write select
--- var volatile bit lcd_enable is pin_e2 -- clock the data
-
--- var volatile bit lcd_d0 is not_connected
--- var volatile bit lcd_d1 is not_connected
--- var volatile bit lcd_d2 is not_connected
--- var volatile bit lcd_d3 is not_connected
--- var volatile bit lcd_d4 is pin_d4
--- var volatile bit lcd_d5 is pin_d5
--- var volatile bit lcd_d6 is pin_d6
--- var volatile bit lcd_d7 is pin_d7
-
-
--- const lcd_hardware_4line = true ;true = 4 data line, false = 8 data
line
--- const lcd_number_of_display_lines = 2 ; 1 = 1 line 2 = 2 line 4
= 4 line
--- const lcd_number_of_display_characters = 16 ; number of digits per
line
-
--- include lcd_hd44780_rz
-
---
--------------------------------------------------------------------------
---
--------------------------------------------------------------------------
-
+--
--
-------------------------------------------------------------------------
-- procedures which can be used in your Main file
--
-------------------------------------------------------------------------
Modified: trunk/include/external/lcd/ng_hd44780_4.jal
==============================================================================
--- trunk/include/external/lcd/ng_hd44780_4.jal (original)
+++ trunk/include/external/lcd/ng_hd44780_4.jal Sun Feb 22 12:57:41 2009
@@ -26,6 +26,41 @@
-- var byte lcd_dataport is portA_low -- 4 data pins
-- var bit lcd_en is pin_A4 -- trigger
-- var bit lcd_rs is pin_A5 -- cmd/data select
+--
+--
+-- ------------- place this below, in your MAIN file and add to
---------
+-- ------------- the pins which are not used the variable:
---------
+-- ------------- "not_connected" and change the other pins
---------
+-- ------------- according to your hardware.
---------
+-- ------------- (now selected as 4 line)
---------
+-- ------------- also remove the "--"
---------
+--
+-- var bit not_connected
+--
+-- var volatile bit lcd_rs is pin_e0 -- data/command select
+-- var volatile bit lcd_rw is pin_e1 -- read/write select
+-- var volatile bit lcd_enable is pin_e2 -- clock the data
+--
+-- var volatile bit lcd_d0 is not_connected
+-- var volatile bit lcd_d1 is not_connected
+-- var volatile bit lcd_d2 is not_connected
+-- var volatile bit lcd_d3 is not_connected
+-- var volatile bit lcd_d4 is pin_d4
+-- var volatile bit lcd_d5 is pin_d5
+-- var volatile bit lcd_d6 is pin_d6
+-- var volatile bit lcd_d7 is pin_d7
+--
+--
+-- const lcd_hardware_4line = true ;true = 4 data line, false = 8 data
line
+-- const lcd_number_of_display_lines = 2 ; 1 = 1 line 2 = 2 line 4
= 4 line
+-- const lcd_number_of_display_characters = 16 ; number of digits per
line
+--
+-- include lcd_hd44780_rz
+--
+--
--------------------------------------------------------------------------
+--
--------------------------------------------------------------------------
+--
+--
-- 2. Include this library.
-- and somewhere before actually using the lcd:
-- 3. Set the chosen LCD dataport and handshake pins to output:
@@ -59,6 +94,8 @@
-- Dependencies: delay.jal
--
--
-----------------------------------------------------------------------------
+--
+
include delay
--
----------------------------------------------------------------------------
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---