Revision: 1228
Author: sebastien.lelong
Date: Thu Aug 20 22:36:00 2009
Log: fix old use of adc_hardware
http://code.google.com/p/jallib/source/detail?r=1228

Modified:
  /trunk/sample/16f77_adc_lowres.jal

=======================================
--- /trunk/sample/16f77_adc_lowres.jal  Sun Mar 15 10:24:52 2009
+++ /trunk/sample/16f77_adc_lowres.jal  Thu Aug 20 22:36:00 2009
@@ -1,7 +1,7 @@
  -- Title: Sample showing how to use adc_hardware library
  -- Author: Sebastien Lelong, Copyright (c) 2008-2009, all rights reserved.
  -- Adapted-by:
--- Compiler: >=2.4i
+-- Compiler: >=2.4l
  --
  -- This file is part of jallib (http://jallib.googlecode.com)
  -- Released under the BSD license  
(http://www.opensource.org/licenses/bsd-license.php)
@@ -57,18 +57,18 @@

  -- Configure ADC
  -- We just need only one ADC channel
-const adc_hardware_nchan = 1
+const byte ADC_NCHANNEL= 1
  -- We won't use any external VRef, so measures are done
  -- according to PIC powering voltage
-const adc_hardware_nvref = 0
+const byte ADC_NVREF = 0
  -- The maximum resistance while measuring ADC is... (unit: ohms)
  -- Being accurate helps speeding up ADC acquisition
-const adc_hardware_rsource = 2_000
+const word ADC_RSOURCE = 2_000
  -- In this example, we'll perform low resolution ADC: results are
  -- coded on 8bits
-const adc_hardware_high_resolution = false
+const bit ADC_HIGH_RESOLUTION = false
  -- Now include the famous library
-include adc_hardware
+include adc
  -- And initialize the whole with our parameters
  adc_init()


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