Search found 168 matches

by rhubarbdog
Tue Jun 29, 2021 1:43 pm
Forum: micro:bit boards
Topic: Poor I/O pin addressing in micro:python
Replies: 2
Views: 12168

Re: Poor I/O pin addressing in micro:python

What about

Code: Select all

for p in (pin0,  pin3, pin2,  pin2):
    p.write_digital(1)
by rhubarbdog
Tue Jun 29, 2021 1:33 pm
Forum: micro:bit boards
Topic: Disable Micro:Bit buttons A and B?
Replies: 1
Views: 10894

Re: Disable Micro:Bit buttons A and B?

The pins which have the buttons attached have a 10k pull up resistor on them. This may make them unsuitable for your electronics
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: 2350

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: 4
Views: 5640

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

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

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: 9
Views: 12971

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

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

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

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?