You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+124-1Lines changed: 124 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -5,7 +5,130 @@ Supports the [ESP32-WROOM-32E](https://www.espressif.com/sites/default/files/doc
5
5
6
6
Future implementations will support the [ESP32-WROOM-DA](https://www.espressif.com/sites/default/files/documentation/esp32-wroom-da_datasheet_en.pdf) module.
7
7
8
-
This is a new project that has recently launched (end of April, 2022). See the main page section [Getting Involved](https://github.com/Jim-Hodapp-Coaching#getting-involved) for more info on how to contribute to this project and the Rust Never Sleeps community.
8
+
## Usage
9
+
10
+
```
11
+
use esp32_wroom_rp::wifi;
12
+
13
+
let spi_miso = pins.gpio16.into_mode::<hal::gpio::FunctionSpi>();
14
+
let spi_sclk = pins.gpio18.into_mode::<hal::gpio::FunctionSpi>();
15
+
let spi_mosi = pins.gpio19.into_mode::<hal::gpio::FunctionSpi>();
16
+
17
+
let spi = hal::Spi::<_, _, 8>::new(pac.SPI0);
18
+
19
+
Exchange the uninitialized SPI driver for an initialized one
20
+
let spi = spi.init(
21
+
&mut pac.RESETS,
22
+
clocks.peripheral_clock.freq(),
23
+
8_000_000u32.Hz(),
24
+
&MODE_0,
25
+
);
26
+
27
+
let esp_pins = esp32_wroom_rp::gpio::EspControlPins {
*__Note__: Only needed if you'd like to participate in developing/debugging parts of this project that communicate
76
+
on the SPI/I2C buses
77
+
78
+
### Wiring Details
79
+
80
+
Start with the section [Pico to Pico Wiring in this article](https://reltech.substack.com/p/getting-started-with-rust-on-a-raspberry?s=w) to set up using two Picos together, one as a Picoprobe (flash/debug) and the other as your embedded target.
81
+
82
+
Once properly wired, it should look similar to the following:
The following table lists the pin name and pin number to properly wire between a Pico board and an ESP32 WiFi. This can be done on a breadboard such as the one listed above. Note that V+/- rail means the +/- columns on the breadboard for use as +5 VDC and GND respectively.
- The standard Rust tooling (cargo, rustup) which you can install from https://rustup.rs/
117
+
118
+
- Toolchain support for the cortex-m0+ processors in the rp2040 (thumbv6m-none-eabi)
119
+
120
+
- flip-link - this allows you to detect stack-overflows on the first core, which is the only supported target for now.
121
+
122
+
## Installation of development dependencies
123
+
```
124
+
rustup target install thumbv6m-none-eabi
125
+
cargo install flip-link
126
+
cargo install probe-run
127
+
```
128
+
129
+
## Getting Involved
130
+
131
+
This project launched in April, 2022). See the main page section [Getting Involved](https://github.com/Jim-Hodapp-Coaching#getting-involved) for more info on how to contribute to this project and the Rust Never Sleeps community.
9
132
10
133
To get involved, please [request to join the community here on GitHub](https://rustneversleeps.wufoo.com/forms/z1x3dy1j0ycafxq/) and then start contributing to the [research and design discussions](https://github.com/Jim-Hodapp-Coaching/esp32-wroom-rp/discussions) currently underway.
0 commit comments