UT 11: Show Waspmote version
This example shows how to display the Waspmote version number: v12 or v15

Required Materials

1 x Waspmote 1 x MiniUSB wire 1 x Battery

Notes

This example can be executed in Waspmote v12 and Waspmote v15

Code

1
/*
2
* ------ UT_11 Show Waspmote version ------
3
*
4
* Explanation: this example shows how to display the Waspmote
5
* version number: v12 or v15
6
*
7
* Copyright (C) 2016 Libelium Comunicaciones Distribuidas S.L.
8
* http://www.libelium.com
9
*
10
* This program is free software: you can redistribute it and/or modify
11
* it under the terms of the GNU General Public License as published by
12
* the Free Software Foundation, either version 3 of the License, or
13
* (at your option) any later version.
14
*
15
* This program is distributed in the hope that it will be useful,
16
* but WITHOUT ANY WARRANTY; without even the implied warranty of
17
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
18
* GNU General Public License for more details.
19
*
20
* You should have received a copy of the GNU General Public License
21
* along with this program. If not, see .
22
*
23
* Version: 3.0
24
* Design: David Gascón
25
* Implementation: Yuri Carmona
26
*/
27
28
29
void setup()
30
{
31
USB.ON();
32
USB.println(F("Start program"));
33
34
Utils.showVersion();
35
}
36
37
38
39
void loop()
40
{
41
// do nothing
42
}
43
44
45
Copied!

Output

1
H#
2
Start program
3
v15
4
H#
5
Start program
6
v12
Copied!
Last modified 1yr ago