Compare commits
1 Commits
e1b7b3870e
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
| 9a76ebdbeb |
14
src/main.rs
14
src/main.rs
@@ -117,14 +117,14 @@ impl Leds {
|
||||
|
||||
pub fn for_direction(&mut self, direction: &Direction) -> &mut Led {
|
||||
match direction {
|
||||
Direction::North => &mut self.ld3, // done
|
||||
Direction::NorthEast => &mut self.ld5, // done
|
||||
Direction::East => &mut self.ld7, // done
|
||||
Direction::North => &mut self.ld3,
|
||||
Direction::NorthEast => &mut self.ld5,
|
||||
Direction::East => &mut self.ld7,
|
||||
Direction::SouthEast => &mut self.ld9,
|
||||
Direction::South => &mut self.ld8,
|
||||
Direction::SouthWest => &mut self.ld10,
|
||||
Direction::West => &mut self.ld6, // done
|
||||
Direction::NorthWest => &mut self.ld4, // done
|
||||
Direction::South => &mut self.ld10,
|
||||
Direction::SouthWest => &mut self.ld8,
|
||||
Direction::West => &mut self.ld6,
|
||||
Direction::NorthWest => &mut self.ld4,
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user