docs.rs failed to build ruduino-0.2.0
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Please check the build logs for more information.
See Builds for ideas on how to fix a failed build, or Metadata for how to configure docs.rs builds.
If you believe this is docs.rs' fault, open an issue.
Visit the last successful build:
ruduino-0.3.2
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