Search found 168 matches

by rhubarbdog
Fri May 24, 2019 10:56 am
Forum: Pyboard D-series
Topic: Is my tile36 missing something or is this code sketchy
Replies: 8
Views: 7073

Is my tile36 missing something or is this code sketchy

I've just got my pyboard d and tile36. I go to the code examples I copy and paste it to a file add the lines set_i2caddr() random_dots(dt=300) I get the output Traceback (most recent call last): File "<stdin>", line 151, in <module> File "<stdin>", line 39, in set_i2caddr File "<stdin>", line 32, in...
by rhubarbdog
Wed May 22, 2019 4:56 pm
Forum: micro:bit boards
Topic: convert js to python for micro:bit
Replies: 2
Views: 3571

Re: convert js to python for micro:bit

There's a thing called EduBlocks . That mixes blocks with python. It may offer you a solution.
by rhubarbdog
Thu May 16, 2019 3:19 pm
Forum: General Discussion and Questions
Topic: Timer with micro:bit? [SOLVED]
Replies: 6
Views: 42295

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: 4745

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: 3133

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: 2385

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: 2096

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: 2742

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: 3820

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: 2927

Re: Accelerometer

Axis z will be 9.81G
If the pyboard is not level this will be shared into other axis