• Welcome to LusoRobótica - Robótica em Português.
 

[AJUDA][picaxe 18m2 / lcd03

Started by ruivnc, 20 de June de 2012, 23:08

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

ruivnc

boas pessoal!

tenho uma grande duvida para fazer :\
é o seguinte eu tenho que fazer um projecto e nao tou a conseguir fazer nada! :\
ja consegui fazer o codigo mas o meio fisico nao consigo nada se me pudessem ajudar e que era  :) ao menos para ter uma boa nota no exame final :)
bem o que eu quero fazer é ligar um sensor de temperatura ao picaxe e que depois mostre a temperatura num lcd (LCD03 - I2C/Serial LCD) e que depois consoante a temperatura acendia um dos 3 leds que tenho! mas nao estou a conseguir nao sei o que ligar :\ e aonde ligar :\ é que tambem nao se quais portas ligar :\
o meu codigo

symbol varA = b0
symbol varB = b1
symbol varC = b2
symbol varD = b3
symbol varE = b4
symbol varF = b5
symbol varG = b6
symbol varH = b7


main:
      pause 500   'Wait command
label_108:   readtemp 7,varA
      if varA < 10 then label_133   'Compare command
      low 0
label_115:   bintoascii varA,b8,b9,b10
      serout 0,T2400_4,(254,128,"Temperatura=",b8,b9,b10," ")
      pause 1000   'Wait command
      goto label_108

label_133:   high 0
      goto label_115