ICOMP-UNC / Bit-Masters

MIT License
0 stars 0 forks source link

Added I2C Configuration #6

Closed daviddaguero closed 2 weeks ago

daviddaguero commented 2 weeks ago

This pull request adds the configuration.c and configuration.h files that provide the setup for the I2C1 peripheral on the STM32 microcontroller. The I2C peripheral is configured to operate in standard mode at 100 kHz using GPIO pins for I2C communication.

Changes:

This configuration assumes a system clock of 36 MHz, and adjustments may be necessary for different clock frequencies.

Purpose:

The addition of these files enables the STM32 to communicate over I2C at a standard 100 kHz speed, which can be used for various peripherals, such as external sensors or displays.