Search found 3416 matches

by dhylands
Wed Jul 01, 2020 6:17 pm
Forum: General Discussion and Questions
Topic: Where is correct doc source?
Replies: 6
Views: 250

Re: Where is correct doc source?

I think its the second one, which is really just a frontend for: https://github.com/micropython/micropyt ... cs/library

The first one, should be a "rendering" of whatever is found in the github repository.
by dhylands
Wed Jul 01, 2020 5:27 pm
Forum: General Discussion and Questions
Topic: RTC callback
Replies: 8
Views: 316

Re: RTC callback

On the STM32, the callback is actually an ExtInt callback and the argument is the line that caused the interrupt. For the RTC on the STM32F405, there are 3 different reasons (i.e. values of line) the RTC interrupt can be called. 17 = RTC Alarm 21 = RTC Tamper/RTC Timestamp 22 = RTC Wakeup In theory,...
by dhylands
Tue Jun 30, 2020 6:16 pm
Forum: Other Boards
Topic: Pybricks: MicroPython for LEGO
Replies: 7
Views: 951

Re: Pybricks: MicroPython for LEGO

One way would be to use a for loop, so your code would now look like this: #!/usr/bin/env pybricks-micropython from pybricks.hubs import EV3Brick from pybricks.ev3devices import Motor from pybricks.parameters import Port from pybricks.robotics import DriveBase ev3 = EV3Brick() left_motor = Motor(Por...
by dhylands
Thu Jun 25, 2020 9:42 pm
Forum: Other Boards
Topic: WeAct STM32F411CEU6 black pill
Replies: 22
Views: 7223

Re: WeAct STM32F411CEU6 black pill

According to the datasheet, 3 wait states should be used for 90-100 MHz with a voltage of 2.7V to 3.6V.

2 wait states is recommended for 64-90 MHz (same voltage range).
by dhylands
Tue Jun 23, 2020 8:53 pm
Forum: General Discussion and Questions
Topic: What does `\*` mean in `pyb.mount` documentation?
Replies: 7
Views: 404

Re: What does `\*` mean in `pyb.mount` documentation?

The convention seems to be that \* is used to document the divide between required positional arguments and optional (typically keyword) arguments. You can see other examples here: http://docs.micropython.org/en/latest/library/machine.SPI.html#machine.SPI.init My understanding is that arguments afte...
by dhylands
Mon Jun 22, 2020 10:51 pm
Forum: General Discussion and Questions
Topic: Execution not continuing after button interrupt.
Replies: 4
Views: 243

Re: Execution not continuing after button interrupt.

SpotlightKid wrote:
Mon Jun 22, 2020 9:40 pm
What are you replying to?
Sorry - my fault - that was a moderated post and I forgot to click approve before replying.
by dhylands
Mon Jun 22, 2020 8:31 pm
Forum: General Discussion and Questions
Topic: Execution not continuing after button interrupt.
Replies: 4
Views: 243

Re: Execution not continuing after button interrupt.

Why does your on_pressed call main? on_pressed is your ISR callback routine. When it runs the timer interrupts are disabled. When you turn around and call main from the callback, main is now running with timer interrupts disabled.
by dhylands
Fri Jun 19, 2020 7:30 pm
Forum: MicroPython pyboard
Topic: USR switch and MAX6816 debouncer
Replies: 2
Views: 218

Re: USR switch and MAX6816 debouncer

The max6816 output appears to be push-pull rather than open-drain, which is why the on-board button no longer works (the 6816 is driving the signal high).

So you need to have the 6816 drive a transistor or using an open-drain buffer like the 74LVC1G07
by dhylands
Thu Jun 18, 2020 9:06 pm
Forum: Development of MicroPython
Topic: tranformation MP_QSTR__slash_lib into /lib
Replies: 6
Views: 747

Re: tranformation MP_QSTR__slash_lib into /lib

It looks like you need to add a line:

Code: Select all

Q(/lib)
to your qstrdefsport.h file.