This website works better with JavaScript.
Home
Explore
Help
Sign In
MSP430
/
GUI-Heater-System
generated from
gmarx/git-template
Watch
4
Star
0
Fork
0
Code
Issues
0
Pull Requests
0
Projects
0
Releases
0
Wiki
Activity
Browse Source
Uploading the code for execution in arduino
master
David Bailón Bustos
1 year ago
parent
8d7b277bb3
commit
a06ec388fe
1 changed files
with
20 additions
and
0 deletions
Split View
Diff Options
Show Stats
Download Patch File
Download Diff File
+20
-0
lecturaArduino.ino
+ 20
- 0
lecturaArduino.ino
View File
@ -0,0 +1,20 @@
#
define in1 A0
float
temp1
,
lectura1
;
void
setup
(
)
{
// put your setup code here, to run once:
Serial
.
begin
(
9600
)
;
pinMode
(
in1
,
INPUT
)
;
}
void
loop
(
)
{
// put your main code here, to run repeatedly:
lectura1
=
analogRead
(
in1
)
;
temp1
=
(
lectura1
*
5000
/
1023
/
10
)
-
40
;
Serial
.
print
(
temp1
)
;
delay
(
800
)
;
}
Write
Preview
Loading…
Cancel
Save