Mercurial > public > hwos_code
diff src/adc_lightsensor.asm @ 220:effd7259f5a5
make button sensitivity configurable (cR hardware)
author | heinrichsweikamp |
---|---|
date | Mon, 05 Jan 2015 14:41:23 +0100 |
parents | 8fbd8c5ac51f |
children | 23311219dacc |
line wrap: on
line diff
--- a/src/adc_lightsensor.asm Sun Jan 04 21:24:01 2015 +0100 +++ b/src/adc_lightsensor.asm Mon Jan 05 14:41:23 2015 +0100 @@ -435,21 +435,9 @@ global piezo_config ; Sets up piezo sensitivity of heinrichs weikamp Piezo buttons (~30ms) piezo_config: ; Settings between 20 and 200 - movlw .75 ; right button - rcall piezo_config_tx - movlw .75 ; left button - rcall piezo_config_tx - movlw .200 ; reserved - rcall piezo_config_tx - movlw .200 ; reserved + movff opt_cR_button_right,WREG; right button rcall piezo_config_tx - return - - global piezo_config_dive ; Sets up piezo sensitivity of heinrichs weikamp Piezo buttons (~30ms) -piezo_config_dive: ; Settings between 20 and 200 - movlw .60 ; right button - rcall piezo_config_tx - movlw .60 ; left button + movff opt_cR_button_left,WREG ; left button rcall piezo_config_tx movlw .200 ; reserved rcall piezo_config_tx