File tree Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Expand file tree Collapse file tree 1 file changed +1
-10
lines changed Original file line number Diff line number Diff line change @@ -5,7 +5,6 @@ use chrono::Local;
5
5
use image:: codecs:: gif:: GifDecoder ;
6
6
use image:: { io:: Reader as ImageReader , Luma } ;
7
7
use image:: { AnimationDecoder , DynamicImage , ImageBuffer } ;
8
- use rand:: prelude:: * ;
9
8
use serialport:: { SerialPort , SerialPortInfo , SerialPortType } ;
10
9
11
10
use crate :: b1display:: { B1Pattern , Fps , PowerMode } ;
@@ -621,7 +620,7 @@ fn display_gray_image_cmd(serialdev: &str, image_path: &str) {
621
620
commit_cols ( & mut port) ;
622
621
}
623
622
624
- // The data-type for storing analyzer results
623
+ /// The data-type for storing analyzer results
625
624
#[ derive( Debug , Clone ) ]
626
625
pub struct AnalyzerResult {
627
626
spectrum : vis_core:: analyzer:: Spectrum < Vec < f32 > > ,
@@ -698,14 +697,6 @@ fn random_eq_cmd(serialdevs: &Vec<String>) {
698
697
}
699
698
}
700
699
701
- // The data-type for storing analyzer results
702
- #[ derive( Debug , Clone ) ]
703
- pub struct AnalyzerResult {
704
- spectrum : vis_core:: analyzer:: Spectrum < Vec < f32 > > ,
705
- volume : f32 ,
706
- beat : f32 ,
707
- }
708
-
709
700
// Equalizer-like animation that expands as volume goes up and retracts as it goes down
710
701
fn input_eq_cmd ( serialdevs : & Vec < String > ) {
711
702
// Example from https://github.com/Rahix/visualizer2/blob/canon/README.md
You can’t perform that action at this time.
0 commit comments