使用vivado2020.2,用zybo板,气压温度湿度传感器Grove-Temp&Humi&Barometer Sensor (BME280),实时时钟日历模块Pmod RTCC,128x32像素单色OLED屏Pmod OLED开发一个软件,要求:利用气压温度湿度传感器测量环境,并和实时日历一起显示在128x32像素单色OLED屏上,我不会创建工程,请详细说明并给出详细的全部代码
时间: 2023-12-06 07:04:51 浏览: 76
温湿度传感器显示在oled上
Verilog 代码(续):
```verilog
1'b1;
#10;
oled_res_n <= 1'b1;
#10;
oled_cs_n <= 1'b1;
#10;
oled_inst.cmd(8'hAE); // Set Display Off
oled_inst.cmd(8'hD5); // Set Display Clock Divide Ratio/Oscillator Frequency
oled_inst.cmd(8'hF0);
oled_inst.cmd(8'hA8); // Set Multiplex Ratio
oled_inst.cmd(8'h1F);
oled_inst.cmd(8'hD3); // Set Display Offset
oled_inst.cmd(8'h00);
oled_inst.cmd(8'h40); // Set Display Start Line
oled_inst.cmd(8'h8D); // Set Charge Pump
oled_inst.cmd(8'h14);
oled_inst.cmd(8'h20); // Set Memory Addressing Mode
oled_inst.cmd(8'h00);
oled_inst.cmd(8'hA1); // Set Segment Re-map
阅读全文