User Tools

Site Tools


arduino:gammon-spi-controller

Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
arduino:gammon-spi-controller [2023/07/24 17:43] mithatarduino:gammon-spi-controller [2023/07/24 17:45] mithat
Line 1: Line 1:
 +From [[http://www.gammon.com.au/spi|SPI - Serial Peripheral Interface - for Arduino]] by Nick Gammon. Modified to use fill speed SPI clock.
 +
 +<file cpp gammon-spi-controller.ino>
 // Written by Nick Gammon // Written by Nick Gammon
 // February 2011 // February 2011
Line 7: Line 10:
 void setup (void) void setup (void)
 { {
- 
   digitalWrite(SS, HIGH);  // ensure SS stays high for now   digitalWrite(SS, HIGH);  // ensure SS stays high for now
  
Line 16: Line 18:
  
   // Slow down the master a bit   // Slow down the master a bit
-//  SPI.setClockDivider(SPI_CLOCK_DIV8);  // mithat: let's go full speed+  // SPI.setClockDivider(SPI_CLOCK_DIV8);  // mithat: let's go full speed
      
 }  // end of setup }  // end of setup
Line 23: Line 25:
 void loop (void) void loop (void)
 { {
- 
   char c;   char c;
  
arduino/gammon-spi-controller.txt · Last modified: 2023/07/24 18:43 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki