Search found 342 matches

by shaoziyang
Mon Nov 16, 2020 2:25 am
Forum: MicroPython pyboard
Topic: Is it possible to make pybflash disk readonly?
Replies: 3
Views: 326

Re: Is it possible to make pybflash disk readonly?

I want make pybflash disk to readonly mode, what command can be used to implement this function? os.mount() takes a `readonly` kwarg. In boot.py you can unmount /flash and then re-mount it readonly. I tried it the way you did, it does change to read-only mode in micropython, but it's still writable...
by shaoziyang
Sun Nov 15, 2020 8:51 am
Forum: MicroPython pyboard
Topic: Is it possible to make pybflash disk readonly?
Replies: 3
Views: 326

Is it possible to make pybflash disk readonly?

I want make pybflash disk to readonly mode, what command can be used to implement this function?
by shaoziyang
Mon Nov 02, 2020 2:46 pm
Forum: micro:bit boards
Topic: Microbit DAPlink or Computer or USB drive problem?
Replies: 2
Views: 278

Re: Microbit DAPlink or Computer or USB drive problem?

You can try to turn off the power saving option of USB.
by shaoziyang
Thu Oct 29, 2020 8:10 am
Forum: ESP32 boards
Topic: a small bug ESP8266 and ESP32
Replies: 1
Views: 132

a small bug ESP8266 and ESP32

I found a small bug in ESP8266 and ESP32. When import a module (such as import os), then input "os.__class__.", if press tab key, it will cause ESP32/ESP8266 reset.

Code: Select all

import os

os.__class__.
by shaoziyang
Tue Oct 27, 2020 1:57 am
Forum: Other Boards
Topic: MicroPython has been port to Quectel CAT1 module
Replies: 0
Views: 773

MicroPython has been port to Quectel CAT1 module

MicroPython has been port to Quectel CAT1 module, it is very convenient for the application of Internet of things.
quecpython.jpg
quecpython.jpg (58.81 KiB) Viewed 773 times
by shaoziyang
Thu Sep 03, 2020 12:50 am
Forum: ESP32 boards
Topic: How to use ROTARYIO from Circuitpython in Micropython ESP32?
Replies: 1
Views: 273

Re: How to use ROTARYIO from Circuitpython in Micropython ESP32?

MicroPython doesn't support ROTARYIO, but encoder is easy to use in micropython.
by shaoziyang
Sat Aug 15, 2020 2:50 am
Forum: General Discussion and Questions
Topic: i2c.readfrom timeout
Replies: 2
Views: 298

Re: i2c.readfrom timeout

You may try reduce the frequency of the I2C bus.
by shaoziyang
Fri Aug 07, 2020 7:51 am
Forum: Programs, Libraries and Tools
Topic: OneWire crc8 function usage
Replies: 1
Views: 228

Re: OneWire crc8 function usage

Code: Select all

import onewire

ow = onewire.OneWire(Pin(22))

buf=b'\x70\x01\x4b\x46\x7f\xff\x0c\x10\x40'
ow.crc8(buf)
by shaoziyang
Thu Aug 06, 2020 2:11 am
Forum: micro:bit boards
Topic: octopus temperature and humidity sensor DHT
Replies: 1
Views: 1156

Re: octopus temperature and humidity sensor DHT

dht is not build-in module in microbit. You may try BME280 or other I2C sensor.
by shaoziyang
Tue Aug 04, 2020 1:08 am
Forum: Other Boards
Topic: USB problem on STM32F411CEU6
Replies: 6
Views: 1412

Re: USB problem on STM32F411CEU6

If crystal‘s load capacitance is not match, it will takes a long time before PLL frequencies stable, exceed DFU bootloader detect time.