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 <FastLED.h> | |
// WS2801 clock & data pins (use hardware spi) | |
#define CLOCK_pin 13 | |
#define DATA_pin 11 | |
// Create a buffer for holding the colors (3 bytes per color). | |
#define LED_COUNT 30 | |
CRGB colors[LED_COUNT]; |
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
// Arduino code for Alarm Clock with TSA1605A 8x14 segments micro leds display | |
// Goebish 2013 (twitter: @goebish) | |
// | |
// This code is distributed in the hope that it will be useful for everyone but it is distributed | |
// without any warranty. It is provided "as is" without warranty of any kind, either expressed or | |
// implied, including, but not limited to, the implied warranties of merchantability and fitness for a | |
// particular purpose. The entire risk as to the quality and performance of the code is with you. | |
// Should the code prove defective, you assume the cost of all necessary servicing, repair or | |
// correction. In no event will the author of the code be liable to you for damages, including | |
// any general, special, incidental or consequential damages arising out of the use of the code, |
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
// Update : a xn297 is not required anymore, it can be emulated with a nRF24l01 : | |
// https://gist.github.com/goebish/ab4bc5f2dfb1ac404d3e | |
// ************************************************************** | |
// ****************** CX-10 Tx Code (blue PCB) ****************** | |
// by goebish on RCgroups.com | |
// based on green pcb cx-10 TX code by closedsink on RCgroups.com | |
// based largely on flysky code by midelic on RCgroups.com | |
// Thanks to PhracturedBlue, hexfet, ThierryRC | |
// Hasi for his arduino PPM decoder |
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
// ************************************************************** | |
// ******************* Eachine X4 3D Tx Code ******************* | |
// by goebish on RCgroups.com | |
// Hardware any M8/M168/M328 setup(arduino promini,duemilanove...as) | |
// !!! take care when flashing the AVR, the XN297 RF chip supports 3.6V max !!! | |
// !!! use a 3.3V programmer or disconnect the RF module when flashing. !!! | |
// !!! XN297 inputs are not 5 Volt tolerant, use a 3.3V MCU or logic level !!! | |
// !!! adapter or voltage divider on MOSI/SCK/CS/CE if using 5V MCU !!! | |
// DIY Eachine X4 3D RF module - XN297 and circuitry harvested from stock controller |
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 ... |
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
#!/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
// 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
//#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
// 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; |
OlderNewer