File tree Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Expand file tree Collapse file tree 2 files changed +10
-7
lines changed Original file line number Diff line number Diff line change 3
3
Driver to write characters to LCD displays with a LM1602 connected via i2c like [ this one] with
4
4
16x2 characters. It requires a I2C instance implementing [ ` embedded_hal::blocking::i2c::Write ` ]
5
5
and a instance to delay execution with [ ` embedded_hal::blocking::delay::DelayMs ` ] .
6
+ Other LCD sizes are supported, up to displays with 20x4 characters. Everything that uses a
7
+ HD44780U or comparable controller and is connected via i2c should work.
8
+ Like [ this]
6
9
7
10
Usage:
8
11
```
@@ -20,10 +23,9 @@ let mut i2c = arduino_hal::I2c::new(
20
23
);
21
24
let mut delay = arduino_hal::Delay::new();
22
25
23
- let mut lcd = lcd_lcm1602_i2c::Lcd ::new(&mut i2c, &mut delay)
26
+ let mut lcd = lcd_lcm1602_i2c::LCD16x2 ::new(&mut i2c, &mut delay)
24
27
.address(LCD_ADDRESS)
25
- .cursor_on(false) // no visible cursos
26
- .rows(2) // two rows
28
+ .cursor_on(false) // no visible cursor
27
29
.init().unwrap();
28
30
```
29
31
@@ -34,4 +36,4 @@ There is a similar crate [lcd_1602_i2c] but that did not work with [this display
34
36
[ this one ] : https://funduinoshop.com/elektronische-module/displays/lcd/16x02-i2c-lcd-modul-hintergrundbeleuchtung-blau
35
37
[ lcd address ] : https://www.ardumotive.com/i2clcden.html
36
38
[ lcd_1602_i2c ] : https://crates.io/crates/lcd_1602_i2c
37
-
39
+ [ this ] : https://www.az-delivery.de/en/products/hd44780-2004-lcd-display-bundle-4x20-zeichen-mit-i2c-schnittstelle
Original file line number Diff line number Diff line change 2
2
//! Driver to write characters to LCD displays with a LM1602 connected via i2c like [this one] with
3
3
//! 16x2 characters. It requires a I2C instance implementing [`embedded_hal::blocking::i2c::Write`]
4
4
//! and a instance to delay execution with [`embedded_hal::blocking::delay::DelayMs`].
5
+ //! Other LCD sizes are supported, up to displays with 20x4 characters. Everything that uses a
6
+ //! HD44780U or comparable controller and is connected via i2c should work
5
7
//!
6
8
//! Usage:
7
9
//! ```
19
21
//! );
20
22
//! let mut delay = arduino_hal::Delay::new();
21
23
//!
22
- //! let mut lcd = lcd_lcm1602_i2c::Lcd ::new(&mut i2c, &mut delay)
24
+ //! let mut lcd = lcd_lcm1602_i2c::LCD16x2 ::new(&mut i2c, &mut delay)
23
25
//! .with_address(LCD_ADDRESS)
24
- //! .with_cursor_on(false) // no visible cursos
25
- //! .with_rows(2) // two rows
26
+ //! .with_cursor_on(false) // no visible cursor
26
27
//! .init().unwrap();
27
28
//! ```
28
29
//!
You can’t perform that action at this time.
0 commit comments