projects
/
gps-watch.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
684d0bb
)
application: Initialize and clear the display on startup.
author
Tilman Sauerbeck
<tilman@code-monkey.de>
Fri, 20 Dec 2019 20:10:18 +0000
(21:10 +0100)
committer
Tilman Sauerbeck
<tilman@code-monkey.de>
Sun, 5 Jan 2020 19:38:11 +0000
(20:38 +0100)
src/application/main.rs
patch
|
blob
|
history
diff --git
a/src/application/main.rs
b/src/application/main.rs
index 39e0e022014463e956cc8add88e4d824b510af02..b1bf3afd24818147146c5a2a89e3773adcdd9372 100644
(file)
--- a/
src/application/main.rs
+++ b/
src/application/main.rs
@@
-35,6
+35,7
@@
use common::gpio;
use common::nvic;
use common::i2c;
use common::usb_serial;
+use common::display;
extern {
fn enable_interrupts();
@@
-72,6
+73,11
@@
pub unsafe extern fn main() {
cdc_tx_buf.write(b"\n");
cdc_tx_buf.flush();
+ let mut display = display::Display::new(gpio::GPIOB, 1 << 16, 0x3c);
+
+ display.init();
+ display.clear();
+
loop {
systick::delay_ms(1000);