JohnDoneth / hd44780-driver

Implementation of the embedded-hal traits for the HD44780.
MIT License
37 stars 40 forks source link

could not find `memory_map` in `hd44780_driver` #57

Open WuFengSheng opened 4 days ago

WuFengSheng commented 4 days ago
[dependencies]
hd44780-driver = "0.4.0"
#![no_std]
#![no_main]

use esp_backtrace as _;
use esp_hal::{
    clock::ClockControl, delay::Delay, gpio::Io, i2c::I2C, peripherals::Peripherals, prelude::*, system::SystemControl,
};
use hd44780_driver::{memory_map::MemoryMap1602, setup::DisplayOptionsI2C, HD44780};
use log::{error, info};
use hd44780_driver::{memory_map::MemoryMap1602, setup::DisplayOptionsI2C, HD44780};
  |                      ^^^^^^^^^^                 ^^^^^ could not find `setup` in `hd44780_driver`
  |                      |
  |                      could not find `memory_map` in `hd44780_driver`
JohnDoneth commented 3 days ago

It looks like this is due to https://github.com/JohnDoneth/hd44780-driver/pull/54 (cc @ColinTimBarndt).

ColinTimBarndt commented 3 days ago

Yes, you're depending on an older version of this library. Change your dependency to use this git repository directly, that should fix it.