Skip to content

almindor/max7219-examples

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

max7219 examples with hifive1 board

Generated from a template for building Rust applications for HiFive1 boards

Dependencies

To build embedded programs using this template you'll need:

  • Rust 1.36 or a newer toolchain. e.g. rustup default stable

  • The cargo generate subcommand. Installation instructions.

  • rust-std components (pre-compiled core crate) for the RISC-V target. Run:

$ rustup target add riscv32imac-unknown-none-elf

Using the examples

  1. If you have an old HiFive1 board, edit Cargo.toml: replace board-hifive1-revb with board-hifive1.

  2. Run the programmer software.

  • HiFive1 Rev B:
/path/to/JLinkGDBServer -device FE310 -if JTAG -speed 4000 -port 3333 -nogui
  • HiFive1:
/path/to/openocd -f board/sifive-hifive1.cfg
  1. Build a given example (main is just a placeholder)
$ cargo build --example display_spi
  1. Run the example given that everything is connected correctly on the hw
$ cargo run --example display_spi

License

Copyright 2017-2019 Aleš Katona

Permission to use, copy, modify, and/or distribute this software for any purpose with or without fee is hereby granted, provided that the above copyright notice and this permission notice appear in all copies.

THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT, INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.

About

Examples for the MAX7219 Rust driver crate

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages