Search found 7 matches

by MicroGuy
Fri May 14, 2021 5:57 pm
Forum: micro:bit boards
Topic: Odd timing on micro:bit (V1)
Replies: 0
Views: 19

Odd timing on micro:bit (V1)

I created a short program to toggle pin 16 on a V1 board every 10 milliseconds (10,000 usec) to test timing accuracy: while True: pins.digital_write_pin(DigitalPin.P16, 1) control.wait_micros(10000) pins.digital_write_pin(DigitalPin.P16, 0) control.wait_micros(10000) A scope trace of the output sign...
by MicroGuy
Sun Mar 21, 2021 12:21 am
Forum: Programs, Libraries and Tools
Topic: Simple SPI example, please
Replies: 4
Views: 572

Re: Simple SPI example, please

Thank you. I greatly appreciate your help! --Jon
by MicroGuy
Fri Mar 19, 2021 11:47 pm
Forum: Programs, Libraries and Tools
Topic: Simple SPI example, please
Replies: 4
Views: 572

Simple SPI example, please

I would like a simple MicroPython program example that shows how to use the SPI port on a Micro:Bit board with the https://python.microbit.org/v/2 tools. I want to demonstrate to middle-school kids in a MicroPython class how they can get parallel output of a single byte on a shift register (SN74HCS2...
by MicroGuy
Sun Feb 14, 2021 12:42 am
Forum: micro:bit boards
Topic: Keyboard shortcuts?
Replies: 1
Views: 484

Keyboard shortcuts?

Does MicroPython for the BBC Micro:Bit computer have any hot keys or keyboard shortcuts? If not, it would help to have a few, one for Flash, another to toggle between the Serial and Edit windows. --Jon
by MicroGuy
Sat Jan 23, 2021 7:12 pm
Forum: Programs, Libraries and Tools
Topic: How do I create and use integer array?
Replies: 3
Views: 314

How do I create and use integer array?

<r>I'd like to know how to set up an array of integers for a micro:bit MicroPython project. The program needs to establish a 10-value array of signed integers and later read values from and put values in this array. I have read the MicroPython documentation, for example: <URL url="http://docs.microp...
by MicroGuy
Sun Jan 17, 2021 10:08 pm
Forum: micro:bit boards
Topic: Maximum and minimum int and float values?
Replies: 2
Views: 554

Re: Maximum and minimum int and float values?

Thanks for your help, Dave. I appreciate your clarifications. --Jon
by MicroGuy
Sun Jan 17, 2021 8:41 pm
Forum: micro:bit boards
Topic: Maximum and minimum int and float values?
Replies: 2
Views: 554

Maximum and minimum int and float values?

New member here... What is the range of integer and floating-point values available in MicroPython? I could not find these specifications in any online information after an hour of search time. Thanks --Jon