Search found 5 matches

by kjw
Wed Oct 28, 2020 3:42 pm
Forum: Development of MicroPython
Topic: More detail for MemoryError exceptions
Replies: 0
Views: 1200

More detail for MemoryError exceptions

I've had a few troublesome MemoryError exceptions in CircuitPython recently and from what I've seen on MicroPython on micro:bit the issue is the same. The tricky ones for me fall into four categories: feels like there's enough memory around but still fails, sometimes explicity gc.mem_free() "profili...
by kjw
Sat Aug 22, 2020 4:32 pm
Forum: General Discussion and Questions
Topic: get_mode for micro:bit pins with analog read and write
Replies: 1
Views: 353

get_mode for micro:bit pins with analog read and write

I can't find the documentation for the BBC micro:bit MicroPython's get_mode() method on the pins. It appears to be set all the time to a useful value apart from for read_analog() where it returns unused for some reason? MicroPython v1.9.2-34-gd64154c73 on 2017-09-01; micro:bit v1.0.1 with nRF51822 T...
by kjw
Thu Aug 06, 2020 7:16 pm
Forum: Development of MicroPython
Topic: bytes() makes a new copy of a bytes variable
Replies: 2
Views: 725

bytes() makes a new copy of a bytes variable

I noticed this in CircuitPython but just tested a micro:bit and it does the same thing. bytes() makes a new copy of an object even if it's bytes() already. MicroPython v1.9.2-34-gd64154c73 on 2017-09-01; micro:bit v1.0.1 with nRF51822 Type "help()" for more information. >>> >>> a = b"Original" >>> b...
by kjw
Thu Aug 06, 2020 7:10 pm
Forum: micro:bit boards
Topic: Accessing the row pins for LED display
Replies: 2
Views: 939

Re: Accessing the row pins for LED display

Thanks for the info. It reminds me of the days of peek and poke!
by kjw
Wed Jun 17, 2020 11:40 am
Forum: micro:bit boards
Topic: Accessing the row pins for LED display
Replies: 2
Views: 939

Accessing the row pins for LED display

Is it possible to access the pins for the rows of the LED display to allow direct, low-level control of the LED screen after a display_off(), of course? The columns appear to be available as microbit.pinX but I've not worked out how to access the rows.