USB_Host_Shield_2.0
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
message.cpp
Go to the documentation of this file.
1 /* Copyright (C) 2011 Circuits At Home, LTD. All rights reserved.
2 
3 This software may be distributed and modified under the terms of the GNU
4 General Public License version 2 (GPL2) as published by the Free Software
5 Foundation and appearing in the file GPL2.TXT included in the packaging of
6 this file. Please note that GPL2 Section 2[b] requires that all works based
7 on this software must also be made publicly available under the terms of
8 the GPL2 ("Copyleft").
9 
10 Contact information
11 -------------------
12 
13 Circuits At Home, LTD
14 Web : http://www.circuitsathome.com
15 e-mail : support@circuitsathome.com
16 */
17 #include "message.h"
18 
19 void Notify(char const * msg)
20 //void Notify(const char* msg)
21 {
22  if(!msg) return;
23  char c;
24 
25  while((c = pgm_read_byte(msg++)))
26 #if defined(ARDUINO) && ARDUINO >=100
27  Serial.print(c);
28 #else
29  Serial.print(c,BYTE);
30 #endif
31 }