Search found 58 matches

by water
Wed Feb 17, 2021 8:02 pm
Forum: MicroPython pyboard
Topic: Can I use a Pin as Timer source?
Replies: 1
Views: 246

Can I use a Pin as Timer source?

Can I let Timer.counter() add 1 when Pin level changed.
by water
Fri Feb 12, 2021 7:00 pm
Forum: MicroPython pyboard
Topic: SD card after ejecting and re-inserting.
Replies: 5
Views: 1461

Re: SD card after ejecting and re-inserting.

.deinit() is affect to ESP32 port, I confuse them, on PyBoard, use sd.power() instead,
before eject SD card,

Code: Select all

uos.umount('/sd')
sd.power(0)
True
then re-insert SD card,

Code: Select all

sd.power(1)
True

Code: Select all

uos.mount(sd, '/sd')
If none SD card inserted, execute sd.power(0) or sd.power(1) will return False.
by water
Fri Jan 29, 2021 8:39 pm
Forum: General Discussion and Questions
Topic: Can I pass parameter to Timer callback?
Replies: 1
Views: 148

Can I pass parameter to Timer callback?

How to do that? :?:
Thanks.
by water
Thu Jan 28, 2021 3:22 pm
Forum: MicroPython pyboard
Topic: pyboard with LAN8720
Replies: 3
Views: 1043

Re: pyboard with LAN8720

Interest on it. Can we refer ESP32 network.LAN() implement, it works fine, it initialize with: lan = network.LAN(mdc = machine.Pin(23), mdio = machine.Pin(18), power = machine.Pin(17), phy_type = network.PHY_LAN8720, phy_addr = 1) Relate link: https://github.com/micropython/micropython/blob/master/p...
by water
Thu Jan 28, 2021 2:12 pm
Forum: MicroPython pyboard
Topic: SD card after ejecting and re-inserting.
Replies: 5
Views: 1461

Re: SD card after ejecting and re-inserting.

Try sd.deinit() after uos.umount('/sd') or eject SD card, and initialize 'sd' object again after re-insert SD card.
by water
Wed Jan 27, 2021 8:39 pm
Forum: Programs, Libraries and Tools
Topic: WIZnet5K use DHCP ?
Replies: 4
Views: 1478

Re: WIZnet5K use DHCP ?

That section doesn't mention DHCP at all. So I tried to build firmware for my PyBoard like this: make BOARD=PYBV11 MICROPY_PY_WIZNET5K=5500 MICROPY_PY_LWIP=1 (PYBV11 for PyBoard v1.1 in my case), and it helped, so apparently DHCP is implemented in lwIP. Good, it works. I think the lwIP module alrea...
by water
Wed Jan 27, 2021 1:38 pm
Forum: Programs, Libraries and Tools
Topic: Hi speed refresh specific area at SSD1306?
Replies: 0
Views: 203

Hi speed refresh specific area at SSD1306?

In some SSD1306 use case, just need to change specific area contents only, or likes Arduino serial plotter scroll the graphic from right to left, if use SSD1306.fill(0) then redraw entire(full screen) graphic, it will be slow and blinking extremely, someone could give some examples by other better m...
by water
Tue Jan 12, 2021 4:24 pm
Forum: General Discussion and Questions
Topic: v1.13 document .PDF version not available?
Replies: 1
Views: 645

v1.13 document .PDF version not available?

The document .pdf version isn't build automatically by Readthedocs?
by water
Sat Sep 12, 2020 7:50 am
Forum: MicroPython pyboard
Topic: pyb.I2C.SLAVE can't discover.
Replies: 5
Views: 918

Re: pyb.I2C.SLAVE can't discover.

I want to let pyboard works as I2C slave like SSD1306, BME280 ... , when receive command, do something, why those devices can do that with 2-wires ?
:?:
by water
Fri Sep 11, 2020 3:40 pm
Forum: Development of MicroPython
Topic: Repeat module in release firmware?
Replies: 3
Views: 768

Re: Repeat module in release firmware?

Thanks.