Project

General

Profile

Revision 8e491bdf

ID8e491bdf509647e84f808ae3721db6ea4fc32f68
Parent 159be3ae
Child 5a227630

Added by RicardoSilva91 almost 7 years ago

teste_turn on inside light

View differences:

tpf/config.h
9 9
 * 
10 10
 */
11 11
//INPUT
12
#define POWER_BTN 0
12
#define POWER_BTN 11
13 13
#define TIME_BTN 1
14 14
#define PLUS_BTN 2
15 15
#define MINUS_BTN 3
16
#define START_STOP 7
16 17
#define DOOR_SWITCH 4
17 18
#define ON_OF_SWITCH 6
19
#define TEMPERATURE_SWITCH 10
18 20

  
19 21
//output
20 22
#define INSIDE_LIGHT 0
tpf/mainTest.c
135 135
#endif
136 136
#ifdef testing
137 137
	char c;
138
        uint8_t state;
138 139
        initBoard();
140
        
141
        while(1)
142
        {
143
            (uint8_t) IsDoorOpen(&state);
144
            
145
            if(state==1)
146
        }
139 147
        (u_int8_t) turnOnLight();
140 148
        
141 149
        printf("t-Escolher tempo\n p-Escolher power\n s-Start/Stop\n");
tpf/nbproject/configurations.xml
1 1
<?xml version="1.0" encoding="UTF-8"?>
2
<configurationDescriptor version="95">
2
<configurationDescriptor version="97">
3 3
  <logicalFolder name="root" displayName="root" projectFiles="true" kind="ROOT">
4 4
    <df root="." name="0">
5 5
      <in>config.c</in>
......
37 37
          <cleanCommand>${MAKE} -f Makefile clean</cleanCommand>
38 38
          <executablePath></executablePath>
39 39
        </makeTool>
40
        <preBuild>
41
          <preBuildCommandWorkingDir>.</preBuildCommandWorkingDir>
42
          <preBuildCommand></preBuildCommand>
43
        </preBuild>
40 44
      </makefileType>
41 45
      <item path="config.c" ex="false" tool="0" flavor2="2">
42 46
      </item>
tpf/nbproject/private/configurations.xml
1 1
<?xml version="1.0" encoding="UTF-8"?>
2
<configurationDescriptor version="95">
2
<configurationDescriptor version="97">
3 3
  <logicalFolder name="root" displayName="root" projectFiles="true" kind="ROOT">
4 4
    <df root="." name="0">
5 5
      <in>config.c</in>

Also available in: Unified diff