hi! have problem dht library in assembly code
can that
this error message:
c:\users\mauricio\appdata\local\temp\build1496615171511360210.tmp\assemblycode.s.o: in function `humedad':
c:\users\mauricio\appdata\local\temp\build1496615171511360210.tmp/assemblycode.s:45: undefined reference `dht'
collect2.exe: error: ld returned 1 exit status
error de compilaciĆ³n
and asm code:
.extern dht
.extern analogread
.extern arduino.h
.global setup
.global loop
setup:
cbi 0x14,2 //a2 humedad
cbi 0x11,1 // a1 fotocelda
cbi 0x11,0 // a0 sen receptor
sbi 0x17,3 // d11 leds fondo
sbi 0x17,4 // d12 led noti azul
sbi 0x17,5 // d13 led noti rojo
ret
loop:
sbi 0x18,3
clr r24
clr r25
mov r24,1
mov r25,1
rcall analogread
cpi r24,169
brmi foto
cbi 0x18,4
rjmp loop
foto:
clr r24
clr r25
mov r24,2
mov r25,2
rcall analogread
cpi r24,247
brmi error
sbi 0x18,5
rjmp loop
humedad:
clr r24
clr r25
mov
rcall dht
//ldi r16, dht.readtemperature
error:
sbi 0x18,4
cbi 0x18,5
rjmp loop
can that
this error message:
c:\users\mauricio\appdata\local\temp\build1496615171511360210.tmp\assemblycode.s.o: in function `humedad':
c:\users\mauricio\appdata\local\temp\build1496615171511360210.tmp/assemblycode.s:45: undefined reference `dht'
collect2.exe: error: ld returned 1 exit status
error de compilaciĆ³n
and asm code:
.extern dht
.extern analogread
.extern arduino.h
.global setup
.global loop
setup:
cbi 0x14,2 //a2 humedad
cbi 0x11,1 // a1 fotocelda
cbi 0x11,0 // a0 sen receptor
sbi 0x17,3 // d11 leds fondo
sbi 0x17,4 // d12 led noti azul
sbi 0x17,5 // d13 led noti rojo
ret
loop:
sbi 0x18,3
clr r24
clr r25
mov r24,1
mov r25,1
rcall analogread
cpi r24,169
brmi foto
cbi 0x18,4
rjmp loop
foto:
clr r24
clr r25
mov r24,2
mov r25,2
rcall analogread
cpi r24,247
brmi error
sbi 0x18,5
rjmp loop
humedad:
clr r24
clr r25
mov
rcall dht
//ldi r16, dht.readtemperature
error:
sbi 0x18,4
cbi 0x18,5
rjmp loop
how compile assembly code?
Arduino Forum > Using Arduino > Sensors > DHT11 troubles in assembly code
arduino
Comments
Post a Comment