Easy Training / Mbed 2 deprecated Teach_demo

Dependencies:   mbed Teach memory

Revision:
0:ad924d8a2f98
Child:
1:33fdaabcdeda
diff -r 000000000000 -r ad924d8a2f98 teach.cpp
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/teach.cpp	Wed Mar 25 21:36:24 2020 +0000
@@ -0,0 +1,48 @@
+/*
+class template by clemo
+this file serves as a guide to creating a cpp class
+when wirting functions for Easyfit please use this
+
+put math, instructions and temporary declarations here
+declarations that are permanent go in .h file!
+
+i never coded c++ lol
+
+how to use when creating own class:
+replace "template.h" with something of your choosing
+replace class name (teach) fckn everywhere
+
+write appropriate constructor (teach::teach)
+delete any unwanted functions
+put in your own functions by YOURCLASSNAME::functionname(bla,bla)    //same for public and private functions
+
+*/
+
+
+#include "teach.h"
+
+teach::teach(){
+    
+   /* this->initvalue = _start;   //sets startvalue
+    this->inc = _inc;           //sets increment
+    this->useless();            //prints a happy little message
+}
+
+
+void teach::incrementSum(int v1){
+    for(int i = 0; i < v1; i++){
+        sum += inc;
+    }
+}
+
+void teach::resetSum(void){
+    sum = 0;
+}
+
+int teach::getSum(void){
+    return sum;   
+}
+
+void teach::useless(void){
+    //printf("congrats");     */  //printf doesnt work :(
+}
\ No newline at end of file