my generic framework

Dependents:   generic_framework_test

Revision:
1:c35046f358f6
Parent:
0:1e6019bda876
--- a/sources/Teste.cpp	Thu Apr 25 22:44:43 2019 +0000
+++ b/sources/Teste.cpp	Wed May 01 15:53:24 2019 -0300
@@ -1,9 +1,26 @@
 #include "mbed.h"
 #include "Teste.h"
 
-Teste::Teste() { }
+DigitalOut myled(LED1);
+
+Teste::Teste(int blinks) {
+    _numBlinks = blinks;
+ }
 
 int Teste::sayHello()
 {
     return 123;
 }
+
+void Teste::rodaTeste()
+{
+    int count = 0;
+    while(count++ < _numBlinks) {
+        myled = 1;
+        wait(0.3);
+        myled = 0;
+        wait(0.3);
+    }
+
+    myled = 0;
+}