STM32f103 通过I2C显示字符到OLED屏幕上

上传者: nickyhubin | 上传时间: 2021-03-19 21:11:03 | 文件大小: 375KB | 文件类型: ZIP
*1. void I2C_Configuration(void) -- 配置CPU的硬件I2C * 2. void I2C_WriteByte(uint8_t addr,uint8_t data) -- 向寄存器地址写一个byte的数据 * 3. void WriteCmd(unsigned char I2C_Command) -- 写命令 * 4. void WriteDat(unsigned char I2C_Data) -- 写数据 * 5. void OLED_Init(void) -- OLED屏初始化 * 6. void OLED_SetPos(unsigned char x, unsigned char y) -- 设置起始点坐标 * 7. void OLED_Fill(unsigned char fill_Data) -- 全屏填充 * 8. void OLED_CLS(void) -- 清屏 * 9. void OLED_ON(void) -- 唤醒 * 10. void OLED_OFF(void) -- 睡眠 * 11. void OLED_ShowStr(unsigned char x, unsigned char y, unsigned char ch[], unsigned char TextSize) -- 显示字符串(字体大小有6*8和8*16两种) * 12. void OLED_ShowCN(unsigned char x, unsigned char y, unsigned char N) -- 显示中文(中文需要先取模,然后放到codetab.h中) * 13. void OLED_DrawBMP(unsigned char x0,unsigned char y0,unsigned char x1,unsigned char y1,unsigned char BMP[]) -- BMP图片

文件下载

资源详情

[{"title":"( 99 个子文件 375KB ) STM32f103 通过I2C显示字符到OLED屏幕上","children":[{"title":"FWLIB","children":[{"title":"inc","children":[{"title":"stm32f10x_bkp.h <span style='color:#111;'> 7.38KB </span>","children":null,"spread":false},{"title":"stm32f10x_usart.h <span style='color:#111;'> 16.16KB </span>","children":null,"spread":false},{"title":"stm32f10x_exti.h <span style='color:#111;'> 6.66KB </span>","children":null,"spread":false},{"title":"stm32f10x_pwr.h <span style='color:#111;'> 4.28KB </span>","children":null,"spread":false},{"title":"stm32f10x_gpio.h <span style='color:#111;'> 19.70KB </span>","children":null,"spread":false},{"title":"stm32f10x_dac.h <span style='color:#111;'> 14.88KB </span>","children":null,"spread":false},{"title":"stm32f10x_i2c.h <span style='color:#111;'> 29.33KB </span>","children":null,"spread":false},{"title":"stm32f10x_sdio.h <span style='color:#111;'> 21.35KB </span>","children":null,"spread":false},{"title":"stm32f10x_rcc.h <span style='color:#111;'> 29.74KB </span>","children":null,"spread":false},{"title":"stm32f10x_cec.h <span style='color:#111;'> 6.42KB </span>","children":null,"spread":false},{"title":"stm32f10x_dma.h <span style='color:#111;'> 20.27KB </span>","children":null,"spread":false},{"title":"stm32f10x_dbgmcu.h <span style='color:#111;'> 3.73KB </span>","children":null,"spread":false},{"title":"stm32f10x_crc.h <span style='color:#111;'> 2.11KB </span>","children":null,"spread":false},{"title":"stm32f10x_rtc.h <span style='color:#111;'> 3.77KB </span>","children":null,"spread":false},{"title":"stm32f10x_tim.h <span style='color:#111;'> 51.20KB </span>","children":null,"spread":false},{"title":"stm32f10x_adc.h <span style='color:#111;'> 21.18KB </span>","children":null,"spread":false},{"title":"stm32f10x_can.h <span style='color:#111;'> 26.91KB </span>","children":null,"spread":false},{"title":"stm32f10x_wwdg.h <span style='color:#111;'> 2.90KB </span>","children":null,"spread":false},{"title":"stm32f10x_fsmc.h <span style='color:#111;'> 26.38KB </span>","children":null,"spread":false},{"title":"misc.h <span style='color:#111;'> 8.77KB </span>","children":null,"spread":false},{"title":"stm32f10x_iwdg.h <span style='color:#111;'> 3.74KB </span>","children":null,"spread":false},{"title":"stm32f10x_spi.h <span style='color:#111;'> 17.31KB </span>","children":null,"spread":false},{"title":"stm32f10x_flash.h <span style='color:#111;'> 24.85KB </span>","children":null,"spread":false}],"spread":false},{"title":"src","children":[{"title":"stm32f10x_dac.c <span style='color:#111;'> 18.64KB </span>","children":null,"spread":false},{"title":"stm32f10x_flash.c <span style='color:#111;'> 61.08KB </span>","children":null,"spread":false},{"title":"stm32f10x_rtc.c <span style='color:#111;'> 8.40KB </span>","children":null,"spread":false},{"title":"stm32f10x_pwr.c <span style='color:#111;'> 8.55KB </span>","children":null,"spread":false},{"title":"stm32f10x_sdio.c <span style='color:#111;'> 28.25KB </span>","children":null,"spread":false},{"title":"stm32f10x_rcc.c <span style='color:#111;'> 50.07KB </span>","children":null,"spread":false},{"title":"stm32f10x_iwdg.c <span style='color:#111;'> 4.80KB </span>","children":null,"spread":false},{"title":"stm32f10x_i2c.c <span style='color:#111;'> 44.71KB </span>","children":null,"spread":false},{"title":"stm32f10x_wwdg.c <span style='color:#111;'> 5.60KB </span>","children":null,"spread":false},{"title":"stm32f10x_bkp.c <span style='color:#111;'> 8.26KB </span>","children":null,"spread":false},{"title":"stm32f10x_exti.c <span style='color:#111;'> 6.80KB </span>","children":null,"spread":false},{"title":"stm32f10x_tim.c <span style='color:#111;'> 106.60KB </span>","children":null,"spread":false},{"title":"stm32f10x_dbgmcu.c <span style='color:#111;'> 5.03KB </span>","children":null,"spread":false},{"title":"stm32f10x_dma.c <span style='color:#111;'> 28.91KB </span>","children":null,"spread":false},{"title":"stm32f10x_spi.c <span style='color:#111;'> 29.52KB </span>","children":null,"spread":false},{"title":"stm32f10x_can.c <span style='color:#111;'> 44.05KB </span>","children":null,"spread":false},{"title":"stm32f10x_fsmc.c <span style='color:#111;'> 34.65KB </span>","children":null,"spread":false},{"title":"stm32f10x_crc.c <span style='color:#111;'> 3.27KB </span>","children":null,"spread":false},{"title":"misc.c <span style='color:#111;'> 6.88KB </span>","children":null,"spread":false},{"title":"stm32f10x_cec.c <span style='color:#111;'> 11.38KB </span>","children":null,"spread":false},{"title":"stm32f10x_adc.c <span style='color:#111;'> 46.09KB </span>","children":null,"spread":false},{"title":"stm32f10x_usart.c <span style='color:#111;'> 37.41KB </span>","children":null,"spread":false},{"title":"stm32f10x_gpio.c <span style='color:#111;'> 22.68KB </span>","children":null,"spread":false}],"spread":false}],"spread":true},{"title":"CMSIS","children":[{"title":"core_cm3.h <span style='color:#111;'> 83.71KB </span>","children":null,"spread":false},{"title":"stm32f10x.h <span style='color:#111;'> 619.08KB </span>","children":null,"spread":false},{"title":"Release_Notes.html <span style='color:#111;'> 25.68KB </span>","children":null,"spread":false},{"title":"system_stm32f10x.c <span style='color:#111;'> 35.70KB </span>","children":null,"spread":false},{"title":"core_cm3.c <span style='color:#111;'> 16.87KB </span>","children":null,"spread":false},{"title":"system_stm32f10x.h <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"startup","children":[{"title":"iar","children":[{"title":"startup_stm32f10x_md_vl.s <span style='color:#111;'> 13.28KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_hd.s <span style='color:#111;'> 15.85KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_ld.s <span style='color:#111;'> 12.35KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_xl.s <span style='color:#111;'> 16.24KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_cl.s <span style='color:#111;'> 16.24KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_hd_vl.s <span style='color:#111;'> 15.31KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_ld_vl.s <span style='color:#111;'> 12.65KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_md.s <span style='color:#111;'> 12.61KB </span>","children":null,"spread":false}],"spread":true},{"title":"arm","children":[{"title":"startup_stm32f10x_md_vl.s <span style='color:#111;'> 13.74KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_hd.s <span style='color:#111;'> 15.14KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_ld.s <span style='color:#111;'> 12.09KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_xl.s <span style='color:#111;'> 15.58KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_cl.s <span style='color:#111;'> 15.40KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_hd_vl.s <span style='color:#111;'> 15.32KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_ld_vl.s <span style='color:#111;'> 13.34KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_md.s <span style='color:#111;'> 12.47KB </span>","children":null,"spread":false}],"spread":true},{"title":"gcc_ride7","children":[{"title":"startup_stm32f10x_md_vl.s <span style='color:#111;'> 10.80KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_hd.s <span style='color:#111;'> 12.85KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_ld.s <span style='color:#111;'> 9.58KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_xl.s <span style='color:#111;'> 12.95KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_cl.s <span style='color:#111;'> 12.77KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_hd_vl.s <span style='color:#111;'> 12.19KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_ld_vl.s <span style='color:#111;'> 10.31KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_md.s <span style='color:#111;'> 10.03KB </span>","children":null,"spread":false}],"spread":true},{"title":"TrueSTUDIO","children":[{"title":"startup_stm32f10x_md_vl.s <span style='color:#111;'> 10.50KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_hd.s <span style='color:#111;'> 12.30KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_ld.s <span style='color:#111;'> 9.60KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_xl.s <span style='color:#111;'> 12.94KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_cl.s <span style='color:#111;'> 12.31KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_hd_vl.s <span style='color:#111;'> 11.95KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_ld_vl.s <span style='color:#111;'> 10.03KB </span>","children":null,"spread":false},{"title":"startup_stm32f10x_md.s <span style='color:#111;'> 10.03KB </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true},{"title":"demo.uvproj <span style='color:#111;'> 20.49KB </span>","children":null,"spread":false},{"title":"README.md <span style='color:#111;'> 453B </span>","children":null,"spread":false},{"title":"USER","children":[{"title":"stm32f10x_conf.h <span style='color:#111;'> 3.18KB </span>","children":null,"spread":false},{"title":"stm32f10x_it.c <span style='color:#111;'> 4.30KB </span>","children":null,"spread":false},{"title":"Release_Notes.html <span style='color:#111;'> 29.41KB </span>","children":null,"spread":false},{"title":"system_stm32f10x.c <span style='color:#111;'> 35.70KB </span>","children":null,"spread":false},{"title":"stm32f10x_it.h <span style='color:#111;'> 2.04KB </span>","children":null,"spread":false},{"title":"main.c <span style='color:#111;'> 1.26KB </span>","children":null,"spread":false}],"spread":true},{"title":"Lib","children":[{"title":"sys","children":[{"title":"sys.c <span style='color:#111;'> 2.74KB </span>","children":null,"spread":false},{"title":"sys.h <span style='color:#111;'> 2.23KB </span>","children":null,"spread":false}],"spread":true},{"title":"delay","children":[{"title":"delay.c <span style='color:#111;'> 896B </span>","children":null,"spread":false},{"title":"delay.h <span style='color:#111;'> 144B </span>","children":null,"spread":false}],"spread":true},{"title":"oled","children":[{"title":"codetab.h <span style='color:#111;'> 19.24KB </span>","children":null,"spread":false},{"title":"oled_i2c.c <span style='color:#111;'> 8.45KB </span>","children":null,"spread":false},{"title":"oled_i2c.h <span style='color:#111;'> 801B </span>","children":null,"spread":false}],"spread":true}],"spread":true}],"spread":true}]

评论信息

免责申明

【只为小站】的资源来自网友分享,仅供学习研究,请务必在下载后24小时内给予删除,不得用于其他任何用途,否则后果自负。基于互联网的特殊性,【只为小站】 无法对用户传输的作品、信息、内容的权属或合法性、合规性、真实性、科学性、完整权、有效性等进行实质审查;无论 【只为小站】 经营者是否已进行审查,用户均应自行承担因其传输的作品、信息、内容而可能或已经产生的侵权或权属纠纷等法律责任。
本站所有资源不代表本站的观点或立场,基于网友分享,根据中国法律《信息网络传播权保护条例》第二十二条之规定,若资源存在侵权或相关问题请联系本站客服人员,zhiweidada#qq.com,请把#换成@,本站将给予最大的支持与配合,做到及时反馈和处理。关于更多版权及免责申明参见 版权及免责申明