Explorar o código

Draw line test ok.

Vladimir N. Shilov hai 1 ano
pai
achega
6bf5f36112
Modificáronse 2 ficheiros con 3 adicións e 5 borrados
  1. 1 2
      lib/lib.mk
  2. 2 3
      main.c

+ 1 - 2
lib/lib.mk

@@ -4,8 +4,7 @@ USERLIB = ./lib
 # List of all the Userlib files
 USERSRC =  $(USERLIB)/st7735/st7735.c \
 	$(USERLIB)/st7735/fonts.c \
-	$(USERLIB)/st7735/liberation_mono_7x10.c \
-	$(USERLIB)/st7735/arial_8_ukr.c
+	$(USERLIB)/st7735/liberation_mono_7x10.c
 #	$(USERLIB)/eeprom/eeprom.c
           
 # Required include directories

+ 2 - 3
main.c

@@ -91,9 +91,8 @@ int main(void) {
   ST7735_Init();
   // draw tests
   ST7735_FillScreen(Black);
-  ST7735_DrawPixel(10, 10, Silver);
-  ST7735_FillRectangle(5, 63, 150, 1);
-  ST7735_FillRectangle(159, 5, 1, 117);
+  ST7735_FillRectangle(ST7735_XSTART, ST7735_HEIGHT/2, ST7735_WIDTH, 1, Green);
+  ST7735_FillRectangle(ST7735_WIDTH/2, ST7735_YSTART, 1, ST7735_HEIGHT, Yellow);
 
   /*
    * Normal main() thread activity.