PM2.5数值
PM2.5数值无评论2014年5月30日 上午11:56分类:硬件 阅读: 12,357 次
参考文章: 12 12 代码: int dustPin=0; int ledPower=2; int delayTime=280; int delayTime2=40; float offTime=9680; int dustVal=0; float ppm=0; char s[32]; float voltage = 0; float dustdensity = 0; float ppmpercf = 0; void setup(){ Serial.begin(9600); pinMode(ledPower,OUTPUT); pinMode(dustPin, INPUT); ppm =0; } void loop(){ digitalWrite(ledPower,LOW); // power on the LED delayMicroseconds(delayTime); ...
【阅读全文】