prints to screen hello world

Dependents:   RD117_MBED_mod

Files at this revision

API Documentation at this revision

Comitter:
noahmilam
Date:
Tue Jun 02 05:21:14 2015 +0000
Commit message:
first time publishing a simple lib

Changed in this revision

ToScreen.cpp Show annotated file Show diff for this revision Revisions of this file
ToScreen.h Show annotated file Show diff for this revision Revisions of this file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ToScreen.cpp	Tue Jun 02 05:21:14 2015 +0000
@@ -0,0 +1,11 @@
+#include "ToScreen.h"
+#include "mbed.h"
+
+ ToScreen::ToScreen(Serial *pc)
+  {
+     _pc = pc;
+}
+ void ToScreen::print(){
+   
+   _pc->printf("Hello World!\n"); 
+ }
\ No newline at end of file
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/ToScreen.h	Tue Jun 02 05:21:14 2015 +0000
@@ -0,0 +1,10 @@
+
+#include "mbed.h"
+
+class ToScreen {
+public:
+    ToScreen(Serial *pc) ;
+    void print();
+private:
+Serial *_pc;   
+};
\ No newline at end of file