Search found 68 matches

by hlovatt
Sat Feb 26, 2022 3:58 am
Forum: Pyboard D-series
Topic: Spacers
Replies: 0
Views: 27196

Spacers

Hi, Has anyone found a suitable spacer to mount a PyBoard-D on a motherboard that is clip in rather than screw in? I can’t find official dimension but I think: holes are 1.6 mm dis on the PyBoard and you need a spacing of 4 mm to mate with W-Bus connectors on the motherboard. Thanks in advance, Howa...
by hlovatt
Wed Dec 29, 2021 2:58 am
Forum: General Discussion and Questions
Topic: Calculate percent value
Replies: 13
Views: 30918

Re: Calculate percent value

I think you need `adc0.read()` when you call `scale_value`, not just `adc0`. The error message looks like it is expecting an `int`, but you are giving it an `ADC`.
by hlovatt
Fri Nov 12, 2021 1:09 am
Forum: Announcements and News
Topic: Recent updates to MicroPython docs [GSoD 2021]
Replies: 2
Views: 58127

Re: Recent updates to MicroPython docs [GSoD 2021]

Really glad the documentation is getting some love!
by hlovatt
Sat Aug 21, 2021 2:54 am
Forum: Programs, Libraries and Tools
Topic: collections.deque doesn't do anything useful
Replies: 3
Views: 3255

Re: collections.deque doesn't do anything useful

Re-reading my post I think I'm a bit harsh on deque; it does act as a FIFO, which is useful. However it is a long way from what you would expect a deque to do.
by hlovatt
Sat Aug 21, 2021 2:48 am
Forum: Programs, Libraries and Tools
Topic: collections.deque doesn't do anything useful
Replies: 3
Views: 3255

collections.deque doesn't do anything useful

It looks like `deque` only has `append` and `popleft` and nothing else, therefore it doesn't do anything useful: MicroPython v1.16 on 2021-06-18; PYBD-SF2W with STM32F722IEK Type "help()" for more information. >>> from collections import deque >>> d = deque((), 2) >>> dir(d) ['__class__', 'append', ...
by hlovatt
Wed Jul 07, 2021 4:02 am
Forum: Pyboard D-series
Topic: Using a Ethernet cable on SF6W
Replies: 5
Views: 21189

Re: Using a Ethernet cable on SF6W

Has this ethernet shield ever been developed? Has anyone developed their own?
by hlovatt
Wed Apr 14, 2021 4:46 am
Forum: Programs, Libraries and Tools
Topic: machine.RTC documentation
Replies: 4
Views: 2937

Re: machine.RTC documentation

@pythoncoder Many thanks.
by hlovatt
Mon Apr 12, 2021 6:42 am
Forum: Programs, Libraries and Tools
Topic: machine.RTC documentation
Replies: 4
Views: 2937

Re: machine.RTC documentation

@mattyt Thanks. Does that mean newer boards conform to machine.RTC?
by hlovatt
Sun Apr 11, 2021 11:22 pm
Forum: Programs, Libraries and Tools
Topic: machine.RTC documentation
Replies: 4
Views: 2937

machine.RTC documentation

Using the latest build on a PyBoard: MicroPython v1.14-68-gd4b45898f on 2021-02-18; PYBv1.1 with STM32F405RG I'm having trouble with `machine.RTC`, the example given in the documentation doesn't work: >>> import machine >>> rtc = machine.RTC() So far so good, but: >>> rtc.init((2014, 5, 1, 4, 13, 0,...
by hlovatt
Fri Oct 09, 2020 10:00 pm
Forum: Development of MicroPython
Topic: Doc change pull requests languishing
Replies: 4
Views: 3018

Re: Doc change pull requests languishing

OK I have closed all the old requests and resubmitted new ones: https://github.com/micropython/micropython/pull/6528 https://github.com/micropython/micropython/pull/6529 https://github.com/micropython/micropython/pull/6531 https://github.com/micropython/micropython/pull/6532 https://github.com/micro...