Skip to content

Commit 6ae8372

Browse files
committed
Add I2C address ranges
1 parent 4ed71d3 commit 6ae8372

8 files changed

+8
-0
lines changed

lcd/esp8266_i2c_lcd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from machine import I2C
66
from time import sleep_ms
77

8+
# The PCF8574 has a jumper selectable address: 0x20 - 0x27
89
DEFAULT_I2C_ADDR = 0x27
910

1011
# Defines shifts or masks for the various LCD line attached to the PCF8574

lcd/esp8266_i2c_lcd_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from machine import I2C, Pin
66
from esp8266_i2c_lcd import I2cLcd
77

8+
# The PCF8574 has a jumper selectable address: 0x20 - 0x27
89
DEFAULT_I2C_ADDR = 0x27
910

1011
def test_main():

lcd/i2c_lcd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
import smbus
55
import time
66

7+
# The PCF8574 has a jumper selectable address: 0x20 - 0x27
78
DEFAULT_I2C_ADDR = 0x27
89

910
# Defines shifts or masks for the various LCD line attached to the PCF8574

lcd/i2c_lcd_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from i2c_lcd import I2cLcd
44
import time
55

6+
# The PCF8574 has a jumper selectable address: 0x20 - 0x27
67
DEFAULT_I2C_ADDR = 0x27
78

89
def test_main():

lcd/pyb_i2c_adafruit_lcd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
from pyb import I2C
66
from pyb import delay
77

8+
# The MCP23008 has a jumper selectable address: 0x20 - 0x27
89
DEFAULT_I2C_ADDR = 0x20
910

1011
# MCP23008 Registers

lcd/pyb_i2c_adafruit_lcd_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from pyb import I2C, delay, millis
44
from pyb_i2c_adafruit_lcd import I2cLcd
55

6+
# The MCP23008 has a jumper selectable address: 0x20 - 0x27
67
DEFAULT_I2C_ADDR = 0x20
78

89
def test_main():

lcd/pyb_i2c_lcd.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from lcd_api import LcdApi
44
from pyb import I2C, delay
55

6+
# The PCF8574 has a jumper selectable address: 0x20 - 0x27
67
DEFAULT_I2C_ADDR = 0x27
78

89
# Defines shifts or masks for the various LCD line attached to the PCF8574

lcd/pyb_i2c_lcd_test.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
from pyb import I2C, delay, millis
44
from lcd_api import LcdApi
55

6+
# The PCF8574 has a jumper selectable address: 0x20 - 0x27
67
DEFAULT_I2C_ADDR = 0x27
78

89
def test_main():

0 commit comments

Comments
 (0)