Changes between Version 9 and Version 10 of SujetTP6-2016
- Timestamp:
- Mar 18, 2016, 12:20:06 PM (9 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
SujetTP6-2016
v9 v10 105 105 #include <SPI.h> 106 106 #include "RF24.h" 107 #include "printf.h" 107 108 108 109 RF24 radio(9,10); // radio(CE,CS) … … 112 113 void setup() { 113 114 Serial.begin(115200); 115 printf_begin(); 114 116 radio.begin(); 115 117 radio.setPALevel(RF24_PA_LOW); 116 118 radio.openWritingPipe(addresses[0]); 117 119 radio.printDetails(); 120 delay(1000); 118 121 } 119 122 120 123 121 124 void loop() { 122 Serial.println(F("Now sending "));125 Serial.println(F("Now sending !")); 123 126 124 127 unsigned long start_time = millis(); // Take the time, and send it. This will block until complete 125 128 if (!radio.write( &start_time, sizeof(unsigned long) )){ 126 Serial.println(F("failed "));129 Serial.println(F("failed!")); 127 130 } 128 131 … … 136 139 #include <SPI.h> 137 140 #include "RF24.h" 141 #include "printf.h" 138 142 139 143 RF24 radio(9,10); … … 143 147 void setup() { 144 148 Serial.begin(115200); 149 printf_begin(); 145 150 radio.begin(); 146 151 radio.setPALevel(RF24_PA_LOW);