diff src/adc_lightsensor.asm @ 204:93085f540746

minor
author heinrichsweikamp
date Sun, 23 Nov 2014 22:33:41 +0100
parents dd9b167e82dc
children f5d909e03f52
line wrap: on
line diff
--- a/src/adc_lightsensor.asm	Fri Nov 21 11:51:53 2014 +0100
+++ b/src/adc_lightsensor.asm	Sun Nov 23 22:33:41 2014 +0100
@@ -431,6 +431,18 @@
     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
+    rcall   piezo_config_tx
+    movlw   .200                    ; reserved
+    rcall   piezo_config_tx
+    movlw   .200                    ; reserved
+    rcall   piezo_config_tx
+    return
+
 piezo_config_tx:                    ; Send one byte
     movwf   uart1_temp              ; Store byte
     movlw   .8