Search found 20 matches

by Siriushardware
Mon Mar 11, 2019 10:49 pm
Forum: micro:bit boards
Topic: Setting time of day from an external source?
Replies: 3
Views: 378

Re: Setting time of day from an external source?

I haven't tried using Bluetooth on the Micro:Bit so I don't know what its limitations are but since the Micro:Bit has Bluetooth surely that would be the simplest common interface between the Iphone and the Micro:Bit?
by Siriushardware
Tue Aug 21, 2018 8:00 pm
Forum: micro:bit boards
Topic: Create read-only array in code memory, not RAM?
Replies: 9
Views: 846

Re: Create read-only array in code memory, not RAM?

jickster wrote:
Tue Aug 21, 2018 12:38 am
You CANNOT put something in flash memory simply by using “const” qualifier like you can in C.
Although disappointing, that is essentially what I needed to know, for now. Thanks for taking the steps to suggest it to be implemented.
by Siriushardware
Mon Aug 20, 2018 10:12 pm
Forum: micro:bit boards
Topic: Create read-only array in code memory, not RAM?
Replies: 9
Views: 846

Re: Create read-only array in code memory, not RAM?

Thank you, I read that, but I still don't get it. I think I must have a blind spot for Python because, try as I might, I can rarely find a simple defined example which shows exactly what I think I want to do when looking through Python related docs. That document shows how to declare a simple variab...
by Siriushardware
Mon Aug 20, 2018 7:21 pm
Forum: micro:bit boards
Topic: Create read-only array in code memory, not RAM?
Replies: 9
Views: 846

Create read-only array in code memory, not RAM?

I have a need to define some two dimensional arrays which, at run-time, will be read-only. I would therefore prefer them to be created in code memory rather than in precious RAM. In 'C' I would force them to be created in ROM by declaring the array as CONST unsigned char myarray=.... etc, is there a...
by Siriushardware
Mon Aug 20, 2018 6:19 pm
Forum: micro:bit boards
Topic: pin0.is_touched(), does it work?
Replies: 1
Views: 384

Re: pin0.is_touched(), does it work?

In answer to your question, and somewhat to my surprise, I find this works the same way for me as it does for you, that is, I have to provide a resistance path to 0V to get the image to change. If I dampen my thumbs a little and press them to pin0 and GND respectively, then the image changes. As far...
by Siriushardware
Mon Aug 20, 2018 6:06 pm
Forum: micro:bit boards
Topic: pullUP and pullDOWN with read_digital()
Replies: 4
Views: 1137

Re: pullUP and pullDOWN with read_digital()

Having finally installed Mu 1.0 with its support for PULL_UP and PULL_DOWN modes on the Micro:Bit, I can confirm that this slightly unorthodox bit of code produces a slow squarewave output on Pin 1 when pin 1 is programmed as an INPUT. from microbit import * x = pin1.read_digital() while(1): pin1.se...
by Siriushardware
Thu Aug 02, 2018 8:47 pm
Forum: micro:bit boards
Topic: 'Best' way to program MicroPython on the micro:bit
Replies: 12
Views: 3632

Re: 'Best' way to program MicroPython on the micro:bit

When you say 'firmware', is that something which needs to be uploaded separately one-time to the Micro:Bit, or is the firmware embedded in all .Hex files generated by Mu and sent to the Micro:Bit? I've never been entirely clear whether the Micro: Bit has an onboard OS / Firmware , or whether it only...
by Siriushardware
Wed Jul 25, 2018 8:09 pm
Forum: micro:bit boards
Topic: 'Best' way to program MicroPython on the micro:bit
Replies: 12
Views: 3632

Re: 'Best' way to program MicroPython on the micro:bit

I have been checking back periodically and today, 25th July 2018, I found that the default version of Mu available for download is...

Mu 1.0.
by Siriushardware
Thu Jun 28, 2018 7:49 pm
Forum: micro:bit boards
Topic: 'Best' way to program MicroPython on the micro:bit
Replies: 12
Views: 3632

Re: 'Best' way to program MicroPython on the micro:bit

As a matter of interest, the 1.0 Beta is now the default version available for download on the official Mu Website:

https://codewith.mu/en/download

At the time of writing (June 2018) it sounds as though Mu V1 (stable release) will become the current version quite soon.
by Siriushardware
Mon Apr 23, 2018 6:05 pm
Forum: micro:bit boards
Topic: pullUP and pullDOWN with read_digital()
Replies: 4
Views: 1137

Re: pullUP and pullDOWN with read_digital()

I had an earlier thread partly dealing with this, during which I found that you can query all the available properties for any given pin using repl. For example, if I query pin 0 by entering dir(pin0) <enter> then I get this result for Pin0: dir(pin0) ['write_digital', 'read_digital', 'write_analog'...