Changes between Version 9 and Version 10 of SujetTP6-2016


Ignore:
Timestamp:
Mar 18, 2016, 12:20:06 PM (9 years ago)
Author:
franck
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SujetTP6-2016

    v9 v10  
    105105#include <SPI.h>
    106106#include "RF24.h"
     107#include "printf.h"
    107108
    108109RF24 radio(9,10); // radio(CE,CS)
     
    112113void setup() {
    113114  Serial.begin(115200);
     115  printf_begin();
    114116  radio.begin();
    115117  radio.setPALevel(RF24_PA_LOW);
    116118  radio.openWritingPipe(addresses[0]);
    117119  radio.printDetails();
     120  delay(1000);
    118121}
    119122
    120123
    121124void loop() {
    122   Serial.println(F("Now sending"));
     125  Serial.println(F("Now sending !"));
    123126
    124127  unsigned long start_time = millis();                             // Take the time, and send it.  This will block until complete
    125128  if (!radio.write( &start_time, sizeof(unsigned long) )){
    126      Serial.println(F("failed"));
     129     Serial.println(F("failed!"));
    127130  }
    128131 
     
    136139#include <SPI.h>
    137140#include "RF24.h"
     141#include "printf.h"
    138142
    139143RF24 radio(9,10);
     
    143147void setup() {
    144148  Serial.begin(115200);
     149  printf_begin();
    145150  radio.begin();
    146151  radio.setPALevel(RF24_PA_LOW);