Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

could not find memory_map in hd44780_driver #57

Open
WuFengSheng opened this issue Sep 27, 2024 · 3 comments
Open

could not find memory_map in hd44780_driver #57

WuFengSheng opened this issue Sep 27, 2024 · 3 comments

Comments

@WuFengSheng
Copy link

WuFengSheng commented Sep 27, 2024

[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
Copy link
Owner

It looks like this is due to #54 (cc @ColinTimBarndt).

@ColinTimBarndt
Copy link
Contributor

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

@ColinTimBarndt
Copy link
Contributor

@WuFengSheng try this:

[dependencies]
hd44780-driver = { git = "https://github.com/JohnDoneth/hd44780-driver.git", rev = "99152ccfe2263e70c480f7d1f417181b00423d37" }

The rev commit hash is optional, but I recommend it so that your code doesn't suddenly break when changes are made in this repository.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants