generated from luke-else/esp32-std-template
	Updated cargo dependencies and upgrades to IDF v5.1.1
This commit is contained in:
		@@ -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,
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
use esp_idf_sys::EspError;
 | 
			
		||||
use esp_idf_svc::sys::EspError;
 | 
			
		||||
use crate::display::DisplayError;
 | 
			
		||||
use crate::gps::GpsError;
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
@@ -1,4 +1,4 @@
 | 
			
		||||
use esp_idf_hal::{
 | 
			
		||||
use esp_idf_svc::hal::{
 | 
			
		||||
    self,
 | 
			
		||||
    peripheral::Peripheral,
 | 
			
		||||
    gpio::{AnyInputPin, AnyOutputPin, InputPin},
 | 
			
		||||
 
 | 
			
		||||
@@ -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();
 | 
			
		||||
 | 
			
		||||
 
 | 
			
		||||
		Reference in New Issue
	
	Block a user