This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#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, |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// dump rxid / address pairs out of the Bugs3 Mini stock TX | |
// https://i.imgur.com/i1ZzG9Z.jpg | |
#include <SPI.h> | |
#include "iface_nrf24l01.h" | |
// also require nRF24L01.ino, softSPI.ino and XN297_emu.ino | |
// from the nrf24-multipro project to be in the same folder | |
char buf [100]; | |
volatile byte pos; | |
volatile boolean process_it; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//#define CALIBRATE | |
//#define GRID | |
const double SERVO_LEFT_ZERO = 1890; // 1800 | |
const double SERVO_RIGHT_ZERO = 900; // 850 | |
const double SERVO_LEFT_SCALE = 600; // 600 | |
const double SERVO_RIGHT_SCALE = 540; // 570 | |
//#define OPTION_12_HOUR //12 or 24 hour time |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
// PWM2LED | |
// goebish 2017 | |
// | |
#include <FastLED.h> // (lib available at https://github.com/FastLED/FastLED/archive/master.zip ) | |
// see https://github.com/FastLED/FastLED/wiki/Pixel-reference for reference | |
// settings | |
#define NUM_LEDS 12 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
reg_map = { | |
0x00 : "00_MODE", | |
0x01 : "01_MODE_CONTROL", | |
0x02 : "02_CALC", | |
0x03 : "03_FIFOI", | |
0x04 : "04_FIFOII", | |
0x05 : "05_FIFO_DATA", | |
0x06 : "06_ID_DATA", |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
DEBUG = -O3 | |
CC = g++ -std=c++ | |
INCLUDE = -I/usr/local/include | |
CFLAGS = $(DEBUG) -Wall $(INCLUDE) -Winline -pipe | |
LDFLAGS = -L/usr/local/lib | |
LDLIBS = -lwiringPi -lwiringPiDev -lpthread -lm | |
SRC = m63.cpp | |
OBJ = $(SRC:.cpp=.o) | |
BINS = $(SRC:.cpp=) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/************************************************************* | |
************* nRF24 Cheerson CX-10 Tx Code ****************** | |
************* (Green & Blue boards) ****************** | |
************************************************************** | |
by goebish on RCgroups.com | |
Thanks to: | |
PhracturedBlue, victzh, hexfet, closedsink, midelic, Hasi ... |
NewerOlder