Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Janis Heims
kraken
Commits
e8e7cc27
Commit
e8e7cc27
authored
Aug 10, 2021
by
TechnoElf
Browse files
Gas Gas Gas
parent
6ac7bad6
Changes
1
Hide whitespace changes
Inline
Side-by-side
src/main.rs
View file @
e8e7cc27
...
...
@@ -7,7 +7,7 @@ use embedded_graphics::pixelcolor::Rgb565;
use
embedded_graphics
::
draw_target
::
DrawTarget
;
fn
main
()
{
let
spi_bus
=
Spi
::
new
(
Bus
::
Spi0
,
SlaveSelect
::
Ss0
,
1
000
,
Mode
::
Mode0
)
.unwrap
();
let
spi_bus
=
Spi
::
new
(
Bus
::
Spi0
,
SlaveSelect
::
Ss0
,
5000
000
,
Mode
::
Mode0
)
.unwrap
();
let
dc
=
Gpio
::
new
()
.unwrap
()
.get
(
12
)
.unwrap
()
.into_output
();
let
rst
=
Gpio
::
new
()
.unwrap
()
.get
(
13
)
.unwrap
()
.into_output
();
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment