Skip to content
Snippets Groups Projects
Commit e7a7bcc1 authored by thiebolt's avatar thiebolt
Browse files

update

parent 58113442
No related branches found
No related tags found
No related merge requests found
...@@ -241,6 +241,10 @@ void setup() { ...@@ -241,6 +241,10 @@ void setup() {
Serial.println(F("\n[PMS5003] setup Serial2"));Serial.flush(); Serial.println(F("\n[PMS5003] setup Serial2"));Serial.flush();
Serial2.begin(9600); // PMS link Serial2.begin(9600); // PMS link
Serial.println(F("\n[PMS5003] switch to passive mode & empty receuve buffer"));Serial.flush();
pms.passiveMode();delay(10);
while (Serial2.available()) Serial2.read();
// enable pin is input as default // enable pin is input as default
pinMode( PM_ENABLE, INPUT ); pinMode( PM_ENABLE, INPUT );
digitalWrite( PM_ENABLE, LOW ); // useless ... till we set it as an ouput digitalWrite( PM_ENABLE, LOW ); // useless ... till we set it as an ouput
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment