mirror of
https://github.com/esp-rs/esp-hal.git
synced 2025-09-30 05:40:39 +00:00
ESP32H2: Improve examples documentation (#598)
* style: 🎨 Improve print format * docs: 📝 Update advanced_serial documentation * docs: 📝 Update examples documentation
This commit is contained in:
parent
a941e6f8a5
commit
e3b77418c4
@ -2,6 +2,10 @@
|
||||
//! You can short the TX and RX pin and see it reads what was written.
|
||||
//! Additionally you can connect a logic analzyer to TX and see how the changes
|
||||
//! of the configuration change the output signal.
|
||||
//!
|
||||
//! The following wiring is assumed:
|
||||
//! - TX => GPIO16
|
||||
//! - RX => GPIO17
|
||||
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
@ -71,7 +75,7 @@ fn main() -> ! {
|
||||
let read = block!(serial1.read());
|
||||
|
||||
match read {
|
||||
Ok(read) => println!("Read {:02x}", read),
|
||||
Ok(read) => println!("Read 0x{:02x}", read),
|
||||
Err(err) => println!("Error {:?}", err),
|
||||
}
|
||||
|
||||
|
@ -2,6 +2,10 @@
|
||||
//! You can short the TX and RX pin and see it reads what was written.
|
||||
//! Additionally you can connect a logic analzyer to TX and see how the changes
|
||||
//! of the configuration change the output signal.
|
||||
//!
|
||||
//! The following wiring is assumed:
|
||||
//! - TX => GPIO1
|
||||
//! - RX => GPIO2
|
||||
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
@ -72,7 +76,7 @@ fn main() -> ! {
|
||||
let read = block!(serial1.read());
|
||||
|
||||
match read {
|
||||
Ok(read) => println!("Read {:02x}", read),
|
||||
Ok(read) => println!("Read 0x{:02x}", read),
|
||||
Err(err) => println!("Error {:?}", err),
|
||||
}
|
||||
|
||||
|
@ -2,6 +2,10 @@
|
||||
//! You can short the TX and RX pin and see it reads what was written.
|
||||
//! Additionally you can connect a logic analzyer to TX and see how the changes
|
||||
//! of the configuration change the output signal.
|
||||
//!
|
||||
//! The following wiring is assumed:
|
||||
//! - TX => GPIO1
|
||||
//! - RX => GPIO2
|
||||
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
@ -79,7 +83,7 @@ fn main() -> ! {
|
||||
let read = block!(serial1.read());
|
||||
|
||||
match read {
|
||||
Ok(read) => println!("Read {:02x}", read),
|
||||
Ok(read) => println!("Read 0x{:02x}", read),
|
||||
Err(err) => println!("Error {:?}", err),
|
||||
}
|
||||
|
||||
|
@ -2,6 +2,10 @@
|
||||
//! You can short the TX and RX pin and see it reads what was written.
|
||||
//! Additionally you can connect a logic analzyer to TX and see how the changes
|
||||
//! of the configuration change the output signal.
|
||||
//!
|
||||
//! The following wiring is assumed:
|
||||
//! - TX => GPIO1
|
||||
//! - RX => GPIO2
|
||||
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
@ -80,7 +84,7 @@ fn main() -> ! {
|
||||
let read = block!(serial1.read());
|
||||
|
||||
match read {
|
||||
Ok(read) => println!("Read {:02x}", read),
|
||||
Ok(read) => println!("Read 0x{:02x}", read),
|
||||
Err(err) => println!("Error {:?}", err),
|
||||
}
|
||||
|
||||
|
@ -2,6 +2,14 @@
|
||||
//! You can short the TX and RX pin and see it reads what was written.
|
||||
//! Additionally you can connect a logic analzyer to TX and see how the changes
|
||||
//! of the configuration change the output signal.
|
||||
//!
|
||||
//! The following wiring is assumed:
|
||||
//! - TX => GPIO1
|
||||
//! - RX => GPIO2
|
||||
//!
|
||||
//! The following wiring is assumed:
|
||||
//! - TX => GPIO1
|
||||
//! - RX => GPIO2
|
||||
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
@ -80,7 +88,7 @@ fn main() -> ! {
|
||||
let read = block!(serial1.read());
|
||||
|
||||
match read {
|
||||
Ok(read) => println!("Read {:02x}", read),
|
||||
Ok(read) => println!("Read 0x{:02x}", read),
|
||||
Err(err) => println!("Error {:?}", err),
|
||||
}
|
||||
|
||||
|
@ -1,3 +1,5 @@
|
||||
//! Encrypt/Decrypt a message using AES
|
||||
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
use aes::{
|
||||
|
@ -1,7 +1,7 @@
|
||||
//! Uses timer0 and operator0 of the MCPWM0
|
||||
//!
|
||||
//! to output a 50% duty
|
||||
//! signal at 16 kHz.
|
||||
//! signal at 20 kHz.
|
||||
//!
|
||||
//! The signal will be output to the pin assigned to `pin`. (GPIO4)
|
||||
|
||||
|
@ -2,6 +2,10 @@
|
||||
//! You can short the TX and RX pin and see it reads what was written.
|
||||
//! Additionally you can connect a logic analzyer to TX and see how the changes
|
||||
//! of the configuration change the output signal.
|
||||
//!
|
||||
//! The following wiring is assumed:
|
||||
//! - TX => GPIO1
|
||||
//! - RX => GPIO2
|
||||
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
@ -71,7 +75,7 @@ fn main() -> ! {
|
||||
let read = block!(serial1.read());
|
||||
|
||||
match read {
|
||||
Ok(read) => println!("Read {:02x}", read),
|
||||
Ok(read) => println!("Read 0x{:02x}", read),
|
||||
Err(err) => println!("Error {:?}", err),
|
||||
}
|
||||
|
||||
|
@ -2,6 +2,10 @@
|
||||
//! You can short the TX and RX pin and see it reads what was written.
|
||||
//! Additionally you can connect a logic analzyer to TX and see how the changes
|
||||
//! of the configuration change the output signal.
|
||||
//!
|
||||
//! The following wiring is assumed:
|
||||
//! - TX => GPIO1
|
||||
//! - RX => GPIO2
|
||||
|
||||
#![no_std]
|
||||
#![no_main]
|
||||
@ -71,7 +75,7 @@ fn main() -> ! {
|
||||
let read = block!(serial1.read());
|
||||
|
||||
match read {
|
||||
Ok(read) => println!("Read {:02x}", read),
|
||||
Ok(read) => println!("Read 0x{:02x}", read),
|
||||
Err(err) => println!("Error {:?}", err),
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user