Author: jsuijs
Date: Fri Mar 27 11:22:56 2009
New Revision: 888
Modified:
trunk/include/external/lcd/lcd_backlight.jal
Log:
minor changes
Modified: trunk/include/external/lcd/lcd_backlight.jal
==============================================================================
--- trunk/include/external/lcd/lcd_backlight.jal (original)
+++ trunk/include/external/lcd/lcd_backlight.jal Fri Mar 27 11:22:56 2009
@@ -25,11 +25,12 @@
-- setup
if (defined(lcd_backlight_pwm) == true) then
-- backlight pwm
+ include hardware_pwm
+
if (lcd_backlight_pwm == 1) then
--
----------------------------------------------------------------------
-- pwm on ccp1
- include pwm_ccp1
pin_ccp1_direction = output
pwm_max_resolution(1)
pwm1_on()
@@ -51,7 +52,6 @@
--
----------------------------------------------------------------------
-- pwm on ccp2
- include pwm_ccp2
pin_ccp2_direction = output
pwm_max_resolution(1)
pwm2_on()
@@ -70,7 +70,6 @@
--
----------------------------------------------------------------------
-- pwm on ccp3
- include pwm_ccp3
pin_ccp3_direction = output
pwm_max_resolution(1)
pwm3_on()
@@ -89,7 +88,6 @@
--
----------------------------------------------------------------------
-- pwm on ccp4
- include pwm_ccp4
pin_ccp4_direction = output
pwm_max_resolution(1)
pwm4_on()
@@ -107,8 +105,7 @@
elsif (lcd_backlight_pwm == 5) then
--
----------------------------------------------------------------------
- -- pwm on ccp25
- include pwm_ccp5
+ -- pwm on ccp5
pin_ccp5_direction = output
pwm_max_resolution(1)
pwm5_on()
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---