Skip to content

Commit 9bc044a

Browse files
committed
1 parent 722084d commit 9bc044a

2 files changed

Lines changed: 5 additions & 4 deletions

File tree

port/boards/mpython/main.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -239,8 +239,8 @@ void mp_task(void *pvParameter) {
239239

240240
gc_sweep_all();
241241

242-
// mp_hal_stdout_tx_str("mpython: soft reboot\r\n");
243-
mp_hal_stdout_tx_str("InnovaBit: soft reboot\r\n");
242+
mp_hal_stdout_tx_str("mpython: soft reboot\r\n");
243+
// mp_hal_stdout_tx_str("InnovaBit: soft reboot\r\n");
244244

245245
// deinitialise peripherals
246246
machine_pins_deinit();

port/modules/apds9960.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
1-
from time import sleep
21
from mpython import i2c
2+
# from InnovaBit import i2c
3+
from time import sleep
34

45
# APDS9960 i2c地址
56
APDS9960_I2C_ADDR = 0x39
@@ -975,4 +976,4 @@ def _write_byte_data(self, cmd, val):
975976
self.bus.writeto_mem(self.address, cmd, bytes([val]))
976977

977978
def _read_i2c_block_data(self, cmd, num):
978-
return self.bus.readfrom_mem(self.address, cmd, num)
979+
return self.bus.readfrom_mem(self.address, cmd, num)

0 commit comments

Comments
 (0)