diff src/adc_lightsensor.asm @ 117:6c577737c34e

minor
author heinrichsweikamp
date Wed, 25 Jun 2014 12:39:14 +0200
parents f3062a611eef
children abd30446e1cd
line wrap: on
line diff
--- a/src/adc_lightsensor.asm	Mon Jun 23 18:11:49 2014 +0200
+++ b/src/adc_lightsensor.asm	Wed Jun 25 12:39:14 2014 +0200
@@ -323,18 +323,18 @@
     return
 
     global  piezo_config            ; Sets up piezo sensitivity of heinrichs weikamp Piezo buttons (~30ms)
-piezo_config:
-    movlw   .20
-    rcall   piezo_config_tx         ; Send one byte
-    movlw   .20
-    rcall   piezo_config_tx         ; Send one byte
-    movlw   .100
-    rcall   piezo_config_tx         ; Send one byte
-    movlw   .200
-    rcall   piezo_config_tx         ; Send one byte
+piezo_config:   ; Settings between 20 and 200
+    movlw   .25                     ; right button
+    rcall   piezo_config_tx
+    movlw   .25                     ; left button
+    rcall   piezo_config_tx
+    movlw   .200                    ; reserved
+    rcall   piezo_config_tx
+    movlw   .200                    ; reserved
+    rcall   piezo_config_tx
     return
 
-piezo_config_tx:
+piezo_config_tx:                    ; Send one byte
     movwf   uart1_temp              ; Store byte
     movlw   .8
     movwf   uart2_temp              ; Bit counter