diff --git a/Src/tim.c b/Src/tim.c index 2d7f21a..33a74b5 100644 --- a/Src/tim.c +++ b/Src/tim.c @@ -50,7 +50,7 @@ void MX_TIM3_Init(void) htim3.Instance = TIM3; htim3.Init.Prescaler = 0; htim3.Init.CounterMode = TIM_COUNTERMODE_UP; - htim3.Init.Period = 1800; + htim3.Init.Period = 1800*2; htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; if (HAL_TIM_OC_Init(&htim3) != HAL_OK) { diff --git a/Src/user_main.c b/Src/user_main.c index d02407b..583f091 100644 --- a/Src/user_main.c +++ b/Src/user_main.c @@ -82,7 +82,7 @@ void spread_samples_for_fft() void display_wave() { float wave_y_mult = 0.0078125f; - float relative = 3; + float relative = 1; samples_to_float(); @@ -162,7 +162,7 @@ void user_main() disp_init.SPIx = SPI1; disp = dmtx_init(&disp_init); - dmtx_intensity(disp, 2); + dmtx_intensity(disp, 7); dmtx_clear(disp); dmtx_show(disp);