- STM32CubeIDE 1.6.0
- STM32CubeMX
- STM32F103C8T6 (Black Pill Board)
Part Name | Image Link | Implementation |
---|---|---|
DFplayer Mini | π | β |
NRF24L01 | π | β |
1602 CLCD With I2C | π | β |
8*8 Dot Matrix With MAX7219 | π | β |
π
DFplayer Mini
- Β stm32f103_fw_module β src β common β hw β include β dfplayer.h
- Β stm32f103_fw_module β src β hw β driver β dfplayer.c
- Β stm32f103_fw_module β src β ap β ap.c β void apDFPlayerTest(void){...}
NRF24L01
- Β stm32f103_fw_module β src β common β hw β include β nrf24l01.h
- Β stm32f103_fw_module β src β hw β driver β nrf24l01.c
- Β stm32f103_fw_module β src β ap β ap.c β void apNRF24L01TxTest(void){...}
- Β stm32f103_fw_module β src β ap β ap.c β void apNRF24L01RxTest(void){...}
1602 CLCD With I2C
- Β stm32f103_fw_module β src β common β hw β include β clcd.h
- Β stm32f103_fw_module β src β hw β driver β clcd.c
- Β stm32f103_fw_module β src β ap β ap.c β void apCLCDTest(void){...}
8*8 Dot Matrix With MAX7219
- Β stm32f103_fw_module β src β common β hw β include β max7219.h
- Β stm32f103_fw_module β src β common β hw β include β max7219_dotmatrix.h
- Β stm32f103_fw_module β src β hw β driver β max7219.c
- Β stm32f103_fw_module β src β hw β driver β max7219_dotmatrix.c
- Β stm32f103_fw_module β src β ap β ap.c β void apDotMatrixTest(void){...}
π
β’ The parameters of uart1 & uart2 are the same
β’ You can change parameter settings in uart.c
π
ν
μ€νΈλ₯Ό νκΈ° μν΄μλ stm32f103_fw_module β src β main.c
μμ μ£Όμμ ν΄μ λλ μ€μ ν΄μΌ ν©λλ€.
#include "main.h"
int main(void)
{
hwInit();
apInit();
/* Choose Test Function */
apBoardTest();
// apUartTest();
// apGpioTest();
// apDFPlayerTest();
// apNRF24L01RxTest();
// apNRF24L01TxTest();
// apCLCDTest();
// apDotMatrixTest();
return 0;
}
clcd.h
μ max7219.h
μ #defineμμ 0x00~0x0f λΆλΆμ΄ μ€λ³΅λμ΄ μ€λ₯κ° λ°μν©λλ€. λ°λΌμ clcdμ dot matrixλ λμμ ν
μ€νΈν μ μμ΅λλ€. μμͺ½(clcd & dot matrix)μ λμμ ν
μ€νΈνλ €λ©΄ max7219.hμ #define 0x00 ~0x0f λΆλΆμ static constνκ² μ μΈνμ¬ μ¬μ©ν΄μΌν©λλ€.
An error occurs due to overlapping parts 0x00~0x0f in #define of clcd.h
and max7219.h
. Therefore, clcld and dot matrix cannot be tested at the same time.
To test both simultaneously (clcd & dot matrix), you must use the static const declaration of #define 0x00 ~ 0x0f (max7219.h).
νλ‘μ νΈλ₯Ό λΉλν λλ λ€μ κ²½λ‘μ μλ ν΄λλ₯Ό λΉλ λ° λλ²κ·Έ νλͺ©μμ μ μΈν΄μΌ ν©λλ€.
When you build a project, you must exclude folders in the following paths from the build and debug entries:
stm32f411ceu6_fw_module β src β lib β Core
π
8x8 Dot Matrix : https://github.com/eziya/STM32_HAL_MAX7219_8x8_MATRIX