Giter VIP home page Giter VIP logo

esp-gallery's Introduction

esp-gallery ๐Ÿฆ€

Wokwi-example with usage of my colegue's, Samuel Benko's, beautiful graphic examples (check here), but adapted for famous ili9341 display)

Instructions

cargo build --target riscv32imac-unknown-none-elf --release

Execution with VSCode Wokwi extension

Except of extension itself, you will need two files to execute the simulatuion inside of your VSCode IDE:

  • wokwi.toml
  • diagram.json

Both of them are already provided in this repo and you can edit them as needed.

F1 -> Wokwi: Start simulation

In case you will have additional questions - feel free to open an issue ๐Ÿ˜‰

Description

There's a short example for newcomers that shows, how 8x8 LED Matrix display is initialised on different Espressif boards (ESP32, ESP32S2, ESP32C3) in bare-metal, this config is for ESP32 in terms of example, you can find brief instructions for other chips below

P.S. : Buttons on left are up and down correspondingly, button on top is ok. After image finished rendering press ok button to return back to main menu ๐Ÿ˜‰

Tips for other chips

For esp32 board target (and corresponding changes for paths in wokwi.toml) is:

xtensa-esp32-none-elf

Board type in diagram.toml is:

"type": "wokwi-esp32-devkit-v1"

For esp32s2 board target (and corresponding changes for paths in wokwi.toml) is:

xtensa-esp32s2-none-elf

Board type in diagram.toml is:

"type": "board-esp32-s2-devkitm-1""

For esp32s3 board target (and corresponding changes for paths in wokwi.toml) is:

xtensa-esp32s3-none-elf

Board type in diagram.toml is:

"type": "board-esp32-s3-devkitc-1"

Troubleshooting

  • For xtensa targets you need to have esp-idf exported in your terminal
  • In case of errors, related to esp-hal driver - try to play with dependencies versions on Cargo.toml. Sometimes there're a lot of breaking or light changes, that can affect building process

esp-gallery's People

Contributors

playfulfence avatar

Stargazers

 avatar  avatar

Watchers

 avatar

esp-gallery's Issues

how to run this repo

My rust version is: rustc 1.79.0-nightly (8b2459c1f 2024-04-09).

When I compile with cargo build --target riscv32imac-unknown-none-elf --release :

error: no matching package named `esp32c3-hal` found
location searched: https://github.com/esp-rs/esp-hal.git

Then I found esp32cs-hal is deprecated, so I update the esp-hal :

error: failed to select a version for `esp-backtrace`.
    ... required by package `esp-gallery v0.1.0 (/*/esp-gallery)`
versions that meet the requirements `*` are: 0.11.1

the package `esp-gallery` depends on `esp-backtrace`, with features: `print-uart` but `esp-backtrace` does not have these features.


failed to select a version for `esp-backtrace` which could resolve this conflict

Seems the esp-backtrace also updated, so I update it again, change the feature print-uart to println :

error: failed to select a version for `embedded-hal`.
    ... required by package `esp32s3-hal v0.7.0`
    ... which satisfies dependency `esp32s3-hal = "^0.7.0"` of package `esp-gallery v0.1.0 (/*/esp-gallery)`
versions that meet the requirements `=1.0.0-alpha.9` are: 1.0.0-alpha.9

all possible versions conflict with previously selected packages.

  previously selected package `embedded-hal v1.0.0`
    ... which satisfies dependency `embedded-hal = "^1.0.0"` of package `esp-hal v0.16.1 (https://github.com/esp-rs/esp-hal.git#a22b817e)`
    ... which satisfies git dependency `esp-hal` of package `esp-gallery v0.1.0 (/*/esp-gallery)`

failed to select a version for `embedded-hal` which could resolve this conflict

And now I'm confused, do you have time to fix this

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.