Skip to content

Instantly share code, notes, and snippets.

View icetimux's full-sized avatar

Timothy de Jongh icetimux

View GitHub Profile
@La-Fleur
La-Fleur / .fix_rvm
Created February 19, 2019 14:32 — forked from szurcher/.fix_rvm
How to set RVM GEM_HOME and GEM_PATH properly for BASH + TMUX
# be sure to change the values below correctly for your system!
export GEM_HOME="$HOME/.rvm/gems/ruby-2.4.1"
export GEM_PATH="$HOME/.rvm/gems/ruby-2.4.1:$HOME/.rvm/gems/ruby-2.4.1@global"
@Wollw
Wollw / adc_example.c
Created April 16, 2012 06:00
ATmega328P ADC conversion example
/* A simple ADC example that checks the analog reading on ADC0 and turns
* an LED on if the reading is higher than a threshold value and turns if
* off if it is under that value. */
#include <avr/io.h>
#include <stdint.h>
/* Which analog pin we want to read from. The pins are labeled "ADC0"
* "ADC1" etc on the pinout in the data sheet. In this case ADC_PIN
* being 0 means we want to use ADC0. On the ATmega328P this is also
* the same as pin PC0 */