Project

General

Profile

Revision 65489db4

ID65489db409f7333c821402ce224de0db244a2010
Parent ca430a12
Child 6c30c8f9

Added by RicardoSilva91 almost 7 years ago

setdisplay tested, working

View differences:

tpf/mainTest.c
6 6
#include <stdlib.h>
7 7

  
8 8
#define testing
9
#define testing_display
9 10

  
10 11
#ifdef testing
11 12

  
......
19 20
int powerSet = 0;	//estiverem a 1 é que se pode dar Start
20 21

  
21 22
// Power Settings
22
uint32_t powerSettings[] = {150, 350, 500, 750};
23
uint32_t currentPower; //vai indice do array com o tempo atual de power
23
uint16_t powerSettings[] = {150, 350, 500, 750};
24
uint16_t currentPower; //vai indice do array com o tempo atual de power
24 25

  
25 26
//1 enquanto estiver a funcionar(start), 0 se estiver parado(stop);
26 27
int isRunning = 0;
......
185 186
        }
186 187
        */
187 188
        
189
#ifndef testing_display
190
        
188 191
        int lcdHandler;
189 192
        uint8_t btnPressed=0;
190 193
        
......
344 347
        lcdPosition (lcdHandler, 0, 1) ; lcdPuts (lcdHandler, "       YOU      ") ;
345 348
        
346 349
#endif
350
        
351
#ifdef testing_display
352
        
353
        pse_time_t tempo;
354
        tempo.horas=0;
355
        tempo.minutos=20;
356
        tempo.segundos=20;
357
        char abc[16] = "jogos";
358
        
359
        setDisplay(tempo, 750, abc);
360
        
361
        
362
#endif
363
        
364
#endif
347 365

  
348 366
}

Also available in: Unified diff