Compare commits
No commits in common. "dev" and "main" have entirely different histories.
@ -95,9 +95,6 @@ void write() {
|
|||||||
/* Serial.print(","); */
|
/* Serial.print(","); */
|
||||||
/* } */
|
/* } */
|
||||||
/* Serial.println("."); */
|
/* Serial.println("."); */
|
||||||
// transfer the size in LE
|
|
||||||
SPI.transfer(static_cast<uint8_t>(size));
|
|
||||||
SPI.transfer(static_cast<uint8_t>(size >> 8));
|
|
||||||
|
|
||||||
SPI.transfer(buffer, size);
|
SPI.transfer(buffer, size);
|
||||||
Serial.write(ControlBytes::WRITE);
|
Serial.write(ControlBytes::WRITE);
|
||||||
@ -157,14 +154,6 @@ void loop() {
|
|||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
case ControlBytes::WRITE: {
|
case ControlBytes::WRITE: {
|
||||||
digitalWrite(LEDG, LOW);
|
|
||||||
digitalWrite(LEDR, HIGH);
|
|
||||||
read();
|
|
||||||
digitalWrite(LEDR, LOW);
|
|
||||||
digitalWrite(LEDG, HIGH);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
case ControlBytes::READ: {
|
|
||||||
digitalWrite(LEDG, LOW);
|
digitalWrite(LEDG, LOW);
|
||||||
digitalWrite(LEDR, HIGH);
|
digitalWrite(LEDR, HIGH);
|
||||||
write();
|
write();
|
||||||
|
Loading…
Reference in New Issue
Block a user