Search found 166 matches

by rhubarbdog
Fri Apr 05, 2019 9:01 am
Forum: MicroPython pyboard
Topic: VMWARE Ubuntu 18 - Cannot Recognise PYBOARD
Replies: 3
Views: 782

Re: Ubuntu 18 - Cannot Recognise PYBOARD

Can you interact via screen or what ever serial terminal you use
by rhubarbdog
Tue Apr 02, 2019 8:45 am
Forum: micro:bit boards
Topic: What are the overheads when switching to arm thumb assemby functions
Replies: 2
Views: 1066

Re: What are the overheads when switching to arm thumb assemby functions

I don't think it's possible/practical to interact with a ds18b20 on a microbit. The one wire protocol used in this DHT11 is custom. The comms for the ds18b20 is more complex. In the rest of micropython there's a library written in high level language. The microbit is a small device my first attempt ...
by rhubarbdog
Mon Apr 01, 2019 8:20 am
Forum: micro:bit boards
Topic: Can a microbit detect a host computer
Replies: 3
Views: 1301

Re: Can a microbit detect a host computer

I was looking at some pyboard docs. There is a function in the pyb version of micropython. I'm going to raise a feature request
by rhubarbdog
Mon Apr 01, 2019 8:14 am
Forum: MicroPython pyboard
Topic: How many adc pins can I use?
Replies: 1
Views: 556

Re: How many adc pins can I use?

Theres physically 3 adc chips covering 16 pins. You can use all 16 as far as i know. I have configured them all for use in a program i was developing and testing.
by rhubarbdog
Sun Mar 31, 2019 4:57 am
Forum: micro:bit boards
Topic: Neopixel RGBW
Replies: 21
Views: 4463

Re: Neopixel RGBW

Some of it was my bad. I had missed the call to `main()` from my python script.

Then microbit spi modes aren't as documented.

Trying other modes i get a valid response, but it's not glitch free. Especially when blanking all pixels
by rhubarbdog
Sat Mar 30, 2019 7:46 am
Forum: micro:bit boards
Topic: Neopixel RGBW
Replies: 21
Views: 4463

Re: Neopixel RGBW

Well i think spi on microbit may be buggy. I have destroyed the code @roberthh gave me and i can make my pyboard light the pixels. I have a microbit version it does nothing. I don't have any spi devices to test my microbit. It's not the wiring as i can operate the pixel with neopixel.NeoPixel(pin15,...
by rhubarbdog
Fri Mar 29, 2019 9:14 am
Forum: micro:bit boards
Topic: Neopixel RGBW
Replies: 21
Views: 4463

Re: Neopixel RGBW

Just done some preparation and read the docs on the bus. Microbit spi only supports 8 bits that code requires 32 bits. I think it's a none starter.
by rhubarbdog
Fri Mar 29, 2019 9:07 am
Forum: micro:bit boards
Topic: Neopixel RGBW
Replies: 21
Views: 4463

Re: Neopixel RGBW

I tried that code on the pyboard and it worked ok. I may have added a `machine.disable_irq()` / `machine.enable_irq()` around the actual send. I'll give it a go on microbit later and post my results
by rhubarbdog
Fri Mar 29, 2019 8:37 am
Forum: MicroPython pyboard
Topic: File io at a lower irq
Replies: 0
Views: 520

File io at a lower irq

I have a proposed program which will perform some point to point comms between 2 pyboards running an a callback say on the rising edge of a pin. One of the boards writes data to disc. I'd like this file io to be interrupted and my callback serviced. What are the issues in having lower irq file io sa...
by rhubarbdog
Fri Mar 29, 2019 1:36 am
Forum: micro:bit boards
Topic: Neopixel RGBW
Replies: 21
Views: 4463

Re: Neopixel RGBW

The only way you can interface these led with micropython on microbit it arm thumb2 assembly or
Possibly using the spi bus in a similar way
to this . The code is for the pyboard but isn't too difficult to translate. Notice the colours are specified in gbr not rgb.