Separate home and code
This commit is contained in:
		
							parent
							
								
									af54972ca9
								
							
						
					
					
						commit
						bb64d073a6
					
				
							
								
								
									
										14
									
								
								c/src/p2fa.c
									
									
									
									
									
								
							
							
						
						
									
										14
									
								
								c/src/p2fa.c
									
									
									
									
									
								
							@ -28,7 +28,16 @@ void Handler(int sigNum) {
 | 
				
			|||||||
    exit(0);
 | 
					    exit(0);
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
int draw() {
 | 
					void home(UWORD *blackImage) {
 | 
				
			||||||
 | 
					    Paint_NewImage(blackImage, EPD_2in13_V4_WIDTH, EPD_2in13_V4_HEIGHT, 0, WHITE);
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					void code(UWORD *blackImage) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					int drawLoop() {
 | 
				
			||||||
    if (DEV_Module_Init() != 0) {
 | 
					    if (DEV_Module_Init() != 0) {
 | 
				
			||||||
        return -1;
 | 
					        return -1;
 | 
				
			||||||
    }
 | 
					    }
 | 
				
			||||||
@ -44,7 +53,6 @@ int draw() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    while(1) {
 | 
					    while(1) {
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 | 
					 | 
				
			||||||
        Paint_NewImage(BlackImage, EPD_2in13_V4_WIDTH, EPD_2in13_V4_HEIGHT, 90, WHITE);
 | 
					        Paint_NewImage(BlackImage, EPD_2in13_V4_WIDTH, EPD_2in13_V4_HEIGHT, 90, WHITE);
 | 
				
			||||||
        EPD_2in13_V4_Init();
 | 
					        EPD_2in13_V4_Init();
 | 
				
			||||||
        Paint_SelectImage(BlackImage);
 | 
					        Paint_SelectImage(BlackImage);
 | 
				
			||||||
@ -102,7 +110,7 @@ int main() {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
    loadConfigs();
 | 
					    loadConfigs();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    draw();
 | 
					    drawLoop();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
    return 0;
 | 
					    return 0;
 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
		Loading…
	
		Reference in New Issue
	
	Block a user