Follow along with the video below to see how to install our site as a web app on your home screen.
Note: This feature may not be available in some browsers.
But whole code i copy from the X-robotic webside is there still wrong for this code... ?
Instead of using sht11 but i use SN-HMD are there any diffrence?![]()
;-------------------------------------------------------------
; Description: Waits 2000000 cycles 2 segundos
;-------------------------------------------------------------
PDelay movlw .167 ; 1 set number of repetitions (C)
movwf PDel0 ; 1 |
PLoop0s movlw .41 ; 1 set number of repetitions (B)
movwf PDel1 ; 1 |
PLoop1s movlw .72 ; 1 set number of repetitions (A)
movwf PDel2 ; 1 |
PLoop2s nop ; 1 clear watchdog
decfsz PDel2, 1 ; 1 + (1) is the time over? (A)
goto PLoop2s ; 2 no, loop
decfsz PDel1, 1 ; 1 + (1) is the time over? (B)
goto PLoop1s ; 2 no, loop
decfsz PDel0, 1 ; 1 + (1) is the time over? (C)
goto PLoop0s ; 2 no, loop
PDelL1s goto PDelL2s ; 2 cycles delay
PDelL2s nop ; 1 cycle delay
return ; 2+2 Done
;-------------------------------------------------------------
Yes i do understand my analog sensor wont work but im don't understand for the delay calculation .
How do calculate and loop for 2 sec be4 read sensor![]()