Skip to content

Easy to use and efficient I2C Library for the CH32V00x Series of MCUs

License

Notifications You must be signed in to change notification settings

ADBeta/CH32V003_lib_i2c

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

18 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CH32V003_lib_i2c

This is a simplified library for I2C, used with ch32v003fun

Library Description

lib_i2c is a fully featured, but lightweight library for the I2C peripheral on the CH32V003 with the following features:

  • Support for All 3 Alternative Pinouts
  • Support 7-bit Addresses (7-bit aligned, eg 0bx1101000 - 0x68)
  • Support 8-bit Registers
  • Up to 1MHz Bus Frequency has been tested. Can be set higher.
  • Easy to use I2C Error Status'
  • Funcion to Scan the Interface for devices
  • Master Mode Only

TODO

  • Test on other MCU Variants:
    • CH32V003 ✔️

Thanks

Thank you niansa for continued help refining the library

If you want to use ANY pins for I2C, see lib_swi2c


MIT License Copyright (c) 2024 ADBeta

About

Easy to use and efficient I2C Library for the CH32V00x Series of MCUs

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages