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
// Written by Nick Gammon | |
// February 2011 | |
/** | |
* Send arbitrary number of bits at whatever clock rate (tested at 500 KHZ and 500 HZ). | |
* This script will capture the SPI bytes, when a '\n' is recieved it will then output | |
* the captured byte stream via the serial. | |
*/ | |
#include <SPI.h> |
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
/* --------------------------------------------------------------------- | |
* PWM LED Brightness control for ATtiny13. | |
* Datasheet for ATtiny13: http://www.atmel.com/images/doc2535.pdf | |
* | |
* Pin configuration - | |
* PB1/OC0B: LED output (Pin 6) | |
* PB2/ADC1: Potentiometer input (Pin 7) | |
* | |
* ~100 bytes. | |
* |
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
/* | |
* Attiny10 AIRBOAT PWM Motor control code | |
* | |
* Created: 12/2/2016 6:17:47 PM | |
* Author : josh | |
*/ | |
#include <avr/io.h> | |
#include <util/delay.h> |
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 | |
set -e | |
update_version(){ | |
if [[ "$DONT_BUMP_VERSION" -ne "1" ]] | |
then | |
echo " Bumping version.. " | |
else | |
echo "Version will not be bumped since variable DONT_BUMP_VERSION is set." | |
exit 0 |
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
'use strict'; | |
var classes = classes || {}; | |
classes.PidController = function () { | |
var self = {}, | |
privateScope = {}; | |
/** |
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
Here are the instructions to installing Docker CE on Linux Mint 18.1 Serena. | |
Step1. `sudo apt-get install apt-transport-https ca-certificates curl software-properties-common` | |
Step2. `curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -` | |
The following line in the SOURCE automatically determines the distribution, which is Serena, | |
but there are no Linux Mint packages for Docker. You have to change it to the matching Ubuntu distribution. | |
FYI Linux Mint Serena is based on Ubuntu 16.04 Xenial. |
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
export const RGB_COLOR_REGEX = /\((\d+),\s*(\d+),\s*(\d+)(,\s*(\d*.\d*))?\)/; | |
export class Color { | |
public r: number; | |
public g: number; | |
public b: number; | |
public a: number; | |
constructor() | |
constructor(colorStr?: string) |
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
#source [find interface/stlink-v2-1.cfg] | |
source [find interface/stlink-v2.cfg] | |
transport select hla_swd | |
source [find target/stm32f1x.cfg] | |
#reset_config srst_only | |
reset_config none separate |