Same results.
from machine import I2C, Pin
i2c = I2C(scl=Pin(22), sda=Pin(21), freq=100000)
i2c.scan()
[52, 53, 56, 81, 104]
Latest posts made by Costas
- 
    RE: UIFlow 2.0.2 firmware preview versionposted in Official Updates
- 
    RE: UIFlow 2.0.2 firmware preview versionposted in Official UpdatesTrying to get I2C to work on the new firmware. I have M5's SGP30 sensor. MicroPython is not detecting anything plugged in. Guidance? from machine import SoftI2C, Pin 
 i2c = SoftI2C(sda=machine.Pin(21),scl=machine.Pin(22),freq=100000)
 devices = i2c.scan()
 devices = [52, 53, 56, 81, 104], the SGP30 should be on 58, right?
- 
    RE: UIFlow 2.0.0 firmware preview versionposted in Official UpdatesCannot import and begin m5 and also read the SD card, causes a reset with the following error: assert failed: dma_chan_free spi_common.c:321 (spi_dma_chan_enabled & BIT(dma_chan)) Code: 
 import m5
 from m5 import *
 m5.begin()
 from machine import SDCard
 from machine import Pin
 import os
 try:
 sd = SDCard(slot=3, miso=Pin(38), mosi=Pin(23), sck=Pin(18), cs=Pin(4))
 sd.info()
 os.mount(sd, '/sd')
 print("SD card mounted at "/sd"")
 except (KeyboardInterrupt, Exception) as e:
 print('SD mount caught exception {} {}'.format(type(e).name, e))
 pass