User Tools

Site Tools


non-hardware_spi_example

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
non-hardware_spi_example [2014/08/20 14:58]
macegr
non-hardware_spi_example [2014/08/20 14:59] (current)
macegr
Line 3: Line 3:
 This example actually uses pins as wired on the [[http://​macetech.com/​store/​index.php?​main_page=product_info&​cPath=4&​products_id=7|ShiftBrite Shield]], which happen to be SPI pins on the [[http://​arduino.cc/​en/​Main/​ArduinoBoardDiecimila|Arduino Diecimila]] and [[http://​arduino.cc/​en/​Main/​ArduinoBoardDuemilanove|Duemilanove]]. In order to use other pins, you'll need to use some other method besides the ShiftBrite Shield to connect ShiftBrites. The exception would be the [[http://​arduino.cc/​en/​Main/​ArduinoBoardMega|Arduino Mega]], which uses other pins for the hardware SPI. Therefore, the second code listing below could be used to operate a ShiftBrite chain using a ShiftBrite shield on an [[http://​arduino.cc/​en/​Main/​ArduinoBoardMega|Arduino Mega]]. This example actually uses pins as wired on the [[http://​macetech.com/​store/​index.php?​main_page=product_info&​cPath=4&​products_id=7|ShiftBrite Shield]], which happen to be SPI pins on the [[http://​arduino.cc/​en/​Main/​ArduinoBoardDiecimila|Arduino Diecimila]] and [[http://​arduino.cc/​en/​Main/​ArduinoBoardDuemilanove|Duemilanove]]. In order to use other pins, you'll need to use some other method besides the ShiftBrite Shield to connect ShiftBrites. The exception would be the [[http://​arduino.cc/​en/​Main/​ArduinoBoardMega|Arduino Mega]], which uses other pins for the hardware SPI. Therefore, the second code listing below could be used to operate a ShiftBrite chain using a ShiftBrite shield on an [[http://​arduino.cc/​en/​Main/​ArduinoBoardMega|Arduino Mega]].
  
-===== Arduino Code =====+====== Arduino Code ======
  
 <​html><​pre><​span style="​color:​ #​7E7E7E;">/​*&​nbsp;​Ports&​nbsp;​and&​nbsp;​Pins</​span>​ <​html><​pre><​span style="​color:​ #​7E7E7E;">/​*&​nbsp;​Ports&​nbsp;​and&​nbsp;​Pins</​span>​
Line 166: Line 166:
 }</​pre></​html>​ }</​pre></​html>​
  
-===== Arduino Mega Code =====+====== Arduino Mega Code =====
  
 <​html><​pre><​span style="​color:​ #​777755;">/​* Ports and Pins</​span>​ <​html><​pre><​span style="​color:​ #​777755;">/​* Ports and Pins</​span>​
/home/macetec/public_html/docs/data/pages/non-hardware_spi_example.txt · Last modified: 2014/08/20 14:59 by macegr