Skip to content

Commit 940897a

Browse files
committed
Dev package upgrades
1 parent 9119b39 commit 940897a

File tree

8 files changed

+9
-9
lines changed

8 files changed

+9
-9
lines changed

Cargo.toml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@ embedded-hal = "0.2.3"
2323
embedded-graphics-core = { version = "0.3.2", optional = true }
2424

2525
[dev-dependencies]
26-
cortex-m = "0.6.0"
26+
cortex-m = "0.7.3"
2727
cortex-m-rt = "0.6.10"
2828
embedded-graphics = "0.7.1"
2929
panic-semihosting = "0.5.2"
3030

3131
[dev-dependencies.stm32f1xx-hal]
32-
version = "0.4.0"
32+
version = "0.7.0"
3333
features = [ "rt", "stm32f103" ]
3434

3535
[features]

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn main() -> ! {
5858
(scl, sda),
5959
&mut afio.mapr,
6060
Mode::Fast {
61-
frequency: 400_000,
61+
frequency: 100.khz().into(),
6262
duty_cycle: DutyCycle::Ratio2to1,
6363
},
6464
clocks,

examples/graphics.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ fn main() -> ! {
5252
(scl, sda),
5353
&mut afio.mapr,
5454
Mode::Fast {
55-
frequency: 100_000,
55+
frequency: 100.khz().into(),
5656
duty_cycle: DutyCycle::Ratio2to1,
5757
},
5858
clocks,

examples/graphics_128x32.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ fn main() -> ! {
4242
(scl, sda),
4343
&mut afio.mapr,
4444
Mode::Fast {
45-
frequency: 100_000,
45+
frequency: 100.khz().into(),
4646
duty_cycle: DutyCycle::Ratio2to1,
4747
},
4848
clocks,

examples/image.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn main() -> ! {
5858
(scl, sda),
5959
&mut afio.mapr,
6060
Mode::Fast {
61-
frequency: 100_000,
61+
frequency: 100.khz().into(),
6262
duty_cycle: DutyCycle::Ratio2to1,
6363
},
6464
clocks,

examples/pixelsquare.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ fn main() -> ! {
5353
(scl, sda),
5454
&mut afio.mapr,
5555
Mode::Fast {
56-
frequency: 100_000,
56+
frequency: 100.khz().into(),
5757
duty_cycle: DutyCycle::Ratio2to1,
5858
},
5959
clocks,

examples/rotation.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -58,7 +58,7 @@ fn main() -> ! {
5858
(scl, sda),
5959
&mut afio.mapr,
6060
Mode::Fast {
61-
frequency: 100_000,
61+
frequency: 100.khz().into(),
6262
duty_cycle: DutyCycle::Ratio2to1,
6363
},
6464
clocks,

examples/text.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ fn main() -> ! {
5454
(scl, sda),
5555
&mut afio.mapr,
5656
Mode::Fast {
57-
frequency: 100_000,
57+
frequency: 100.khz().into(),
5858
duty_cycle: DutyCycle::Ratio2to1,
5959
},
6060
clocks,

0 commit comments

Comments
 (0)