Search found 166 matches

by rhubarbdog
Sun Jun 30, 2019 1:30 am
Forum: General Discussion and Questions
Topic: Who wants a pyboard d t-shirt
Replies: 0
Views: 147

Who wants a pyboard d t-shirt

Hi I was lucky enough to qualify for a pyboard d t-shirt pale blue in large. The thing is i don't wear t-shirts and was thinking about selling on ebay giving the procedes to charity. These are rare items i think there was only 50 made. Are you interested in buying it. If i do list it i hope the bidd...
by rhubarbdog
Mon Jun 24, 2019 3:31 pm
Forum: General Discussion and Questions
Topic: Any OSError Codes as of now?
Replies: 2
Views: 131

Re: Any OSError Codes as of now?

They are just text versions of the constants defined in file errno.h. micropython sticks to these eg ENODEV to remain lean.

If you need a translator to convert these to english you need to write a C program
by rhubarbdog
Mon Jun 10, 2019 8:35 am
Forum: MicroPython pyboard
Topic: Import Pyserial Module
Replies: 10
Views: 402

Re: Import Pyserial Module

I've connected a microbit to raspberry pi with direct uart to uart connection
by rhubarbdog
Mon Jun 03, 2019 6:42 pm
Forum: micro:bit boards
Topic: TM1637 - Grove 4 digit display
Replies: 8
Views: 765

Re: TM1637 - Grove 4 digit display

That @mcauser code is bloated. I offered this as a pull request https://github.com/rhubarbdog/microbit-tm1637

The code is slightly bigger, but it's obvious what can be deleted and therefore more useful in the very limited microbit
by rhubarbdog
Sun Jun 02, 2019 12:44 pm
Forum: ESP8266 boards
Topic: how to plot?
Replies: 7
Views: 275

Re: how to plot?

I believe what @jimmo said is sort of correct.
Mu-editor will plot results from any micropython that has USB REPL. just print your results as a tuple and Mu will plot values on the y axis and time on the x axis.

Have you tried writing your results to a file in csv format and plotting that?
by rhubarbdog
Fri May 24, 2019 2:38 pm
Forum: Pyboard D-series
Topic: Is my tile36 missing something or is this code sketchy
Replies: 8
Views: 239

Re: Is my tile36 missing something or is this code sketchy

While your doing that is it worth changing this to read

Code: Select all

def save_nvram(addr):
Writing to nv ram on the broadcast address (1) will update the nvram of all tile36 meaning that any unwanted brightness settings will be recorded for future use
by rhubarbdog
Fri May 24, 2019 1:52 pm
Forum: Pyboard D-series
Topic: Is my tile36 missing something or is this code sketchy
Replies: 8
Views: 239

Re: Is my tile36 missing something or is this code sketchy

I've read the docs. The code is sketchy it should read. def set_i2caddr(addr=60, oaddr=1): """ modify I2C address and save it to NVRAM """ ba = bytearray(b'\x02\x0eI2C ') ba[-1] = (oaddr*2) & 0xfe i2c.writeto(addr, ba) save_nvram(addr) The docs are also sketchy After setting the i2c Address you need...
by rhubarbdog
Fri May 24, 2019 11:25 am
Forum: Pyboard D-series
Topic: Is my tile36 missing something or is this code sketchy
Replies: 8
Views: 239

Re: Is my tile36 missing something or is this code sketchy

So that nvram should exist on my tile36 allowing me to give the tile an address of something different to 60?
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: 239

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

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.