Module avr_oxide::boards

source ·
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_nanoeveryArduino Nano Every with ATmega4809 CPU
arduino_unoArduino Uno with ATmega328P CPU
atmega4809_xplained_proAVR ATMega4809-XPlained-Pro board

Re-exports§

Modules§

  • Arduino Nano Every board access aliases