Mercurial > public > hwos_code
comparison 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 |
comparison
equal
deleted
inserted
replaced
219:4b2622e0fd50 | 220:effd7259f5a5 |
---|---|
433 bcf adc_running ; =1: The ADC is in use | 433 bcf adc_running ; =1: The ADC is in use |
434 return | 434 return |
435 | 435 |
436 global piezo_config ; Sets up piezo sensitivity of heinrichs weikamp Piezo buttons (~30ms) | 436 global piezo_config ; Sets up piezo sensitivity of heinrichs weikamp Piezo buttons (~30ms) |
437 piezo_config: ; Settings between 20 and 200 | 437 piezo_config: ; Settings between 20 and 200 |
438 movlw .75 ; right button | 438 movff opt_cR_button_right,WREG; right button |
439 rcall piezo_config_tx | 439 rcall piezo_config_tx |
440 movlw .75 ; left button | 440 movff opt_cR_button_left,WREG ; left button |
441 rcall piezo_config_tx | |
442 movlw .200 ; reserved | |
443 rcall piezo_config_tx | |
444 movlw .200 ; reserved | |
445 rcall piezo_config_tx | |
446 return | |
447 | |
448 global piezo_config_dive ; Sets up piezo sensitivity of heinrichs weikamp Piezo buttons (~30ms) | |
449 piezo_config_dive: ; Settings between 20 and 200 | |
450 movlw .60 ; right button | |
451 rcall piezo_config_tx | |
452 movlw .60 ; left button | |
453 rcall piezo_config_tx | 441 rcall piezo_config_tx |
454 movlw .200 ; reserved | 442 movlw .200 ; reserved |
455 rcall piezo_config_tx | 443 rcall piezo_config_tx |
456 movlw .200 ; reserved | 444 movlw .200 ; reserved |
457 rcall piezo_config_tx | 445 rcall piezo_config_tx |