OLED_I2C.h 769 B

123456789101112131415161718192021
  1. #ifndef __OLED_I2C_H
  2. #define __OLED_I2C_H
  3. #include <stdint.h>
  4. #define OLED_ADDRESS 0x3D //通过调整0R电阻,屏可以0x3C和0x3D两个地址 -- 默认0x3C
  5. void I2C_WriteByte(uint8_t addr,uint8_t data);
  6. void WriteCmd(unsigned char I2C_Command);
  7. void WriteDat(unsigned char I2C_Data);
  8. void OLED_Init(void);
  9. void OLED_SetPos(unsigned char x, unsigned char y);
  10. void OLED_Fill(unsigned char fill_Data);
  11. void OLED_CLS(void);
  12. void OLED_ON(void);
  13. void OLED_OFF(void);
  14. void OLED_ShowStr(unsigned char x, unsigned char y, unsigned char ch[], unsigned char TextSize);
  15. void OLED_ShowCN(unsigned char x, unsigned char y, unsigned char N);
  16. void OLED_DrawBMP(unsigned char x0,unsigned char y0,unsigned char x1,unsigned char y1,unsigned char BMP[]);
  17. #endif