Skip to content

Instantly share code, notes, and snippets.

#include <QtCore/QCoreApplication>
#include <stdio.h>
#include <stdint.h>
#include "qfile.h"
// xn297 scramble table
static const uint8_t xn297_scramble[] = {
0xe3, 0xb1, 0x4b, 0xea, 0x85, 0xbc, 0xe5, 0x66,
0x0d, 0xae, 0x8c, 0x88, 0x12, 0x69, 0xee, 0x1f,
0xc7, 0x62, 0x97, 0xd5, 0x0b, 0x79, 0xca, 0xcc,
#include <SPI.h>
#include <Adafruit_GFX.h>
#include <Adafruit_PCD8544.h>
#include <CircularBuffer.h> // https://github.com/abouvier/CircularBuffer/archive/master.zip
#include <MovingAverage.h> // https://github.com/abouvier/MovingAverage/archive/master.zip
#include <TinyTimer.h> // https://github.com/abouvier/TinyTimer/archive/master.zip
#define LED_PIN 4
#define BUZZER_PIN 9 // do not change, driven by hardware counter
#define GEIGER_PIN 2 // must be D2 or D3
#include "iface_nrf24l01.h" // from nrf24_multipro, also requires nrf24l01.ino
#include <stdarg.h>
//SPI Comm.pins with nRF24L01
#define MOSI_pin 3 // MOSI - D3
#define SCK_pin 4 // SCK - D4
#define CE_pin 5 // CE - D5
#define MISO_pin A0 // MISO - A0
#define CS_pin A1 // CS - A1
0 UNKNOWN A5
1 UNKNOWN 00
2 FLUSH_TX
3 FLUSH_RX
4 W_REGISTER(07 STATUS) 70
5 W_REGISTER(1F) 12 EC 6F A1 46
6 W_REGISTER(1A) D5 21 EB 2C 5A 40
7 W_REGISTER(19) 1F
8 W_REGISTER(1E) F6 3F 5D
9 W_REGISTER(1B) 0B DF 02