@@ -64,36 +64,36 @@ fn main() -> ! {
6464 1000 ,
6565 ) ;
6666
67- let mut disp : GraphicsMode < _ > = Builder :: new ( ) . connect_i2c ( i2c) . into ( ) ;
67+ let mut display : GraphicsMode < _ > = Builder :: new ( ) . connect_i2c ( i2c) . into ( ) ;
6868
69- disp . init ( ) . unwrap ( ) ;
70- disp . flush ( ) . unwrap ( ) ;
69+ display . init ( ) . unwrap ( ) ;
70+ display . flush ( ) . unwrap ( ) ;
7171
7272 // Top side
73- disp . set_pixel ( 0 , 0 , 1 ) ;
74- disp . set_pixel ( 1 , 0 , 1 ) ;
75- disp . set_pixel ( 2 , 0 , 1 ) ;
76- disp . set_pixel ( 3 , 0 , 1 ) ;
73+ display . set_pixel ( 0 , 0 , 1 ) ;
74+ display . set_pixel ( 1 , 0 , 1 ) ;
75+ display . set_pixel ( 2 , 0 , 1 ) ;
76+ display . set_pixel ( 3 , 0 , 1 ) ;
7777
7878 // Right side
79- disp . set_pixel ( 3 , 0 , 1 ) ;
80- disp . set_pixel ( 3 , 1 , 1 ) ;
81- disp . set_pixel ( 3 , 2 , 1 ) ;
82- disp . set_pixel ( 3 , 3 , 1 ) ;
79+ display . set_pixel ( 3 , 0 , 1 ) ;
80+ display . set_pixel ( 3 , 1 , 1 ) ;
81+ display . set_pixel ( 3 , 2 , 1 ) ;
82+ display . set_pixel ( 3 , 3 , 1 ) ;
8383
8484 // Bottom side
85- disp . set_pixel ( 0 , 3 , 1 ) ;
86- disp . set_pixel ( 1 , 3 , 1 ) ;
87- disp . set_pixel ( 2 , 3 , 1 ) ;
88- disp . set_pixel ( 3 , 3 , 1 ) ;
85+ display . set_pixel ( 0 , 3 , 1 ) ;
86+ display . set_pixel ( 1 , 3 , 1 ) ;
87+ display . set_pixel ( 2 , 3 , 1 ) ;
88+ display . set_pixel ( 3 , 3 , 1 ) ;
8989
9090 // Left side
91- disp . set_pixel ( 0 , 0 , 1 ) ;
92- disp . set_pixel ( 0 , 1 , 1 ) ;
93- disp . set_pixel ( 0 , 2 , 1 ) ;
94- disp . set_pixel ( 0 , 3 , 1 ) ;
91+ display . set_pixel ( 0 , 0 , 1 ) ;
92+ display . set_pixel ( 0 , 1 , 1 ) ;
93+ display . set_pixel ( 0 , 2 , 1 ) ;
94+ display . set_pixel ( 0 , 3 , 1 ) ;
9595
96- disp . flush ( ) . unwrap ( ) ;
96+ display . flush ( ) . unwrap ( ) ;
9797
9898 loop { }
9999}
0 commit comments