Updated cargo dependencies and upgrades to IDF v5.1.1

This commit is contained in:
2023-11-26 20:17:51 +00:00
parent e69b802ad7
commit 5e7a62dccd
7 changed files with 19 additions and 23 deletions

View File

@@ -9,7 +9,9 @@ use embedded_graphics::{
text::{Alignment, Text},
};
use esp_idf_hal::i2c::I2cDriver;
use esp_idf_svc::hal::i2c::I2cDriver;
use ssd1306::{
prelude::*, rotation::DisplayRotation, size::DisplaySize, I2CDisplayInterface, Ssd1306,

View File

@@ -1,4 +1,4 @@
use esp_idf_sys::EspError;
use esp_idf_svc::sys::EspError;
use crate::display::DisplayError;
use crate::gps::GpsError;

View File

@@ -1,4 +1,4 @@
use esp_idf_hal::{
use esp_idf_svc::hal::{
self,
peripheral::Peripheral,
gpio::{AnyInputPin, AnyOutputPin, InputPin},

View File

@@ -1,13 +1,12 @@
#![allow(unused)]
use esp_idf_hal::{
use esp_idf_svc::hal::{
self,
gpio::*,
i2c::{I2cConfig, I2cDriver},
prelude::Peripherals,
units::Hertz,
};
use esp_idf_sys as _; // If using the `binstart` feature of `esp-idf-sys`, always keep this module imported
use std::sync::atomic::{AtomicBool, Ordering};
@@ -26,7 +25,7 @@ use ssd1306::prelude::*;
fn main() -> Result<(), Error> {
// It is necessary to call this function once. Otherwise some patches to the runtime
// implemented by esp-idf-sys might not link properly. See https://github.com/esp-rs/esp-idf-template/issues/71
esp_idf_sys::link_patches();
esp_idf_svc::sys::link_patches();
// Bind the log crate to the ESP Logging facilities
//esp_idf_svc::log::EspLogger::initialize_default();