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
// WARCAMPING | |
/* | |
* Board: | |
* https://www.sparkfun.com/products/13231 | |
* with SD card | |
* | |
* Pinout | |
* https://cdn.sparkfun.com/assets/learn_tutorials/4/4/5/esp8266-thing-pinout.png | |
* | |
* git clone https://github.com/esp8266/Arduino.git |
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 <Adafruit_NeoPixel.h> | |
#include <string.h> | |
class NeoPixel : public Adafruit_NeoPixel | |
{ | |
public: | |
NeoPixel(uint16_t pixels, uint8_t pin, uint8_t type):Adafruit_NeoPixel(pixels, pin, type){}; | |
uint32_t Color( String col_str ){ | |
// int to hex - 16 chars + terminator |
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
/** | |
* @author: Simon Burkhardt - github.com/mnemocron | |
* @date: 2017-07-02 | |
* | |
* Calibrate HobbyKing ESC (tutorial) | |
* tested with: | |
* ESC: HK-SENS-35A https://hobbyking.com/en_us/hobbykingr-tm-35a-sensored-sensorless-car-esc-1-10-1-12.html | |
* Motor: Quanum MT 1806-1600KV https://hobbyking.com/en_us/quanum-mt-series-1806-2300kv-brushless-multirotor-motor-built-by-dys.html | |
* Arduino Uno | |
* 11V / 3A bench power supply |
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
/** | |
* @author Simon Burkhardt - github.com/mnemocron | |
* @date 2017-07-02 | |
* | |
* This sketch demonstrates, that you can control a brushless DC motor wirelessly using a Dualshock 4 controller. | |
* | |
* Connections: 11.1V power supply | |
* | | |
* v | |
* Dualshock 4 --(Bluetooth)--> USB Host Shield (w/Bluetooth adapter) --> Arduino --> ESC --> brushless DC motor |
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 <Adafruit_NeoPixel.h> | |
#define PIN 6 | |
#define NUM_LEDS 8 | |
#define COLOR_PRESET 0x00F02000 // orange | |
// Parameter 1 = number of Pixels in strip | |
// Parameter 2 = Arduino pin number (most are valid) | |
// Parameter 3 = pixel type flags, add together as needed: | |
// NEO_KHZ800 800 KHz bitstream (most NeoPixel products w/WS2812 LEDs) |
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/python | |
#_*_ coding: utf-8 _*_ | |
# python unicode-spammer.py > unicodes.txt | |
# generates all possible unicode characters | |
# use the generated garbage to test the behaviour of user input fields | |
# GIGO | |
import unicodedata |
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 <EEPROM.h> | |
#include <TimerOne.h> // timer interrupts | |
#include <OneButton.h> // button library | |
#include <Adafruit_NeoPixel.h> | |
#ifdef __AVR__ | |
#include <avr/power.h> | |
#endif | |
/* |
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/python | |
#_*_ coding: utf-8 _*_ | |
''' | |
@author Simon Burkhardt - simonmartin.ch - github.com/mnemocron | |
@date 2017 | |
''' | |
import random | |
import sys # args |
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
#!/bin/bash | |
# @title : debian-setup.sh | |
# @author : Simon Burkhardt - simonmartin.ch | |
# @date : 2017-12-23 | |
# @version : 1.1.0 | |
# @copyright : CC0 - https://creativecommons.org/publicdomain/zero/1.0 | |
# @brief : Install beautiful stuff, uninstalls useless gnome bloatware | |
# @details : none | |
# @date : 10.04.2017 |
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
/** | |
* This sketch is specifically for programming the EEPROM used in the 8-bit | |
* decimal display decoder described in https://youtu.be/dLh1n2dErzE | |
* | |
* Adapted the truth table for common anode 7-segment display | |
*/ | |
#define SHIFT_DATA 2 | |
#define SHIFT_CLK 3 | |
#define SHIFT_LATCH 4 | |
#define EEPROM_D0 5 |
OlderNewer