Search found 27 matches
- Wed Feb 01, 2017 10:11 pm
- Forum: micro:bit boards
- Topic: Adafruit 8x8 LED matrix. More compact code?
- Replies: 11
- Views: 11790
Adafruit 8x8 LED matrix. More compact code?
Hello I am using deshipu's driver for the HT16K33 on the Adafruit backpack for their 8x8 LED matrix. To make a smiley face, I am using the following code but I was getting a memory error when compiling. I chopped out the unused bits from deshipu's driver (which is why I added an x to the name) and t...
- Tue Jan 17, 2017 9:21 am
- Forum: micro:bit boards
- Topic: Send binary data by SPI
- Replies: 9
- Views: 12267
Re: Send binary data by SPI
The LEDs don't draw any current from the micro:bit. The micro:bit just sends the serial data to the two CAT4016 shift registers on the DSP-7S04 display module using SPI protocol. Each CAT4016 shift register is fitted with a current-limiting resistor.
- Mon Jan 16, 2017 9:24 pm
- Forum: micro:bit boards
- Topic: Send binary data by SPI
- Replies: 9
- Views: 12267
Re: Send binary data by SPI
Thanks to help from deshipu, I have got the display working fully now with the BBC micro:bit. The code below just counts up to 9999 to show the operation (including adding leading zeros for numbers with fewer than 4 digits). It's not very useful as it is, but could easily be adapted to display senso...
- Mon Jan 16, 2017 9:18 am
- Forum: micro:bit boards
- Topic: Send binary data by SPI
- Replies: 9
- Views: 12267
Re: Send binary data by SPI
That's great @deshipu! Thanks again. I'm learning some useful Python
- Sun Jan 15, 2017 11:23 pm
- Forum: micro:bit boards
- Topic: Send binary data by SPI
- Replies: 9
- Views: 12267
Re: Send binary data by SPI
More help needed, please! The code below sets up a bytearray containing the bit patterns for each number 0-9 (plus decimal point) to be displayed on the 4x7-seg display (LSB is sent first). I can select a contiguous range of four numbers to be displayed e.g. in the example below spi.write(buf[0:4]) ...
- Sat Jan 14, 2017 10:57 pm
- Forum: micro:bit boards
- Topic: Send binary data by SPI
- Replies: 9
- Views: 12267
Re: Send binary data by SPI
Thank you so much! Both methods work well on my 7-digit display. I was getting close, but couldn't quite get the syntax right.
- Sat Jan 14, 2017 12:09 pm
- Forum: micro:bit boards
- Topic: Send binary data by SPI
- Replies: 9
- Views: 12267
Send binary data by SPI
I am trying to use an SPI 4 x 7-seg display to a BBC micro:bit. Everything is working fine except that, as a Python newbie, I don't know how to send 32 bits of binary data. The following code passes syntax: [code] # P.0 = BLK - turn display on/off (active low) # P.1=LAT from microbit import * from m...