Chris Zagel / YGE25i

Files at this revision

API Documentation at this revision

Comitter:
user Chris Zagel
Date:
Wed Feb 02 19:53:34 2011 +0000
Parent:
1:892cfa205088
Child:
3:01ad25aaff55
Commit message:
V1.1

Changed in this revision

YGE25i.cpp Show annotated file Show diff for this revision Revisions of this file
YGE25i.h Show annotated file Show diff for this revision Revisions of this file
--- a/YGE25i.cpp	Sat Jan 29 09:03:22 2011 +0000
+++ b/YGE25i.cpp	Wed Feb 02 19:53:34 2011 +0000
@@ -93,11 +93,14 @@
     adress=adress_;
 }
 
-/* 
+ 
 void YGE25i::YGESetPWMSave(void){
     char tx;
     tx=pwm & 0x7f;   
     i2c_.write(adress & 0xFE, &tx, 1);
 }  
-*/    
-    
\ No newline at end of file
+   
+void YGE25i::setPWM(int pwm_){
+    
+    pwm=pwm_;
+}  
\ No newline at end of file
--- a/YGE25i.h	Sat Jan 29 09:03:22 2011 +0000
+++ b/YGE25i.h	Wed Feb 02 19:53:34 2011 +0000
@@ -112,6 +112,8 @@
         
         void setAdress(int adress_);
         
+        void setPWM(int pwm_);
+        
 };
 
 #endif