Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: YGE25i.cpp
- Revision:
- 2:3b81b375ced3
- Parent:
- 1:892cfa205088
- Child:
- 3:01ad25aaff55
--- 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