force high on start (seems better...)
This commit is contained in:
parent
d8e2396259
commit
568f843bc9
1 changed files with 2 additions and 1 deletions
|
@ -2,10 +2,11 @@
|
||||||
.program dht
|
.program dht
|
||||||
; Clock must be set for 1µs per instruction
|
; Clock must be set for 1µs per instruction
|
||||||
|
|
||||||
|
set pindirs, 1 ; set pin as output
|
||||||
|
set pins, 1 ; set pin to high
|
||||||
pull block ; Wait for start
|
pull block ; Wait for start
|
||||||
|
|
||||||
set x, 31 ; set x register with 31 (for 31 * 32 µS)
|
set x, 31 ; set x register with 31 (for 31 * 32 µS)
|
||||||
set pindirs, 1 ; set pin as output
|
|
||||||
set pins, 0 ; set pin to low
|
set pins, 0 ; set pin to low
|
||||||
loop_init_low: ; wait 992 ms
|
loop_init_low: ; wait 992 ms
|
||||||
jmp x-- loop_init_low [31]
|
jmp x-- loop_init_low [31]
|
||||||
|
|
Loading…
Reference in a new issue