SaaSHub helps you find the best software and product alternatives Learn more →
Rust hal-crate Projects
-
WorkOS
The modern identity platform for B2B SaaS. The APIs are flexible and easy-to-use, supporting authentication, user identity, and complex enterprise features like SSO and SCIM provisioning.
/* * For examples (and inspiration), head to * * https://github.com/Rahix/avr-hal/tree/main/examples * * NOTE: Not all examples were ported to all boards! There is a good chance though, that code * for a different board can be adapted for yours. The Arduino Uno currently has the most * examples available. */ #![no_std] #![no_main] use dht_sensor::*; use panic_halt as _; #[arduino_hal::entry] fn main() -> ! { let dp = arduino_hal::Peripherals::take().unwrap(); let pins = arduino_hal::pins!(dp); let mut serial = arduino_hal::default_serial!(dp, pins, 57200); let mut pin3 = pins.d3.into_opendrain_high(); let mut delay = arduino_hal::Delay::new(); ufmt::uwriteln!(serial, "{}", "waiting for sensor...").unwrap(); arduino_hal::delay_ms(2000); loop { match dht11::Reading::read(&mut delay, &mut pin3) { Ok(dht11::Reading { temperature, relative_humidity, }) => ufmt::uwriteln!(serial, "{}°, {}% RH", temperature, relative_humidity).unwrap(), Err(_e) => ufmt::uwriteln!(serial, "Error {}", "Unable to read").unwrap(), } arduino_hal::delay_ms(2000); } }
Rust hal-crates related posts
- not entirely new to rust, but very new to rust+arduino,.... eli5 the differences between these projects?
- Rust and arduino?
- The coincidental typos compiled..
- How can I use Arduino's Ethernet library in Rust?
- Arduino HAL, Rust and C++
- Microdosing Rust: Why & How to Get Started with AVR? | Rust Wrocław Meetup 26, 23.06.2022
- Headsup: Xmas is coming, so expect an influx of new beginner users with wide eyes and badly made projects - time to show some love for them. Here's how! (clickbaity title)
-
A note from our sponsor - SaaSHub
www.saashub.com | 24 Apr 2024
Index
Project | Stars | |
---|---|---|
1 | avr-hal | 1,183 |
Sponsored