Search found 156 matches

by rhubarbdog
Thu May 16, 2019 3:19 pm
Forum: General Discussion and Questions
Topic: Timer with micro:bit? [SOLVED]
Replies: 3
Views: 106

Re: Timer with micro:bit? [SOLVED]

I have a clock class which updates the number of seconds kind of asynchronously. See clock.py in this repo
by rhubarbdog
Thu May 16, 2019 3:13 pm
Forum: General Discussion and Questions
Topic: How to send with radio a numerical value of a variable? [SOLVED]
Replies: 5
Views: 137

Re: How to send with radio a numerical value of a variable? [SOLVED]

ustruct is a available for microbit its just the documentation got lost from one version to the next. There's an outstanding issue on github to resolve this.
by rhubarbdog
Thu May 16, 2019 2:41 am
Forum: MicroPython pyboard
Topic: error 22 save file pyboard
Replies: 4
Views: 120

Re: error 22 save file pyboard

Still no file
by rhubarbdog
Fri May 10, 2019 9:59 am
Forum: MicroPython pyboard
Topic: The USR switch
Replies: 2
Views: 193

The USR switch

Is the USR switch on the pyboard debounced electronically or in the software (micropython)
by rhubarbdog
Wed May 08, 2019 10:44 pm
Forum: ESP8266 boards
Topic: Esp8266 in the post
Replies: 2
Views: 93

Esp8266 in the post

I thought at that price (£2.60) how can i go wrong?
The issue is my seller isn't offering much tech support.
How do i determine the size of the flash on my new board when it arrives?
by rhubarbdog
Fri Apr 26, 2019 6:38 am
Forum: MicroPython pyboard
Topic: Does the compiler omit code that will never execute?
Replies: 2
Views: 108

Does the compiler omit code that will never execute?

Code: Select all

import pyb 

DEBUG = const(0)

# some code
if DEBUG:
    print("debug info")
Does the compiler omit the if DEBUG and it's associated block. Making the code leaner and faster?
by rhubarbdog
Thu Apr 25, 2019 2:44 am
Forum: MicroPython pyboard
Topic: Debug code with pyCharm
Replies: 2
Views: 142

Re: Debug code with pyCharm

I use any editor. Usually emacs terminal or xed. To copy my code to the pyboard i have a flash script or i use rshell. To debug i use serial terminal screen to host a REPL prompt. I think you can use pyboard.py to "run a program on your laptop" and monitor the output that way The editor mu has been ...
by rhubarbdog
Wed Apr 24, 2019 8:51 am
Forum: MicroPython pyboard
Topic: Accelerometer
Replies: 4
Views: 140

Re: Accelerometer

Axis z will be 9.81G
If the pyboard is not level this will be shared into other axis
by rhubarbdog
Tue Apr 23, 2019 6:05 am
Forum: Pyboard D-series
Topic: Stuck with green LED on constantly?
Replies: 5
Views: 196

Re: Stuck with green LED on constantly?

There will be. Pyboard d is really new
by rhubarbdog
Fri Apr 19, 2019 3:25 am
Forum: Pyboard D-series
Topic: Stuck with green LED on constantly?
Replies: 5
Views: 196

Re: Stuck with green LED on constantly?

I read it in this thread
[Edit]
Have you tried from a serial terminal to get a REPL prompt and type

Code: Select all

import pyb
pyb.LED(2).off()