ruduino-0.3.2 doesn't have any documentation.
Ruduino
This library provides a set of reusable components for the Arduino Uno.
Overview
Register and bit definitions
use PORTB; // Register
use PORTB7; // Pin
Prelude
Disable interrupts.
without_interrupts
Timers
Configure a timer.
const CPU_FREQUENCY_HZ: u64 = 16_000_000;
const DESIRED_HZ_TIM1: f64 = 2.0;
const TIM1_PRESCALER: u64 = 1024;
const INTERRUPT_EVERY_1_HZ_1024_PRESCALER: u16 =
as u16;
new
.waveform_generation_mode
.clock_source
.output_compare_1
.configure;
Set up an interrupt handler that will be called when the timer fires.
pub unsafe extern "avr-interrupt"
Hardware Serial Port
Configure the serial port.
const CPU_FREQUENCY_HZ: u64 = 16_000_000;
const BAUD: u64 = 9600;
const UBRR: u16 = as u16;
new
.character_size
.mode
.parity
.stop_bits
.configure;
Transmit a sequence of bytes.
for &b in b"OK"
Read a byte if there's something available.
if let Some = try_receive