/
HelloSpace.ino
62 lines (58 loc) · 2.77 KB
/
HelloSpace.ino
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
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
/*
** ARTSAT Morikawa Application
**
** Original Copyright (C) 2013 - 2014 HORIGUCHI Junshi.
** http://iridium.jp/
** zap00365@nifty.com
** Portions Copyright (C) <year> <author>
** <website>
** <e-mail>
** All rights reserved.
**
** Version Arduino
** Website http://artsat.jp/
** E-mail info@artsat.jp
**
** This source code is for Arduino IDE.
** Arduino 1.0.5
**
** HelloSpace.ino
**
** ------------------------------------------------------------------------
**
** GNU GENERAL PUBLIC LICENSE (GPLv3)
**
** This program is free software: you can redistribute it and/or modify
** it under the terms of the GNU General Public License as published by
** the Free Software Foundation, either version 3 of the License,
** or (at your option) any later version.
** This program is distributed in the hope that it will be useful,
** but WITHOUT ANY WARRANTY; without even the implied warranty of
** MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
** See the GNU General Public License for more details.
** You should have received a copy of the GNU General Public License
** along with this program. If not, see <http://www.gnu.org/licenses/>.
**
** このプログラムはフリーソフトウェアです。あなたはこれをフリーソフトウェア財団によって発行された
** GNU 一般公衆利用許諾書(バージョン 3 か、それ以降のバージョンのうちどれか)が定める条件の下で
** 再頒布または改変することができます。このプログラムは有用であることを願って頒布されますが、
** *全くの無保証* です。商業可能性の保証や特定目的への適合性は、言外に示されたものも含め全く存在しません。
** 詳しくは GNU 一般公衆利用許諾書をご覧ください。
** あなたはこのプログラムと共に GNU 一般公衆利用許諾書のコピーを一部受け取っているはずです。
** もし受け取っていなければ <http://www.gnu.org/licenses/> をご覧ください。
*/
static char const hellospace_morse[] PROGMEM = "Hello, space!";
static char const hellospace_speak[] PROGMEM = "konnnichi'wa uchu-";
void HelloSpace_setup(void)
{
__debug__(Morikawa.setTextPGM(TEXT_Y, hellospace_morse), 1);
return;
}
void HelloSpace_loop(void)
{
__debug__(Morikawa.playMorsePGM(NOTE_C6, hellospace_morse), 101);
delay10mTimes(300);
__debug__(Morikawa.speakPhrasePGM(hellospace_speak), 102);
delay10mTimes(300);
return;
}