Mercurial > public > hwos_code
comparison src/adc_lightsensor.asm @ 158:683321c09cfa
nicer boot into surfacemode
author | heinrichsweikamp |
---|---|
date | Thu, 04 Sep 2014 17:40:24 +0200 |
parents | afa31c815f24 |
children | 669b5d00706d |
comparison
equal
deleted
inserted
replaced
157:5ee76921e359 | 158:683321c09cfa |
---|---|
349 bcf adc_running ; =1: The ADC is in use | 349 bcf adc_running ; =1: The ADC is in use |
350 return | 350 return |
351 | 351 |
352 global piezo_config ; Sets up piezo sensitivity of heinrichs weikamp Piezo buttons (~30ms) | 352 global piezo_config ; Sets up piezo sensitivity of heinrichs weikamp Piezo buttons (~30ms) |
353 piezo_config: ; Settings between 20 and 200 | 353 piezo_config: ; Settings between 20 and 200 |
354 movlw .100 ; right button | 354 movlw .75 ; right button |
355 rcall piezo_config_tx | 355 rcall piezo_config_tx |
356 movlw .100 ; left button | 356 movlw .75 ; left button |
357 rcall piezo_config_tx | 357 rcall piezo_config_tx |
358 movlw .200 ; reserved | 358 movlw .200 ; reserved |
359 rcall piezo_config_tx | 359 rcall piezo_config_tx |
360 movlw .200 ; reserved | 360 movlw .200 ; reserved |
361 rcall piezo_config_tx | 361 rcall piezo_config_tx |