ModoSmart / Mbed 2 deprecated WindowSensorModule

Dependencies:   BLE_API mbed nRF51822

Fork of SensorModulePIR by ModoSmart

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers defineGPIOs.h Source File

defineGPIOs.h

00001 
00002 // ** Defining the GPIOs pins
00003 
00004 
00005 
00006 // ** Serial communication
00007 #define PIN_TX p22
00008 #define PIN_RX p23
00009 //#define PIN_TX USBTX
00010 //#define PIN_RX USBRX
00011 
00012 // ** I2C bus for Temperature sensors
00013 #define PIN_SDA p12
00014 #define PIN_SCL p13
00015 
00016 // ** Presence detection pin (old PIR)
00017 //#define PIN_PRESENCE p8  // for: eTRV_Rel.2.0: it works on both p8 and p2
00018 //#define PIN_PRESENCE p11   // for: eTRV_Rel.2.1 with 100K pulldown R
00019 #define PIN_PRESENCE_RIGHT p25   // for: engine_Rel.1.0, eTRV_Rel.2.1 without pulldown R
00020 #define PIN_PRESENCE_LEFT p24   // for: engine_Rel.1.0, eTRV_Rel.2.1 without pulldown R
00021 
00022 // ** LED
00023 //#define PIN_LED_PCB p21   //for eTRV_Rel.2.1,  eTRV_Rel.3.0 Blue
00024 #define PIN_BLED_PCB p28  //for engine_Rel.1.0 Blue
00025 #define PIN_RLED_PCB p29  //for engine_Rel.1.0 Red
00026 //#define PIN_LED_PCB p8  //for eTRV_Rel.3.0 Red
00027 //#define PIN_LED_PCB p10  //for eTRV_Rel.3.0 Green