Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Nilhcem/1602A-androidthings
1602 LCD module driver for Android Things
https://github.com/Nilhcem/1602A-androidthings
Last synced: about 2 months ago
JSON representation
1602 LCD module driver for Android Things
- Host: GitHub
- URL: https://github.com/Nilhcem/1602A-androidthings
- Owner: Nilhcem
- License: apache-2.0
- Created: 2016-12-30T07:24:38.000Z (almost 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-10T13:08:02.000Z (over 6 years ago)
- Last Synced: 2024-08-01T17:24:31.733Z (5 months ago)
- Language: Java
- Homepage:
- Size: 986 KB
- Stars: 29
- Watchers: 5
- Forks: 9
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
- awesome-android-things - 1602 LCD display - 1602 LCD display (Useful links / Drivers)
- awesome-android-things - 1602 LCD display - 1602 LCD display (Useful links / Drivers)
README
# 1602A LCD display driver for Android Things
A port of the LiquidCrystal Arduino library for Android Things.
## Photo
![photo][]
## Download
```groovy
dependencies {
compile 'com.nilhcem.androidthings:driver-lcd1602:0.0.3'
}
```## Usage
```java
Lcd1602 lcd = new Lcd1602(GPIO_LCD_RS, GPIO_LCD_EN, GPIO_LCD_D4, GPIO_LCD_D5, GPIO_LCD_D6, GPIO_LCD_D7);
lcd.begin(16, 2);// load custom character to the LCD
int[] heart = {0b00000, 0b01010, 0b11111, 0b11111, 0b11111, 0b01110, 0b00100, 0b00000};
lcd.createChar(0, heart);lcd.clear();
lcd.print("Hello,");
lcd.setCursor(0, 1);
lcd.print("Android Things!");
lcd.write(0); // write :heart: custom character// Later on
lcd.close();
```## Breadboard
![breadboard][]
## Schematic
![schema][]
[photo]: https://raw.githubusercontent.com/Nilhcem/1602A-androidthings/master/assets/photo.jpeg
[breadboard]: https://raw.githubusercontent.com/Nilhcem/1602A-androidthings/master/assets/breadboard.png
[schema]: https://raw.githubusercontent.com/Nilhcem/1602A-androidthings/master/assets/schema.png