Update processing sketch 04

This commit is contained in:
DenzelChen
2020-09-02 18:19:28 +08:00
parent a2fbaabb08
commit c039288e64
@@ -6,9 +6,9 @@
*****************************************************/
import processing.io.*;
int bluePin = 17; //blue Pin
int greenPin = 27; //green Pin
int redPin = 22; //red Pin
int bluePin = 27; //blue Pin
int greenPin = 18; //green Pin
int redPin = 17; //red Pin
int borderSize = 40; //picture border size
//Create a PWM pin,initialize the duty cycle and period
SOFTPWM pRed = new SOFTPWM(redPin, 100, 100);
@@ -78,4 +78,4 @@ void titleAndSiteInfo() {
text("Colorful LED", width / 2, 40); //title
textSize(16);
text("www.freenove.com", width / 2, height - 20); //site
}
}