anfractuosity 3 лет назад
Родитель
Сommit
64e5badfd5
2 измененных файлов с 3 добавлено и 1 удалено
  1. 2 0
      README.md
  2. 1 1
      scenes/scope_scene_run.c

+ 2 - 0
README.md

@@ -14,6 +14,8 @@ Provide signal to pin 16/C0, with a voltage ranging from 0V to 3.3V.
 
 
 Press the 'ok' button (button in the centre of joypad) to pause/unpause the waveform display.
 Press the 'ok' button (button in the centre of joypad) to pause/unpause the waveform display.
 
 
+[Demo](https://www.youtube.com/watch?v=tu2X1WwADF4) showing three different waveform types from a signal generator.
+
 ## To Do
 ## To Do
 
 
 * Customisable input pin
 * Customisable input pin

+ 1 - 1
scenes/scope_scene_run.c

@@ -230,7 +230,7 @@ static void app_draw_callback(Canvas * canvas, void *ctx)
 {
 {
     UNUSED(ctx);
     UNUSED(ctx);
     char buf[50];
     char buf[50];
-    snprintf(buf, 50, "Time: %.3f", time);
+    snprintf(buf, 50, "Time: %.5f", time);
 
 
     canvas_draw_str(canvas, 10, 10, buf);
     canvas_draw_str(canvas, 10, 10, buf);
     for(uint32_t x = 1; x < ADC_CONVERTED_DATA_BUFFER_SIZE; x++){
     for(uint32_t x = 1; x < ADC_CONVERTED_DATA_BUFFER_SIZE; x++){