pyboard and SPI

General discussions and questions abound development of code with MicroPython that is not hardware specific.
Target audience: MicroPython Users.
Post Reply
gratefulfrog
Posts: 149
Joined: Sun Mar 01, 2015 12:10 pm

pyboard and SPI

Post by gratefulfrog » Sun Mar 01, 2015 3:10 pm

Hi!

I'm new to the pyboard and this froum, but I justed wanted to share my first pyboard experiences with you all.

My application, the ArduGuitar, requires SPI and shift registers, so I started with a 74HC595 and the pyboard and WOW was it easy to get that going!

Here's a little video demo.

My goal was to control the outputs of the the shfit reg from the pyboard. It was pretty easy, the idea is:
  • create a latch pin and an spi object, and an object to contain the bits that will go to the shift reg
  • set the latch pin LOW,
  • send the bits
  • set the latch pin HIGH,
That's all there is!

The code with the wiring can be found my my github page.

Cheers,
Bob

Post Reply