bluelasers
Advanced Member level 4
- Joined
- May 20, 2014
- Messages
- 115
- Helped
- 33
- Reputation
- 66
- Reaction score
- 33
- Trophy points
- 28
- Activity points
- 1,086
Try adding this to your defines:
DEFINE ADC_BITS 10
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.
DEFINE ADC_BITS 10
If i < 10 Then
Adcin 0, tempdig
WaitMs 1000
k = tempdig
tempan = k * 5 / 1023
kk = tempan
kkk = kk * 100
kkk = kkk / 2
kkk = kkk - 20
i = i + 1
accuratetemp = accuratetemp + kkk
Goto acctemp
Else
Endif
accuratetemp = accuratetemp / 10
accuratetempp = accuratetemp - 30
If i < 10 Then
Adcin 0, tempdig
WaitMs 1000
k = tempdig
tempan = k * 5 / 1023
kk = tempan
kkk = kk * 100
i = i + 1
accuratetemp = accuratetemp + kkk
Goto acctemp
Else
Endif
accuratetemp = accuratetemp / 10
kkk = kkk / 2
kkk = kkk - 20