Search found 1465 matches

by jimmo
Thu Apr 09, 2020 6:53 am
Forum: micro:bit boards
Topic: Schematic and PCB of v1.5 microbit
Replies: 3
Views: 176

Re: Schematic and PCB of v1.5 microbit

zfm076 wrote:
Thu Apr 09, 2020 1:24 am
There is 1.3 schematic,But I didn't find the PCB of 1.3.
There has never been a released PCB design for the "production" micro:bit. Only for the reference design.
by jimmo
Thu Apr 09, 2020 12:53 am
Forum: General Discussion and Questions
Topic: microPython Code Structure Help for a Beginner
Replies: 1
Views: 67

Re: microPython Code Structure Help for a Beginner

Hi, Apologies in advance for the simplistic nature of the question. Not at all, this is a good question and I wish there was a good reference I could point you to, but nobody has really gotten around to it yet. It's ... uhh... on my list. When I use ' pyb.LED(1).on() ', what python library am I acce...
by jimmo
Thu Apr 09, 2020 12:41 am
Forum: ESP8266 boards
Topic: uasyncio attribute error
Replies: 2
Views: 42

Re: uasyncio attribute error

See this thread for more information https://forum.micropython.org/viewtopic.php?f=2&t=8116 In summary, uasyncio is going to be in the 1.13 release, but the current "daily" builds include it. It's likely that you've probably installed the 1.12 release build. Note that the version described in the "l...
by jimmo
Thu Apr 09, 2020 12:33 am
Forum: MicroPython pyboard
Topic: Parallel Output of a Byte
Replies: 4
Views: 86

Re: Parallel Output of a Byte

I need to write a byte to a GPIO port in a single operation. You can do this without Viper On the STM32 port there's a 'stm' module which gives you constants for most registers. Combined with machine.mem32 you can pretty much do anything. import machine import stm machine.mem32[stm.GPIOA] = ...
by jimmo
Thu Apr 09, 2020 12:30 am
Forum: General Discussion and Questions
Topic: socket differences between MicroPython and CPython
Replies: 4
Views: 184

Re: socket differences between MicroPython and CPython

Is that as easy as downloading the github zip and run make from the ports/unix folder ? Is there any dependencies on not so standard libraries I should install ? Yes. I'd recommend cloning the repo rather than downloading the zip. But yes cd mpy-cross make cd ../ports/unix make submodules make Othe...
by jimmo
Thu Apr 09, 2020 12:27 am
Forum: General Discussion and Questions
Topic: Question about flash memory
Replies: 5
Views: 104

Re: Question about flash memory

TvE is correct -- a Ctrl-D (soft reset) will reset the entire micropython heap (which includes all imports and Python structures). Kevin is also correct, but I think saying "it still has libraries loaded" is a bit misleading (sorry). There's no dynamic loader or concept of loading libraries, BUT the...
by jimmo
Wed Apr 08, 2020 2:15 pm
Forum: micro:bit boards
Topic: Schematic and PCB of v1.5 microbit
Replies: 3
Views: 176

Re: Schematic and PCB of v1.5 microbit

What do you need to know that isn't on the 1.3 schematic? https://github.com/bbcmicrobit/hardware (As far as I know all htey changed was the accel/mag sensors, which is described in enough detail at https://tech.microbit.org/hardware/) I'm not aware that they ever released anything other than a PDF ...
by jimmo
Wed Apr 08, 2020 2:11 pm
Forum: ESP32 boards
Topic: Software Serial with ESP32
Replies: 8
Views: 222

Re: Software Serial with ESP32

It's not currently possible to disable the UART from the REPL on ESP32. Yes, you're right, the ESP32 only has three hardware UARTs (0, 1, 2). Software UARTs are generally a terrible idea, it's very difficult to make them reliable (due to the timing), especially (counterintuitively) on more sophistic...
by jimmo
Wed Apr 08, 2020 2:06 pm
Forum: ESP8266 boards
Topic: print using %s %, ESP8266 vs ESP32
Replies: 3
Views: 100

Re: print using %s %, ESP8266 vs ESP32

der_kps wrote:
Wed Apr 08, 2020 9:29 am
What is meant with scratch?
Like writing it from the very basics (i.e. starting with sockets etc).

Much easier just to use a library where someone else has done all the work.

microdot is https://github.com/miguelgrinberg/microdot
by jimmo
Wed Apr 08, 2020 2:04 pm
Forum: ESP32 boards
Topic: BLE Scan forever stops after 7+ Hours
Replies: 13
Views: 346

Re: BLE Scan forever stops after 7+ Hours

Uh oh.

I spoke to another person who was previously seeing this issue frequently and they claim that it's solid now.

If you have any additional information about how to repro this (or if you have a really minimal test case that I can try) then that would be useful.