<commit_before>/// @dir test
/// Simple node-alive check, sends out one test packet per second.
// 2013-02-02 <<EMAIL>> http://opensource.org/licenses/mit-license.php

#include <JeeLib.h>

byte counter;

void setup () {
  // this is node 1 in net group 100 on the 868 MHz band
  rf12_initialize(1, RF12_868MHZ, 100);
}
  
void loop () {
  // standard idiom for waiting until we can send a new packet
  while (!rf12_canSend())
    rf12_recvDone();
  // actual packet send: broadcast to all, current counter, 1 byte long
  rf12_sendStart(0, &counter, 1);

  // next time, the counter will be one higher (it'll wrap from 255 to 0)
  ++counter;
  // let one second pass before sending out the next packet
  delay(1000);
}
<commit_msg>add LED blinking<commit_after>/// @dir test
/// Simple node-alive check, sends out one test packet per second.
// 2013-02-02 <<EMAIL>> http://opensource.org/licenses/mit-license.php

#include <JeeLib.h>

const byte LED = 9;
byte counter;

// turn the opn-bpard LED on or off
static void led (bool on) {
  pinMode(LED, OUTPUT);
  digitalWrite(LED, on ? 0 : 1);
}

void setup () {
  // this is node 1 in net group 100 on the 868 MHz band
  rf12_initialize(1, RF12_868MHZ, 100);
}
  
void loop () {
  led(true);

  // standard idiom for waiting until we can send a new packet
  while (!rf12_canSend())
    rf12_recvDone();
  // actual packet send: broadcast to all, current counter, 1 byte long
  rf12_sendStart(0, &counter, 1);

  led(false);

  // next time, the counter will be one higher (it'll wrap from 255 to 0)
  ++counter;
  // let one second pass before sending out the next packet
  delay(1000);
}

{'fraction_non_alphanumeric': 0.11797066014669927, 'fraction_numerical': 0.054400977995110025, 'mean_word_length': 3.2741514360313317, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 9, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '1975995', 'n_tokens_mistral': 618, 'n_tokens_neox': 538, 'n_words': 214}