modif val transfert
This commit is contained in:
parent
fef20671a4
commit
7c323228f8
@ -18,7 +18,8 @@ void setup() {
|
||||
uint8_t i=0;
|
||||
void loop() {
|
||||
mySPI.beginTransaction(SPISettings(8000000, MSBFIRST, SPI_MODE0));
|
||||
int recu = mySPI.transfer(i++);
|
||||
int recu = 0;
|
||||
recu = mySPI.transfer(2);
|
||||
SerialUSB.println(recu);
|
||||
mySPI.endTransaction();
|
||||
delay(100);
|
||||
|
@ -17,10 +17,9 @@ void setup() {
|
||||
|
||||
uint8_t i=0;
|
||||
void loop() {
|
||||
SerialUSB.println(i);
|
||||
SerialUSB.println("je SPI");
|
||||
mySPI.beginTransaction(SPISettings(8000000, MSBFIRST, SPI_MODE0));
|
||||
mySPI.transfer(i++);
|
||||
mySPI.transfer(7);
|
||||
mySPI.transfer(1);
|
||||
mySPI.endTransaction();
|
||||
delay(100);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user