验证中...
gistfile1.txt
Raw Copy
#include <LiquidCrystal_SoftI2C.h>
#include <SoftI2CMaster.h>
LiquidCrystal_SoftI2C mylcd(0x27,16,2,A3,A2);
void setup(){
mylcd.init();
mylcd.backlight();
}
void loop(){
analogWrite(11,(map(analogRead(A0), 0, 1023, 0, 255)));
mylcd.setCursor(0, 0);
mylcd.print((map(analogRead(A0), 0, 1023, 0, 255)));
mylcd.setCursor(0, 1);
mylcd.print("");
}
面包板.png

Comment list( 0 )

Sign in for post a comment

Help Search