Съобщение за грешка

Deprecated function: Optional parameter $translation_node declared before required parameter $language is implicitly treated as a required parameter in include_once() (line 1439 of /home/gpstron/public_html/site/includes/bootstrap.inc).

Arduino Led RGB

 

// Arduino

// Martin Nikiforov 
 
int r=0;                            
int g=0;                           
int b=0;
int color,i=0,value=255,time=100;//time=10 youtube
void rgb(int r, int g, int b) {
  analogWrite(9,r);
  analogWrite(11,b);
  analogWrite(10,g);  
}
void rgb1(int r1, int g1, int b1) {
  analogWrite(3,r1);
  analogWrite(5,b1);
  analogWrite(6,g1);  
}
void setup() 
 
void loop() 
  
    for(i=0;i<=255;i++) {
      rgb(i,g,255-i);
     rgb1(i,g,255-i); 
      delay(time); 
    }
    for(i=0;i<=255;i++) {
      rgb(255-i,i,b); 
      delay(time); 
    }
    for(i=0;i<=255;i++) {
      rgb(r,255-i,i); 
      delay(time); 
    }
 
Undefined

Коментар

Plain text

  • Не са разрешени HTML тагове.
  • Линиите и параграфите се прекъсват автоматично.
CAPTCHA
This question is for testing whether or not you are a human visitor and to prevent automated spam submissions.