Project

General

Profile

Revision 687e9f18

ID687e9f18e1d05aa90327cb40937d25d56225b9eb
Parent ac0f8544
Child 0728ad3e

Added by RicardoSilva91 almost 7 years ago

sw

View differences:

tpf/config.c
49 49
    //door switch (open/closed)
50 50
    pinMode (DOOR_SWITCH, INPUT);
51 51
    //on/off switch
52
    pinMode (ON_OF_SWITCH, INPUT);
52
    pinMode (ON_OFF_SWITCH, INPUT);
53 53
    
54 54
    /**
55 55
     * outputs 
tpf/config.h
15 15
#define MINUS_BTN 3
16 16
#define START_STOP 7
17 17
#define DOOR_SWITCH 4
18
#define ON_OF_SWITCH 6
18
#define ON_OFF_SWITCH 6
19 19
#define TEMPERATURE_SWITCH 10
20 20

  
21 21
//output
22 22
#define INSIDE_LIGHT 7
23
#define WAVE_LED 5
23
#define WAVE_LED 6
24 24

  
25 25

  
26 26
//comment next line if using 7_SEGMENT display
tpf/mainTest.c
144 144
            
145 145
            if(state==1)
146 146
            {
147
                printf("\nstate = %hho", state);
147 148
                (u_int8_t) turnOnLight();
149
                (u_int8_t) turnOnMegatron();
148 150
            }
149 151
            else
150 152
            {
153
                printf("\nstate = %hho", state);
151 154
                (u_int8_t) turnOffLight();
155
                (u_int8_t) turnOffMegatron();
152 156
            }
153 157
        }
154 158
        

Also available in: Unified diff