Mercurial > public > hwos_code
diff src/adc_lightsensor.inc @ 623:c40025d8e750
3.03 beta released
author | heinrichsweikamp |
---|---|
date | Mon, 03 Jun 2019 14:01:48 +0200 |
parents | ca4556fb60b9 |
children | 75e90cd0c2c3 |
line wrap: on
line diff
--- a/src/adc_lightsensor.inc Wed Apr 10 10:51:07 2019 +0200 +++ b/src/adc_lightsensor.inc Mon Jun 03 14:01:48 2019 +0200 @@ -1,6 +1,6 @@ ;============================================================================= ; -; File adc.inc +; File adc_lightsensor.inc combined next generation V3.03.1 ; ; ; Copyright (c) 2011, JD Gascuel, HeinrichsWeikamp, all right reserved. @@ -9,9 +9,10 @@ ; 2011-08-08 : [mH] moving from OSTC code extern get_battery_voltage ; and percent... - extern get_ambient_level - extern reset_battery_pointer ; resets battery pointer 0x07-0x0C and battery_gauge:5 - extern reset_battery_internal_only ; internal registers only - extern get_analog_inputs ; get AN8-10 + extern get_ambient_level ; get ambient light level and adjust backlight extern piezo_config ; set up piezo sensitivity of heinrichs weikamp piezo buttons (~30ms) extern get_analog_switches ; get analog switches + + IFDEF _external_sensor + extern get_analog_inputs ; get AN8-10 + ENDIF