Expand description
A helper module that maps standard ATmega pins into equivalent Arduino
names through helper functions board::pin_a()
and board::pin_d()
.
use avr_oxide::boards;
use avr_oxide::hal::generic::port::{ Pin, PinMode };
fn use_arduino_types() {
// We can now refer to Pord D, pin 3 on an Arduino Nano Every as
// `arduino::board::pin_a(0)` if compiled with feature `arduino_nanoevery`
boards::nanoevery::pin_a(0).set_mode(PinMode::Output);
boards::nanoevery::pin_a(0).set_high();
}
§Features
Feature name | |
---|---|
arduino_nanoevery | Arduino Nano Every with ATmega4809 CPU |
arduino_uno | Arduino Uno with ATmega328P CPU |
atmega4809_xplained_pro | AVR ATMega4809-XPlained-Pro board |
Re-exports§
pub use nanoevery as board;
Modules§
- Arduino Nano Every board access aliases