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:
- 4:b6183c27ddfe
- Parent:
- 3:01ad25aaff55
- Child:
- 5:553483b0c7ac
--- a/YGE25i.cpp Fri Feb 04 18:55:44 2011 +0000
+++ b/YGE25i.cpp Fri Apr 22 17:17:36 2011 +0000
@@ -38,7 +38,13 @@
i2c_.frequency(200000);
adress=adress_;
//save_.attach_us(this,&YGE25i::YGESetPWMSave,1000);
+ for(int a=0;a<=40;a++){
+ wait_ms(10);
+ YGESetPWM(0);
+
+ }
+ wait_ms(20);
}
char YGE25i::YGEReadReg(char reg){
@@ -97,15 +103,4 @@
void YGE25i::setPWM(int pwm_){
pwm=pwm_;
-}
-
-void YGE25i::initYGE(void){
-
- for(int a=0;a<=40;a++){
-
- wait_ms(10);
- YGESetPWM(0);
-
- }
- wait_ms(20);
-}
\ No newline at end of file
+}
\ No newline at end of file