-
Notifications
You must be signed in to change notification settings - Fork 0
/
demo.scr
60 lines (38 loc) · 1.52 KB
/
demo.scr
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
######################################################################
# Press [Help] for more info about this scripting language. #
# #
# For SerialMonitor++ a few extra commands are implemented: #
# send [message] : Lets you send a message over Serial #
# received() : Containts last received message from Serial #
# print : Prints expression or var to Status line above #
# printa : Prints bytes (from received) as ascii #
# printh : Prints bytes (from received) as hex #
# printd : Prints bytes (from received) as decimals #
# printr : Prints bytes (from received) as bytes #
#====================================================================#
# To test setup your arduino board to echo all serial #
# void setup() { #
# Serial.begin(9600); #
# } #
# void loop() { #
# if(Serial.available() > 0) Serial.write(Serial.read()); #
# } #
#====================================================================#
# Press on run and the received text should appear in #
# the status field above and in the main window. #
######################################################################
send ('Hello World')
var a received()
print 3
print 2
print 1
print "auto:"
print a
print "raw :"
printr a
print "dec :"
printd a
print "hex :"
printh a
print "asci:"
printa a