adafruit-nrf52840-express

Board support crates for Adafruit's nRF52840 boards

Latest version: 0.2.0 registry icon
Maintenance score
0
Safety score
0
Popularity score
70
Check your open source dependency risks. Get immediate insight about security, stability and licensing risks.
Security
  Vulnerabilities
Version Suggest Low Medium High Critical
0.2.0 0 0 0 0 0
0.1.0 0 0 0 0 0

Stability
Latest release:

0.2.0 - This version may not be safe as it has not been updated for a long time. Find out if your coding project uses this component and get notified of any reported security vulnerabilities with Meterian-X Open Source Security Platform

Licensing

Maintain your licence declarations and avoid unwanted licences to protect your IP the way you intended.

MIT   -   MIT License

Not a wildcard

Not proprietary

OSI Compliant



adafruit-nrf52840-bsc

Board support crates for Adafruit's nRF52840 based boards.

Board Info Page crates.io
Sense https://learn.adafruit.com/adafruit-feather-sense sense crate
Express https://learn.adafruit.com/introducing-the-adafruit-nrf52840-feather express crate

Simple example:

use adafruit_nrf52840_sense as bsp;

use bsp::{
    entry,
    prelude::*,
    hal::gpio,
    Board,
};

#[entry]
fn main() -> ! {
    let board = Board::new().unwrap();

    let mut delay = board.delay;

    let mut led1 = board.d13.into_push_pull_output(gpio::Level::Low);
    let mut led2 = board.blue_led;

    led2.set_high().unwrap();

    loop {
        led1.set_high().unwrap();
        led2.set_low().unwrap();

        delay.delay_ms(500u16);

        led1.set_low().unwrap();
        led2.set_high().unwrap();

        delay.delay_ms(500u16);
    }
}

Examples

Install cargo-just

cargo install just

Run example specifying both the board and the example name:

just run-example sense serial