Presentation : Directory :C:\_MikroC\_MesProjets_MikroC\_LCD_ILLI9341_SPI_Base_18F27K42 MikroC pro 7.60 Projet : PIC18F27K42_UART1_ADC_SPI_LCD_Rond_CGA9A01_2023.mcppi BASE PIC18F27K42 SPI1 Softw Bit bang Port B Speed=1,47MHz Config bit : P18F27K42_Fosc_Interne_64Mhz_w_Heap2500.cfgsch FOSC: 16x4 =64.0 MHz Source : PIC18F27K42_UART1_ADC_SPI_LCD_Rond_CGA9A01__2023-0313.c 18F27K42 UART1, ADC, LCD rond CGA901 SPI OTHERS TFT_CG9A01_SPI_2023.h TFT_CG9A01_SPI_2023.c TFT_Fonts_320x240_ILI9341_2020_11.h Init Memory Manager Total RAM Free = 2410 Taille Maxi Heap = 2410 fin d'init LCD LCD maxX= 239 maxY= 239 Max RAM Buffer into the Lcd =57600 SetBackgroundColor(COLOR_BLACK) Clear_LCD() Put 4 Big Pixels Vert 2x2 Put 4 Pixels Put 4 Big Pixels Orange Draw_Line(30,30,180,180 Blanc Draw_Line(220,10,10,220 Vert Draw_VLine(y1=10,y2=230,x=120 Rouge Draw_HLine(x1=10,x2=230,y=120 Jaune Ecran Noir Affichage BMP Daffy duck 120x120 Clear_LCD() Rectangle_Plein x1=40 y1=60 x2=60 y2=120 rvb=Bleu=0,0,255 Rectangle_Plein x1=60 y1=60 x2=80 y2=120 Blanc Rectangle_Plein x1=80 y1=60 x2=100 y2=120 Rouge Rectangle_Plein x1=120 y1=120 x2=130 y2=130 Jaune Rectangle x1=40 y1=30 x2=90 y2=80 Indigo Rectangle x1=160 y1=160 x2=200 y2=180 Indigo DrawCircle 120,120,40, COLOR_TURQUOISE DrawCircle 120,120,60, COLOR_INDIGO DrawCircle 120,120,80, COLOR_ORANGE DrawCircle 120,120,80, COLOR_YELLOW DrawCircle 120,120,119, COLOR_GOLD FillCircle 120,120,20, COLOR_YELLOW Efface ecran (Noir) Fonte active #1 Taille Font TerminaL6x8 = 677 Param Font : cfont.width= 6 , cfont.height= 8 , cfont.nbrows= 1 , cfont.MaxC= 40 Ecritures sur LCD Presentation YELLOW LCD GC9A101 240x240 65K c WHITE ABCDEFGHIJKLMNOPQRSTUVWXYZ Close Font TerminaL6x8 Efface ecran (Noir) Fonte active #2 Taille Font TerminaL12x16 = 2405 Param Font : cfont.width= 12 , cfont.height= 16 , cfont.nbrows= 2 , cfont.MaxC= 18 Close Font TerminaL12x16 Efface ecran (Noir) Fonte active #3 Numerique Only ! Taille Font Trebuchet_MS13x21= 1045 Param Font : cfont.width= 13 , cfont.height= 21 , cfont.nbrows= 3 , cfont.MaxC= 17 01234567890 Jaune Close Font Trebuchet_MS13x21 Efface ecran (Noir) Fonte active #6 Numerique Only ! Taille Font Arial_Narrow22x32 = 2319 Param Font : cfont.width= 22 , cfont.height= 32 , cfont.nbrows= 4 , cfont.MaxC= 13 !"#$%&'() Cyan * + ,- . / Gold 01234567890 Jaune Close Font Arial_Narrow22x32 Efface ecran (Noir) Fonte active #7 Numerique Only ! Taille Font NI7SEG22x28 = 2319 Param Font : cfont.width= 22 , cfont.height= 28 , cfont.nbrows= 4 , cfont.MaxC= 10 !"#$%&'() Cyan * + ,- . / Gold 01234567890 Jaune 12/03/23 vert Close Font NI7SEG22x28 Efface ecran (Noir) Fonte active #8 Numerique Only ! Taille Font NI7SEG26x35 = 1708 01234567 jaune +.-*.= Vert 12/03/23 Rouge 1234 Bleu Close Font NI7SEG26x35 Simule Montre : Draw_Clock_Face()