Search found 7 matches

by HolyGrail
Thu Jul 28, 2022 7:22 pm
Forum: micro:bit boards
Topic: Sending a number over SPI
Replies: 5
Views: 23676

Re: Sending a number over SPI

Thank you again for your help. I had never heard of bytearray before. I have just Googled it and now have a better understanding. I struggled to learn C but I find Python harder as it is a much larger language. Anyway, you have solved my problem. Best wishes.
by HolyGrail
Thu Jul 28, 2022 5:58 pm
Forum: micro:bit boards
Topic: Sending a number over SPI
Replies: 5
Views: 23676

Re: Sending a number over SPI

Many thanks to both of you for replying! :) I am new to Python so I am struggling with this. I want to take your advice and use an array of bytes to overcome the problem of sending integers in a string. Let's say I want to send the integers 2 and 12 consecutively. For an 'array' in MicroPython, I th...
by HolyGrail
Thu Jul 28, 2022 1:00 pm
Forum: micro:bit boards
Topic: Sending a number over SPI
Replies: 5
Views: 23676

Sending a number over SPI

I have set up an SPI link to send data from my micro:bit. The method write.spi(buffer) works fine when I am sending characters because the ASCII values are being transmitted. However, I want to be able to send numbers (up to the value of about 25). If I want to send a number between 0 and 9, that is...
by HolyGrail
Mon Jul 11, 2022 11:30 am
Forum: micro:bit boards
Topic: SPI baud rate
Replies: 3
Views: 22196

Re: SPI baud rate

Thanks, Jimmo. I can get it on a scope in a couple of weeks so that will be interesting.
by HolyGrail
Sun Jul 10, 2022 2:40 pm
Forum: micro:bit boards
Topic: SPI baud rate
Replies: 3
Views: 22196

SPI baud rate

I wonder if anyone knows what the range of SPI Baud rates are for the Micro:Bit (v2)? The docs give an example setup of baudrate = 1000000 (ie 1MHz). I have built a PIC based SPI client (slave) that drives a 20x4 line 'old fashioned' LCD display. This receives nicely from the Micro:bit. I have tried...
by HolyGrail
Sun Jul 10, 2022 2:26 pm
Forum: Other Boards
Topic: Micro:Bit topics moved to a new subforum
Replies: 3
Views: 37522

Re: Micro:Bit topics moved to a new subforum

Many thanks! :)
by HolyGrail
Fri Jul 08, 2022 3:57 pm
Forum: Other Boards
Topic: Micro:Bit topics moved to a new subforum
Replies: 3
Views: 37522

Re: Micro:Bit topics moved to a new subforum

I am a new user and I am not familiar with this forum. Should I post my questions about the BBC Micro:bit here or should I be navigating to a new subforum somewhere? I can't find one. Thanks!