File tree Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Expand file tree Collapse file tree 3 files changed +5
-2
lines changed Original file line number Diff line number Diff line change @@ -29,7 +29,8 @@ fn heart_image(inner_brightness: u8) -> GreyscaleImage {
29
29
30
30
static GPIO : Mutex < RefCell < Option < GPIO > > > = Mutex :: new ( RefCell :: new ( None ) ) ;
31
31
static ANIM_TIMER : Mutex < RefCell < Option < LoResTimer < RTC0 > > > > = Mutex :: new ( RefCell :: new ( None ) ) ;
32
- static DISPLAY_TIMER : Mutex < RefCell < Option < MicrobitDisplayTimer < TIMER1 > > > > = Mutex :: new ( RefCell :: new ( None ) ) ;
32
+ static DISPLAY_TIMER : Mutex < RefCell < Option < MicrobitDisplayTimer < TIMER1 > > > > =
33
+ Mutex :: new ( RefCell :: new ( None ) ) ;
33
34
static DISPLAY : Mutex < RefCell < Option < Display < MicrobitFrame > > > > = Mutex :: new ( RefCell :: new ( None ) ) ;
34
35
35
36
#[ entry]
Original file line number Diff line number Diff line change @@ -76,7 +76,7 @@ impl BitImage {
76
76
// FIXME: can we reject values other than 0 or 1?
77
77
const fn row_byte ( row : [ u8 ; 5 ] ) -> u8 {
78
78
row[ 0 ] | row[ 1 ] << 1 | row[ 2 ] << 2 | row[ 3 ] << 3 | row[ 4 ] << 4
79
- } ;
79
+ }
80
80
BitImage ( [
81
81
row_byte ( im[ 0 ] ) ,
82
82
row_byte ( im[ 1 ] ) ,
Original file line number Diff line number Diff line change @@ -8,6 +8,7 @@ use crate::hal::gpio::gpio::{
8
8
use crate :: hal:: gpio:: { Output , PushPull } ;
9
9
use crate :: hal:: prelude:: * ;
10
10
11
+ #[ allow( clippy:: upper_case_acronyms) ]
11
12
type LED = PIN < Output < PushPull > > ;
12
13
13
14
const DEFAULT_DELAY_MS : u32 = 2 ;
@@ -28,6 +29,7 @@ pub struct Display {
28
29
29
30
impl Display {
30
31
/// Initializes all the user LEDs
32
+ #[ allow( clippy:: too_many_arguments) ]
31
33
pub fn new (
32
34
col1 : PIN4 < Output < PushPull > > ,
33
35
col2 : PIN5 < Output < PushPull > > ,
You can’t perform that action at this time.
0 commit comments