Skip to content

Commit 353c8f2

Browse files
authored
Configure pin numbers for v1.0 hardware (#86)
1 parent 3d820a3 commit 353c8f2

File tree

2 files changed

+9
-5
lines changed

2 files changed

+9
-5
lines changed

pico_lte/modules/base.py

Lines changed: 7 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,8 @@ def __init__(self, atcom):
2121
Constructor for Base class
2222
"""
2323
self.atcom = atcom
24-
self.powerkey_pin = Pin(19, Pin.OUT)
24+
# self.module_power = Pin(26, Pin.OUT)
25+
self.powerkey_pin = Pin(17, Pin.OUT)
2526
self.status_pin = Pin(20, Pin.IN)
2627

2728
def power_off(self):
@@ -259,7 +260,7 @@ def get_cell_information(self, cell_type):
259260
if cell_type not in ["servingcell", "neighbourcell"]:
260261
return {"status": Status.ERROR, "response": "Invalid cell type"}
261262

262-
command = f'AT+QENG="{cell_type}"'
263+
command = f'AT+QENG="{cell_type}"'
263264
return self.atcom.send_at_comm(command)
264265

265266
def get_all_cells(self, technology="eMTC", timeout=60):
@@ -289,5 +290,7 @@ def get_all_cells(self, technology="eMTC", timeout=60):
289290
return {"status": Status.ERROR, "response": "Invalid technology"}
290291

291292
# TODO: Get all the information from the URC, not the first one.
292-
command = f'AT+QCELLSCAN={technology_no},{timeout}'
293-
return self.atcom.send_at_comm(command, timeout=timeout, urc=True, desired='+QCELLSCAN: "{technology}",')
293+
command = f"AT+QCELLSCAN={technology_no},{timeout}"
294+
return self.atcom.send_at_comm(
295+
command, timeout=timeout, urc=True, desired='+QCELLSCAN: "{technology}",'
296+
)

pico_lte/modules/peripherals.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,13 @@ class Periph:
1010
"""
1111
Class for inculding periheral hardware functions of PicoLTE module.
1212
"""
13+
1314
user_button = Pin(21, Pin.IN)
1415
user_led = Pin(22, Pin.OUT)
1516
pico_led = Pin("LED", Pin.OUT)
1617
neopixel = Pin(15, Pin.OUT)
1718

18-
qwiic = I2C(0, scl=Pin(17), sda=Pin(16), freq=400_000)
19+
qwiic = I2C(0, scl=Pin(13), sda=Pin(12), freq=400_000)
1920

2021
def __init__(self):
2122
"""

0 commit comments

Comments
 (0)