See: https://github.com/EEEManchester/Food-Computer

Dependencies:   DHT DS1820 MODSERIAL ModbusSlave232 SoftSerial TSL2561_I2C mbed millis

Fork of ModbusRTU-RS232 by Afdhal Atiff Tan

Embed: (wiki syntax)

« Back to documentation index

Show/hide line numbers pin_definitions.h Source File

pin_definitions.h

00001 //should be compatible with arduino sketch v2
00002 
00003 //leds for debug purposes
00004 DigitalOut led1(PA_13); 
00005 DigitalOut led2(PA_14);
00006 DigitalOut led3(PA_15);
00007 
00008 DHT dht22(D2,DHT22);
00009 
00010 //https://developer.mbed.org/users/Sissors/code/DS1820_HelloWorld/
00011 DS1820 water_temp(D3);
00012 
00013 DigitalOut R0(D4);
00014 DigitalOut R1(D5);
00015 DigitalOut R2(D6);
00016 DigitalOut R3(D7);
00017 DigitalOut R4(D8);
00018 DigitalOut R5(D9);
00019 DigitalOut R6(D10);
00020 DigitalOut R7(D11);
00021 
00022 SoftSerial CO2sensor(D13, D12);
00023 
00024 TSL2561_I2C lux_sensor(D14, D15);
00025 
00026 AnalogIn water_pH(A0);
00027 AnalogIn water_EC(A1);
00028 
00029 DigitalIn shell_switch(A2);
00030 DigitalIn window_switch(A3);