master
Ondřej Hruška 8 years ago
parent 7d0b139caa
commit 39296f1b8a
  1. 2
      Src/tim.c
  2. 4
      Src/user_main.c

@ -50,7 +50,7 @@ void MX_TIM3_Init(void)
htim3.Instance = TIM3; htim3.Instance = TIM3;
htim3.Init.Prescaler = 0; htim3.Init.Prescaler = 0;
htim3.Init.CounterMode = TIM_COUNTERMODE_UP; htim3.Init.CounterMode = TIM_COUNTERMODE_UP;
htim3.Init.Period = 1800; htim3.Init.Period = 1800*2;
htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1; htim3.Init.ClockDivision = TIM_CLOCKDIVISION_DIV1;
if (HAL_TIM_OC_Init(&htim3) != HAL_OK) if (HAL_TIM_OC_Init(&htim3) != HAL_OK)
{ {

@ -82,7 +82,7 @@ void spread_samples_for_fft()
void display_wave() void display_wave()
{ {
float wave_y_mult = 0.0078125f; float wave_y_mult = 0.0078125f;
float relative = 3; float relative = 1;
samples_to_float(); samples_to_float();
@ -162,7 +162,7 @@ void user_main()
disp_init.SPIx = SPI1; disp_init.SPIx = SPI1;
disp = dmtx_init(&disp_init); disp = dmtx_init(&disp_init);
dmtx_intensity(disp, 2); dmtx_intensity(disp, 7);
dmtx_clear(disp); dmtx_clear(disp);
dmtx_show(disp); dmtx_show(disp);

Loading…
Cancel
Save