From 39296f1b8a0f6f35dad8f068f805939a10eb4410 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Ond=C5=99ej=20Hru=C5=A1ka?= Date: Sat, 3 Sep 2016 12:02:36 +0200 Subject: [PATCH] trigger --- Src/tim.c | 2 +- Src/user_main.c | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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);