sef

Dependencies:   SoftSerial mbed

Fork of kc_mh-z19_CO2sensor by kohacraft Lab

Revision:
2:efdada46c319
Parent:
1:c7a36fa2c772
--- a/main.cpp	Fri Sep 29 03:15:40 2017 +0000
+++ b/main.cpp	Fri Sep 14 09:25:37 2018 +0000
@@ -1,21 +1,15 @@
 /* 
- Read from MH-Z19 CO2 Sensor by serial
- and show data to PC throw the softserial
- for LPC1114FN28
- 
- MH-Z19B Datasheet http://www.winsen-sensor.com/d/files/infrared-gas-sensor/mh-z19b-co2-ver1_0.pdf
- Also reference https://github.com/nara256/mhz19_uart
- 
- please see the blog in detail
- http://kohacraft.com/archives/1068007971.html
- 
+ Read from MH-Z14A CO2 Sensor by serial and show data to PC throw the softserial
+ for LPC1768
+ MH-Z14A Datasheet https://www.compel.ru/item-pdf/2ef21253651a5e4838151c427769e7b6/pn/winsen~mh-z14a-ndir-co2-sensor.pdf
+
 */
 
 #include "mbed.h"
 #include "SoftSerial.h" // by Erick Olieman https://os.mbed.com/users/Sissors/code/SoftSerial/
 
-SoftSerial pc(dp18,dp17); //Tx,Rx to USB serial (mbed cat)
-Serial co2sensor(USBTX, USBRX); //Tx,Rx to mh-z19 CO2 sensor
+SoftSerial pc(p13,p14); //Tx,Rx to USB serial
+Serial co2sensor(USBTX, USBRX); //Tx,Rx to mh-z14 CO2 sensor
 
 int main() {