diff options
| author | Abel Tim <abel@main.home> | 2024-06-03 17:38:19 +0200 |
|---|---|---|
| committer | Abel Tim <abel@main.home> | 2024-06-03 17:38:19 +0200 |
| commit | 51051da4e85ae296bedb6d3709947e5311deee07 (patch) | |
| tree | aa034dfada5c121e4e00d82d131c0d9de919cef5 /spi_comm/arduino_master_read/arduino_master_read.ino | |
| parent | 2f2acda8dc9fd863a1e45abca2efe185a42563d5 (diff) | |
| download | robotica-51051da4e85ae296bedb6d3709947e5311deee07.tar.gz robotica-51051da4e85ae296bedb6d3709947e5311deee07.zip | |
update com
Diffstat (limited to 'spi_comm/arduino_master_read/arduino_master_read.ino')
| -rw-r--r-- | spi_comm/arduino_master_read/arduino_master_read.ino | 26 |
1 files changed, 0 insertions, 26 deletions
diff --git a/spi_comm/arduino_master_read/arduino_master_read.ino b/spi_comm/arduino_master_read/arduino_master_read.ino deleted file mode 100644 index e31eac9..0000000 --- a/spi_comm/arduino_master_read/arduino_master_read.ino +++ /dev/null @@ -1,26 +0,0 @@ -#include <SPI.h> - -int x; - -void setup() { - Serial.begin(115200); - SPI.begin(); - SPI.setClockDivider(SPI_CLOCK_DIV8); - digitalWrite(SS,HIGH); - -} - -void loop() { - byte Mastersend,Mastereceive; - digitalWrite(SS, LOW); - x = 1; - Mastersend = x; - Mastereceive=SPI.transfer(Mastersend); - if(Mastereceive == 1){ - Serial.println("Master receive 1"); - } - else{ - Serial.println("Master receive 0"); - } - -} |
