Skip to content

Commit ce79489

Browse files
authored
Merge pull request #3 from ubidefeo/dev
Dev
2 parents 04d8253 + ce6e299 commit ce79489

File tree

5 files changed

+23
-10
lines changed

5 files changed

+23
-10
lines changed

i2c_lcd/__init__.py

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
__author__ = "Alex Bucknall"
2+
__credits__ = ["Alex Bucknall", "Ubi de Feo"]
3+
__license__ = "MPL 2.0"
4+
__version__ = "2.0.0"
5+
__maintainer__ = "Ubi de Feo"
6+
7+
from .backlight import *
8+
from .i2c_lcd import *
9+
from .screen import *
File renamed without changes.

lib/i2c_lcd.py renamed to i2c_lcd/i2c_lcd.py

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,8 +13,8 @@
1313
# ******************************************************************************
1414

1515
from machine import I2C
16-
import i2c_lcd_backlight
17-
import i2c_lcd_screen
16+
from .backlight import *
17+
from .screen import *
1818

1919

2020

@@ -23,7 +23,7 @@ class Display(object):
2323
GROVE_BOY = 0x3e
2424

2525
def __init__(self, i2c, lcd_addr = GROVE_BOY):
26-
self.screen = i2c_lcd_screen.Screen(i2c, lcd_addr)
26+
self.screen = Screen(i2c, lcd_addr)
2727

2828
def write(self, text):
2929
self.screen.write(text)
@@ -58,7 +58,7 @@ class RGBDisplay(Display):
5858

5959
def __init__(self, i2c, lcd_addr=0x3e, display_version = GROVE_RGB_V5):
6060
rgb_addr = display_version[1]
61-
self.backlight = i2c_lcd_backlight.Backlight(i2c, rgb_addr)
61+
self.backlight = Backlight(i2c, rgb_addr)
6262
super().__init__(i2c, lcd_addr)
6363

6464
def color(self, r, g, b):
File renamed without changes.

package.json

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,20 @@
11
{
22
"urls": [
33
[
4-
"/lib/i2c_lcd.py",
5-
"github:ubidefeo/micropython-i2c-lcd/lib/i2c_lcd.py"
4+
"i2c_lcd/__init__.py",
5+
"github:ubidefeo/micropython-i2c-lcd/i2c_lcd/__init__.py"
66
],
77
[
8-
"/lib/i2c_lcd_backlight.py",
9-
"github:ubidefeo/micropython-i2c-lcd/lib/i2c_lcd_backlight.py"
8+
"i2c_lcd/i2c_lcd.py",
9+
"github:ubidefeo/micropython-i2c-lcd/i2c_lcd/i2c_lcd.py"
1010
],
1111
[
12-
"/lib/i2c_lcd_screen.py",
13-
"github:ubidefeo/micropython-i2c-lcd/lib/i2c_lcd_screen.py"
12+
"i2c_lcd/backlight.py",
13+
"github:ubidefeo/micropython-i2c-lcd/i2c_lcd/backlight.py"
14+
],
15+
[
16+
"i2c_lcd/screen.py",
17+
"github:ubidefeo/micropython-i2c-lcd/i2c_lcd/screen.py"
1418
]
1519
],
1620
"deps": [],

0 commit comments

Comments
 (0)