52.TFT_LCD液晶屏字符显示

news2024/11/20 15:28:28

(1)实验目标:在5寸显示屏(800 * 480 @ 60)中央显示汉字(黄色),且背景颜色为青色。

(2)代码编写:

  • tft_ctrl模块:
module tft_ctrl(
    input               clk_33M         ,
    input               reset_n         ,
    input   [15:0]      data_in         ,
                                        
    output  [9:0]       hang            ,
    output  [9:0]       lie             ,
    output              hsync           ,
    output              vsync           ,
    output  [15:0]      rgb_tft         ,
    output              tft_bl          ,
    output              tft_clk         ,
    output              tft_DE          
    
);
    
    reg     [10:0]      hang_cnt        ;
    reg     [9:0]       v_cnt           ;

    wire                data_vaild      ;
    
    parameter H_SYNC        =   128     ;
    parameter H_BACK        =   88      ;
    parameter H_VAILD       =   800     ;
    parameter H_FRONT       =   40      ;
    parameter H_TOTAL       =   1056    ;
    
    parameter V_SYNC        =   2       ;
    parameter V_BACK        =   33      ;
    parameter V_VAILD       =   480     ;
    parameter V_FRONT       =   10      ;
    parameter V_TOTAL       =   525     ;

//行计数器设计
    always@(posedge clk_33M or negedge reset_n)
        if(!reset_n)
            hang_cnt <= 11'd0;
        else if(hang_cnt == H_TOTAL - 11'd1)
            hang_cnt <= 11'd0;
        else 
            hang_cnt <= hang_cnt + 11'd1;
            
//场计数器设计
    always@(posedge clk_33M or negedge reset_n)
        if(!reset_n)
            v_cnt <= 10'd0;
        else if ((v_cnt == V_TOTAL - 10'd1) && (hang_cnt == H_TOTAL - 11'd1))
            v_cnt <= 10'd0;
        else if(hang_cnt == H_TOTAL - 11'd1)
            v_cnt <= v_cnt + 10'd1;
        else 
            v_cnt <= v_cnt;

//数据有效信号设计
    assign data_vaild = (hang_cnt >= H_SYNC + H_BACK) && (hang_cnt < H_SYNC + H_BACK + H_VAILD)
                            && (v_cnt >= V_SYNC + V_BACK) && (v_cnt < V_SYNC + V_BACK + V_VAILD);
                            
//行、列信号设计   
    assign hang = ( data_vaild ) ? (hang_cnt - H_SYNC - H_BACK + 10'd1) : 10'd0;
    assign lie  = ( data_vaild ) ? (v_cnt - V_SYNC - V_BACK + 10'd1) : 10'd0;    
    
//行同步、场同步信号设计
    assign hsync = (hang_cnt >= H_SYNC);
    assign vsync = (v_cnt >= V_SYNC);
    
//rgb_tft、tft_bl、tft_clk、tft_DE信号设计
    assign rgb_tft = (data_vaild) ? data_in : 16'd0;
    assign tft_bl  = 1'd1;
    assign tft_clk = clk_33M;
    assign tft_DE  = data_vaild;

endmodule
  • char_gen模块:
module char_gen(
	input 					clk_33M	,
	input						reset_n	,
	input		[9:0]			hang		,
	input		[9:0]			lie		,
	
	output   reg	[15:0]data		
	
);

	wire						char_dis		;
	wire		[9:0]			char_x		;
	wire		[9:0]			char_y		;

//位宽为384的寄存器,深度为96	
	reg 		[575:0]		char_r[95:0];

//色彩定义	
	parameter CYAN      =   16'h07F9;
	parameter YELLOW    =   16'hFFE0;
	
	
//字符有效显示区域信号
	assign char_dis = (hang >= 112)&&(hang < 688)&&(lie >= 193)&&(lie < 289);
	
//字符显示区域坐标信号
	assign char_x 	= char_dis ? (hang - 10'd112):10'h3FF	;
	assign char_y 	= char_dis ? (lie	 - 10'd193):10'h3FF	;

//char_r信号赋值
always@(posedge clk_33M )
	begin
		char_r[0]  <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000; 
		char_r[1]  <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[2]  <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[3]  <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[4]  <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[5]  <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000F00000000000000000000000000000000000;
		char_r[6]  <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000FC0000000000000000000000000000000000;
		char_r[7]  <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000700000FE0000000000000000000000000000000000;
		char_r[8]  <= 576'h0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007C0000FE0000000000000000000000000000000000;
		char_r[9]  <= 576'h0000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000007E0000FC0000000000000000000000000000000000;
		char_r[10] <= 576'h00000000000000000000000000000000000C0000000000000000000000000000000000000000000000000000000000000000007E0000F80780000000000000000000000000000000;
		char_r[11] <= 576'h00000000000000000000000000000000000F8000000000000000000000000000000000000000000000000000000000000000007C0001F0FFC0000000000000000000000000000000;
		char_r[12] <= 576'h00000000000000000000000000000000000FC00000000000000000000001FE0000000000000000000000007FF8000000000000F81F01FFFFC0000000000000000000000000000000;
		char_r[13] <= 576'h00000000000000000000000000000000000FE0000000000000000000001FFF80000000000000000000001FFFFE000000000000FFFF83FFFF00000000000000000000000000000000;
		char_r[14] <= 576'h00000000000000000000000000000000000FC000000000000000000001FFFF800000000000000000000FFFFFFF000000000001FFFF83C00000000000000000000000000000000000;
		char_r[15] <= 576'h000000000000FF800000000000000000000FC00000000000000000007FFFFE00000000000000000007FFFFFFFF800000000001FFFE07800000000000000000000000000000000000;
		char_r[16] <= 576'h00000000003FFFC0000000000000001E001F8000000000000000003FFFFFC0000000000000000003FFFFFFFFFF800000000003E0000F000000000000000000000000000000000000;
		char_r[17] <= 576'h000000001FFFFFF000000000000001FF001F000000000000000000FFFFF8000000000000000007FFFFFFFE000C000000000003C0000E1E0000000000000000000000000000000000;
		char_r[18] <= 576'h0000003FFFFFFFE00000000000001FFF001F0000000000000000007FFE0000000000000001FFFFFFFFE00000000000000000079C001C1FC000000000000000000000000000000000;
		char_r[19] <= 576'h00000FFFFFFFFF80000000000001FFFE003E0000000000000000001F3E0000000000000000FFFFFFDF8000000000000000000F1F00380FE000000000000000000000000000000000;
		char_r[20] <= 576'h000007FFFFFFF00000000000001FFFF8003E000000000000000000003E0000000000000000FFFFF00FC000000000000000001E0FC07007E000000000000000000000000000000000;
		char_r[21] <= 576'h000001FFFFF800000000000000FFFFC0003C000000000000000000003F00000000000000003FFC000FC000000000000000003C0FC06003E000000000000000000000000000000000;
		char_r[22] <= 576'h0000007FF80000000000000000FFFC00007C000000000000000000003F00000000000000000F000007E000000000000000003807C08001E000000000000000000000000000000000;
		char_r[23] <= 576'h000000000000000000000000001F78000078000000000000000000003F000000000000000000000007E000000000000000007003C000000000000000000000000000000000000000;
		char_r[24] <= 576'h00000000000000000000000000003C0000F81C0000000000000000003F000000000000000000000007C00000000000000000E00000003E0000000000000000000000000000000000;
		char_r[25] <= 576'h00000000000000000000000000003E0000F03F0000000000000000003F000000000000000000000007C00000000000000001C0000003FF0000000000000000000000000000000000;
		char_r[26] <= 576'h00000000000000000000000000003F0000F0FFC000000000000000003E000000000000000000000007C00000000000000003000000FFFFC000000000000000000000000000000000;
		char_r[27] <= 576'h00000000000000000000000000003E0001E7FFC000000000000000003E000000000000000000000003C000000000000000000003FFFFFFE000000000000000000000000000000000;
		char_r[28] <= 576'h00000000000000000000000000001E0001FFFFC000000000000000003E000000000000000000000003C0000000000000000001FFFFE03FC000000000000000000000000000000000;
		char_r[29] <= 576'h00000000000000000000000000001E0003FE3F8000000000000000003E000000000000000000000003C0000000000000000000FFFE003F8000000000000000000000000000000000;
		char_r[30] <= 576'h00000000000000000000000000001E0003803F0000000000000000003E000FE0000000000000000003C00000000000000000003C07803F0000000000000000000000000000000000;
		char_r[31] <= 576'h00000000000000000000000000001E0007803E0000000000000000003E01FFF8000000000000000003C00000000000000000000007C03E0000000000000000000000000000000000;
		char_r[32] <= 576'h00000000000000000000000000001E0007003E0000000000000000003E1FFFFC000000000000000003C00000000000000000000007C03C0000000000000000000000000000000000;
		char_r[33] <= 576'h00000000000000000000000000001E380E003C0000000000000000003FFFFFFC000000000000000003C00000000000000000000007C03C0000000000000000000000000000000000;
		char_r[34] <= 576'h00000000000000000000000000001EFC0E007C000000000000000000FFFFFFC0000000000000000003FE000000000000000000000780380000000000000000000000003FF8000000;
		char_r[35] <= 576'h00000000000000000000000000001FFC1C007C00000000000000003FFFFF0000000000000000000003FFF80000000000000000000783FC00000000000000000000000FFFFE000000;
		char_r[36] <= 576'h00000000001FFC000000000000007FF8180078000000000000007FFFFFC00000000000000000000003DFFF00000000000000000007FFFE0000000000000000000003FFFFFF800000;
		char_r[37] <= 576'h0000000007FFFF00000000000007FFE03000F800000000000000FFFFFC000000000000000000000003C7FFC00000000000003C01FFFFFC00000000000000000001FFFFFFFFC00000;
		char_r[38] <= 576'h00000001FFFFFF0000000000003FFF006000F0000000000000003FFE3C000000000000000000000003C1FFE00000000000001FFFFFE000000000000000000000FFFFFFFFFFE00000;
		char_r[39] <= 576'h000003FFFFFFFF0000000000007FFE000001F0000000000000000FC03C000000000000000000000003C0FFE00000000000001FFF8780000000000000000001FFFFFFFFFFFFE00000;
		char_r[40] <= 576'h000003FFFFFFF0000000000000001E000001F00000000000000000007C000000000000000000000003C03FF00000000000000E00078000000000000003FFFFFFFFFFC00003800000;
		char_r[41] <= 576'h0000007FFF8000000000000000001E000001E00000000000000000007C000000000000000000000003C00FF00000000000000E00078000000000000001FFFFFFFC00000000000000;
		char_r[42] <= 576'h00000007800000000000000000001E000003E00000000000000000007C000000000000000000000003C003F00000000000000E00078000FF0000000000FFFFFC0000000000000000;
		char_r[43] <= 576'h00000000000000000000000000001E000003C00000000000000000007E000000000000000000000003C000F00000000000000E0007801FFFC0000000007FFF000000000000000000;
		char_r[44] <= 576'h00000000000000000000000000001E000007C00000000000000000007F000000000000000000000003C000000000000000000E00078FFFFFE0000000001FE0000000000000000000;
		char_r[45] <= 576'h00000000000000000000000000001E000007C0000000000000000000FB800000000000000000000003C000000000000000000E0007FFFF1FF0000000000000000000000000000000;
		char_r[46] <= 576'h00000000000000000000000000001E00000FE0000000000000000000F9C00000000000000000000003C000000000000000001E01FFFF0007F0000000000000000000000000000000;
		char_r[47] <= 576'h00000000000000000000000000001E00001F70000000000000000000F0E00000000000000000000003C000000000000000001FFFFF800007E0000000000000000000000000000000;
		char_r[48] <= 576'h00000000000000000000000000001E00801E38000000000000000001F0F00000000000000000000003C000000000000000003FFFDF800007C0000000000000000000000000000000;
		char_r[49] <= 576'h00000000000000000000000000001E0F003E1C000000000000000001F0780000000000000000000003C000000000000000007FF03F800007C0000000000000000000000000000000;
		char_r[50] <= 576'h00000000000000000000000000001E3E007C0E000000000000000003E03C0000000000000000000003C000000000000000007F007F80000780000000000000000000000000000000;
		char_r[51] <= 576'h00000000000000000000000000001FF800F80E000000000000000003E01E0000000000000000000003C000000000000000007C00FF80000780000000000000000000000000000000;
		char_r[52] <= 576'h00000000000000000000000000001FE000F807000000000000000007C01F0000000000000000000007C000000000000000003000FF80000F80000000000000000000000000000000;
		char_r[53] <= 576'h00000000000000000000000000007FC001F00380000000000000000F800F8000000000000000000007C000000000000000000001F780000F00000000000000000000000000000000;
		char_r[54] <= 576'h0000000000000000000000000001FF0003E003C0000000000000000F8007C000000000000000000007C000000000000000000003E780001F00000000000000000000000000000000;
		char_r[55] <= 576'h000000000000000000000000000FFC0007C001F0000000000000001F0003E000000000000000000007C000000000000000000007C780601F00000000000000000000000000000000;
		char_r[56] <= 576'h00000000000000FFFE00000001FFF0000F8000F8000000000000003E0001F000000000000000000007C00000000000000000000F87803FFF00000000000000000000000000000000;
		char_r[57] <= 576'h000000000000FFFFFF8000000FFFC0001F0000FC000000000000007E0001FC00000000000000000007C00000000000000000001F07800FFE00000000000000000000000000000000;
		char_r[58] <= 576'h0000000001FFFFFFFFC0000007FF00003E00007F00000000000000FC0000FE00000000000000000007C00000000000000000003E078007FE00000000000000000000000000000000;
		char_r[59] <= 576'h00000003FFFFFFFFFFE0000003FE00007800003F80000000000001F800007F00000000000000000007C0000000000000000000FC078003FC00000000000000000000000000000000;
		char_r[60] <= 576'h00000FFFFFFFFFFFFFF0000000F80001F000003FE0000000000003F000003FC0000000000000000007C0000000000000000001F8078001FC00000000000000000000000000000000;
		char_r[61] <= 576'h003FFFFFFFFC0000FFF0000000300003E000001FF800000000000FE000001FE0000000000000000007C0000000000000000003E0078001F800000000000000000000000000000000;
		char_r[62] <= 576'h1FFFFFFFC000000000E00000000000078000000FFE00000000001F8000000FF8000000000000000007C0000000000000000007C0078000F000000000000000000000000000000000;
		char_r[63] <= 576'h0FFFFFC000000000000000000000001E00000007FFC0000000007F0000000FFC00000000000000000FC000000000000000001F00078000E000000000000000000000000000000000;
		char_r[64] <= 576'h07FFF00000000000000000000000003800000007FFF800000001FC00000007FF00000000000000000FC000000000000000003E000780000000000000000000000000000000000000;
		char_r[65] <= 576'h01FC00000000000000000000000000E000000001FFF000000007F000000003FFE0000000000000000F800000000000000000F8000780000000000000000000000000000000000000;
		char_r[66] <= 576'h000000000000000000000000000000000000000000000000003FC000000001FFFC000000000000000F800000000000000001E0000780000000000000000000000000000000000000;
		char_r[67] <= 576'h00000000000000000000000000000000000000000000000000FC0000000000FFFFC00000000000001F80000000000000000780000F80000000000000000000000000000000000000;
		char_r[68] <= 576'h000000000000000000000000000000000000000000000000000000000000007FFFE00000000000001F80000000000000001C00000F80000000000000000000000000000000000000;
		char_r[69] <= 576'h000000000000000000000000000000000000000000000000000000000000001FFFE00000000000000F80000000000000000000000F80000000000000000000000000000000000000;
		char_r[70] <= 576'h0000000000000000000000000000000000000000000000000000000000000003E0000000000000000F80000000000000000000000F80000000000000000000000000000000000000;
		char_r[71] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000F80000000000000000000000F80000000000000000000000000000000000000;
		char_r[72] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000780000000000000000000000F00000000000000000000000000000000000000;
		char_r[73] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000700000000000000000000000F00000000000000000000000000000000000000;
		char_r[74] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000300000000000000000000000700000000000000000000000000000000000000;
		char_r[75] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000700000000000000000000000000000000000000;
		char_r[76] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000200000000000000000000000000000000000000;
		char_r[77] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[78] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[79] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[80] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[81] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[82] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[83] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
      char_r[84] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[85] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[86] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[87] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[88] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[89] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[90] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[91] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[92] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[93] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[94] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
		char_r[95] <= 576'h000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000000;
	end
		
//data信号输出
always@(posedge clk_33M or negedge reset_n)
	if(!reset_n)
		data <= CYAN ;
	else if(!char_dis)
		data <= CYAN ;
	else if(char_r[char_y][10'd575-char_x] == 1'd1)   //让扫描从高位到低位
		data <= YELLOW;
	else 
		data <= CYAN ;
		
endmodule
  • 顶层模块:
module tft_char(
    input           clk         ,
    input           reset_n     ,
                                
    output          hsync       ,
    output          vsync       ,
    output  [15:0]  rgb_tft     ,
    output          tft_bl      ,
    output          tft_clk     ,
    output          tft_DE      

);

    wire            locked      ;
    wire            clk_33M     ;
    wire    [15:0]  data_in     ;
    wire    [9:0]   hang        ;
    wire    [9:0]   lie         ;
    wire    [15:0]  data        ;
    
    assign  data_in = data      ;

pll_33M	pll_33M_inst (
	.areset ( ~reset_n ),
	.inclk0 ( clk ),
	.c0 ( clk_33M ),
	.locked ( locked )
);
	
tft_ctrl    tft_ctrl_inst
(
    .clk_33M         (clk_33M   ),
    .reset_n         (locked    ),
    .data_in         (data_in   ),

    .hang            (hang      ),
    .lie             (lie       ),
    .hsync           (hsync     ),
    .vsync           (vsync     ),
    .rgb_tft         (rgb_tft   ),
    .tft_bl          (tft_bl    ),
    .tft_clk         (tft_clk   ),
    .tft_DE          (tft_DE    )
);

char_gen 	char_gen(
	.clk_33M	(clk_33M),
	.reset_n	(locked),
	.hang		(hang),
	.lie		(lie),
	
	.data		(data)
	
);

endmodule

(2)引脚绑定:

(3)实验现象:

本文来自互联网用户投稿,该文观点仅代表作者本人,不代表本站立场。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如若转载,请注明出处:http://www.coloradmin.cn/o/1954765.html

如若内容造成侵权/违法违规/事实不符,请联系多彩编程网进行投诉反馈,一经查实,立即删除!

相关文章

电子电气架构---域控制器的软硬件趋势

我是穿拖鞋的汉子,魔都中坚持长期主义的汽车电子工程师。 老规矩,分享一段喜欢的文字,避免自己成为高知识低文化的工程师: 屏蔽力是信息过载时代一个人的特殊竞争力,任何消耗你的人和事,多看一眼都是你的不对。非必要不费力证明自己,无利益不试图说服别人,是精神上的节…

TiDB-从0到1-sync-diff-inspector数据校验工具

TiDB从0到1系列 TiDB-从0到1-体系结构TiDB-从0到1-分布式存储TiDB-从0到1-分布式事务TiDB-从0到1-MVCCTiDB-从0到1-部署篇TiDB-从0到1-配置篇TiDB-从0到1-集群扩缩容TiDB-从0到1-数据导出导入TiDB-从0到1-BR工具 一、sync-diff-inspector工具 sync-diff-inspector是TiDB原生…

【北京迅为】《i.MX8MM嵌入式Linux开发指南》-第三篇 嵌入式Linux驱动开发篇-第六十二章 定时器按键消抖实验

i.MX8MM处理器采用了先进的14LPCFinFET工艺&#xff0c;提供更快的速度和更高的电源效率;四核Cortex-A53&#xff0c;单核Cortex-M4&#xff0c;多达五个内核 &#xff0c;主频高达1.8GHz&#xff0c;2G DDR4内存、8G EMMC存储。千兆工业级以太网、MIPI-DSI、USB HOST、WIFI/BT…

详解Mysql InnoDB引擎 04

文章目录 1. InnoDB 简介2. 逻辑存储结构2.1 表空间 idb文件2.2 段2.3 区 1M2.4 页 16KB2.5 行 3. 架构3.1 内存结构3.1.1 Buffer Pool 缓冲池3.1.2 Change Buffer 更改缓冲区3.1.3 Adaptive Hash Index3.1.4 Log Buffer 3.2 磁盘结构 4. 后台线程5. 事务原理5.1 redo log 重做…

Pytorch深度学习实践(9)卷积神经网络

卷积神经网络 全连接神经网络 神经网络中全部是线性模型&#xff0c;是由线性模型串联起来的 全连接网络又叫全连接层 卷积神经网络 在全连接神经网络中&#xff0c;由于输入必须是一维向量&#xff0c;因此在处理图像时必须要对图像矩阵进行拉伸成一维的形式&#xff0c;…

视觉巡线小车(STM32+OpenMV)——总结

文章目录 目录 文章目录 前言 一、效果展示 二、完整流程 1、STM32CubeMX配置 2、Keil编辑 3、硬件接线 4、参数调试 5、图像处理调试 三、总结 前言 基于前面的系列文章&#xff0c;已基本介绍完了基于STM32OpenMV的视觉巡线小车&#xff0c;本文将以小编自己的小车…

BACnet物联网关BL103:Modbus协议转BACnet/MSTP

随着物联网技术在楼宇自动化与暖通控制系统中的迅猛发展&#xff0c;构建一种既经济高效又高度可靠的协议转换物联网关成为了不可或缺的核心硬件组件。在此背景下&#xff0c;我们钡铼特别推荐一款主流的BAS&#xff08;楼宇自动化系统&#xff09;与BACnet物联网关——BL103&a…

小世界特性解析——聚类系数与平均路径长度的奥秘

小世界特性解析——聚类系数与平均路径长度的奥秘 小世界特性的核心衡量指标 小世界特性&#xff0c;这一复杂网络中的重要概念&#xff0c;主要通过两个关键指标来衡量&#xff1a;聚类系数和平均路径长度。这两个指标共同揭示了网络结构的紧密程度和信息传播的效率。 聚类…

echarts没数据的时候,页面显示暂无数据

echarts没数据的时候&#xff0c;页面显示暂无数据 给个if判断 let option{} if(data.length0){ //没有数据或者数据不合法,显示暂无数据option {title: {text: 暂无数据,x: center,y: center,textStyle: {fontFamily: Manteka,fontSize: 12,fontWeight: normal,color: #333…

使用 Copilot 对 OneDrive 文档分享进行摘要

对于大量使用onedrive进行资料分享的用户而言&#xff0c;对分享的文件进行简要说明并提供给对方&#xff0c;是一个基本素养。 在以往&#xff0c;他们只能阅读文件名然后靠回忆进行撰写&#xff0c;或者打开每一个文档通读全文然后再关闭返回并撰写摘要。 当用户在 SharePo…

Java聚合快递小程序对接云洋系统程序app源码

​一场物流效率的革命 引言&#xff1a;物流新时代的序章 在数字化浪潮席卷各行各业的今天&#xff0c;物流行业也迎来了前所未有的变革。为了进一步提升物流效率&#xff0c;优化用户体验&#xff0c;聚合快递系统与云洋系统小程序的对接成为了行业内外关注的焦点。这一创新…

基于JSP的毕业生就业信息管理系统

你好&#xff0c;我是专注于信息系统开发的码农小野&#xff01;如果你对毕业生就业信息管理有需求&#xff0c;欢迎联系我。 开发语言&#xff1a;JSP 数据库&#xff1a;MySQL 技术&#xff1a;JSP技术 SSM框架 工具&#xff1a;Eclipse、Maven、Navicat 系统展示 首页…

登录案例(JAVA)

练习1 package lx2;import java.io.BufferedReader; import java.io.FileNotFoundException; import java.io.FileReader; import java.io.IOException; import java.util.ArrayList; import java.util.Scanner;public class demo1 {/*需求&#xff1a;写一个登陆小案例。步骤…

Hive环境搭建(内置数据库)

实验目的】 1) 了解hive的作用 2) 熟练hive的配置过程&#xff08;内置数据库&#xff09; 【实验原理】 Hive的架构是由Client、Metastore、Driver、Compiler构成&#xff0c;执行流程是编译器可以将一个Hive QL转换成操作符&#xff0c;操作符是Hive中的最小处理单元。…

【BUG】已解决:UnicodeDecodeError: ‘utf-8’ codec can’t decode bytes in position 10

UnicodeDecodeError: ‘utf-8’ codec can’t decode bytes in position 10 目录 UnicodeDecodeError: ‘utf-8’ codec can’t decode bytes in position 10 【常见模块错误】 【解决方案】 欢迎来到英杰社区https://bbs.csdn.net/topics/617804998 欢迎来到我的主页&#x…

torch fbgemm.dll 报错

这里写自定义目录标题 OSError: [WinError 126] The specified module could not be found. Error loading \"c:\\Users\\Noor\\anaconda3\\envs\\DL\\Lib\\site-packages\\torch\\lib\\fbgemm.dll\" or one of its dependencies."https://github.com/lucasg/De…

在VMware创建Ubuntu24

目录 一、创建虚拟机 1. 自定义创建虚拟机 2. 设置虚拟机兼容 3. 选择镜像 4. 命名虚拟机&#xff0c;选择存放位置 5. 处理器配置 6. 内存配置 7. 网络类型配置 8. I/O控制器类型 9. 磁盘配置 10. 完成虚拟机创建 二、Ubuntu安装 1. 进入虚拟机中进行ubuntu的安…

java算法day25

java算法day25 广度优先搜索岛屿数量深搜岛屿数量广搜 广度优先搜索 核心&#xff1a;从起点出发&#xff0c;以起始点为中心一圈一圈进行搜索&#xff0c;一旦遇到终点&#xff0c;记录之前走过的节点就是一条最短路。搜索的方式是上下左右 一张图说明白模拟过程&#xff1…

21.发布确认模式-高级

问题 生产环境中由于一些不明原因&#xff0c;导致rabbitmq重启&#xff0c;在重启的期间生产者消息投递失败&#xff0c;导致消息丢失&#xff0c;需要手动处理恢复。那么如何才能进行rabbitmq的消息可靠性投递&#xff1f;特别是在极端的情况&#xff0c;rabbitmq集群不可用…

从json到protobuf,接口效率的提升

在express开发的前后端调用中&#xff0c;express作为服务端是不二之选&#xff0c;它有一些很好用的body解析器来解析传入数据&#xff1b;而作为请求发起方&#xff0c;axios是非常方便的&#xff0c;这是一个很好的选择&#xff0c;它可以传输多种类型的数据给接收方。 通常…