Search found 84 matches

by Jim.S
Sun Jun 30, 2019 12:13 pm
Forum: Pyboard D-series
Topic: using dfu-util to upgrade pyboard-d firmware
Replies: 2
Views: 2638

Re: using dfu-util to upgrade pyboard-d firmware

Thanks, worked perfectly
by Jim.S
Sun Jun 30, 2019 12:06 pm
Forum: General Discussion and Questions
Topic: Is there a difference between usocket and socket?
Replies: 1
Views: 2111

Is there a difference between usocket and socket?

Are there any differences between import socket and import usocket This micropython 1.11 document (https://docs.micropython.org/en/latest/library/network.html) uses the following import # now use usocket as usual import usocket as socket But this example, for the esp 8266 which also works on the Pyb...
by Jim.S
Sun Jun 30, 2019 11:10 am
Forum: Pyboard D-series
Topic: using dfu-util to upgrade pyboard-d firmware
Replies: 2
Views: 2638

using dfu-util to upgrade pyboard-d firmware

What is the exact command (and options) to use dfu-util to upgrade the Pyboard-D firmware. I am confident about getting the Pyboard-D into (and out of!) dfu mode, but I want to be absolutely certain about the command I need to use to upload the firmware.
by Jim.S
Sun Jun 23, 2019 8:18 pm
Forum: Pyboard D-series
Topic: How network.WLAN reports a mac address
Replies: 2
Views: 3019

How network.WLAN reports a mac address

I'm just starting to play with my pyboard-D and I am a bit confused how it reports mac addresses. for instance, >>> w.config('mac') b'HJ0\x01\xb2\xd0' I understand that the b' means that it is a byte string and that the H means they are unsigned short integers, but I dont understand why there only s...
by Jim.S
Fri Jun 01, 2018 8:48 pm
Forum: General Discussion and Questions
Topic: uasyncio/aswitch : problem cancelling coros on the throw of a switch.
Replies: 4
Views: 3438

Re: uasyncio/aswitch : problem cancelling coros on the throw of a switch.

Eventually found the time to get this working. 1. I moved to using NamedTask as this is neater than using Cancellable with groups (at least for my case). 2. Working with classes, and making the 'cancelling function' a bound method gives a neat function/method to pass to the aswitch objects. (see the...
by Jim.S
Mon May 14, 2018 7:50 pm
Forum: General Discussion and Questions
Topic: uasyncio/aswitch : problem cancelling coros on the throw of a switch.
Replies: 4
Views: 3438

Re: uasyncio/aswitch : problem cancelling coros on the throw of a switch.

Thanks Peter, I would never have been able to figure that out.
by Jim.S
Mon May 14, 2018 7:49 pm
Forum: General Discussion and Questions
Topic: adhesive/insulation for electronics in soil
Replies: 8
Views: 5015

Re: adhesive/insulation for electronics in soil

Caveat: the following is based on opinion rather than first hand experience: I think you might have a conflict between your requirement to water proof your electronics and your requirement not to leach any undesirable chemicals into your soil. I believe that there are two types of silicone sealant, ...
by Jim.S
Sun May 13, 2018 10:13 am
Forum: General Discussion and Questions
Topic: uasyncio/aswitch : problem cancelling coros on the throw of a switch.
Replies: 4
Views: 3438

uasyncio/aswitch : problem cancelling coros on the throw of a switch.

I am having problems cancelling a coro using await asyn.Cancellable.cancel_all()) from a aswitch close_func() call I have successfully used aswitch to (a) send an event to a coro to get it to continue running (b) set a parameter to terminate a while loop, i.e. loop=asyncio.get_event_loop() self.cons...
by Jim.S
Sun May 13, 2018 8:13 am
Forum: micro:bit boards
Topic: How can a flash a micropython program that imports an external module?
Replies: 10
Views: 18000

Re: How can a flash a micropython program that imports an external module?

Yes, I have tried those but on linux Mint 17 I run into problems with the installed/available version of pyqt5.
by Jim.S
Sat May 12, 2018 7:47 pm
Forum: ESP8266 boards
Topic: Beacon frame timestamp alt to ntp
Replies: 6
Views: 4624

Re: Beacon frame timestamp alt to ntp

Where is the problem with using NTP? I will admit that I don’t understand how to connect to an NTP server and what the effect of network delays etc might be on accuracy, but a very cursory look at examples of NTP clients written in Python makes it look simple, Am I missing something. ... Ok I read y...