【NUCLEO- STM32L496ZGT6 Review】IIC+OLED
The previous evaluation report was for usart testing. This film mainly tests IIC. The project was created through CUBEMX and developed based on the HAL library. It mainly drives oled through hardware IIC to achieve text display.
- Hardware resource introduction:
The main control is still STM32L4 development board. The onboard ST-link is used for downloading simulation. This experiment tries the IIC2 interface (PF0, PF1).
- Drive part
The following is the physical connection diagram
- Project structure:
mainly includes startup files, HAL library drivers, peripheral BSP, and some application apps. Modified cubemx pin function and enabled I2C2.
- Routine modification
Mainly added oled driver files and font files.
- After
the IIC test is over, the OLED display is connected, and the next menu switching and display can be carried out, which will serve as a basis for the subsequent control of other devices.
Next, test SPI.
- Attachment: 797641
|