User Tools

Site Tools


arduino:spi-test-controller

Differences

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

Link to this comparison view

Next revision
Previous revision
arduino:spi-test-controller [2023/07/26 02:15] – created mithatarduino:spi-test-controller [2023/07/26 02:22] (current) mithat
Line 1: Line 1:
 +Testing Arduino as SPI with two different Arduino-based peripherals. Use with [[spi-test-peripheral-even]] and [[spi-test-peripheral-odd]] counter.
 +
 <file cpp spi-test-controller.ino> <file cpp spi-test-controller.ino>
 /** /**
Line 99: Line 101:
   SPI.endTransaction();   SPI.endTransaction();
  
-  active_SPI_pin = (active_SPI_pin == SS) ? ODD_CS_PIN: SS; // toggle desired SPI device+  // toggle desired SPI device 
 +  active_SPI_pin = (active_SPI_pin == SS) ? ODD_CS_PIN: SS; 
   delay(2000);  // 2 second delay    delay(2000);  // 2 second delay 
 }  // end of loop }  // end of loop
arduino/spi-test-controller.1690337750.txt.gz · Last modified: 2023/07/26 02:15 by mithat

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki