Skip to content

Instantly share code, notes, and snippets.

@BenBergman
BenBergman / Cargo.toml
Last active January 21, 2020 15:06
Trying to get M0 USB working, starting with the Circuit Python Express
[package]
name = "circuit_playground_express"
version = "0.5.0"
authors = ["Paul Sajna <paulsajna@gmail.com>"]
description = "Board Support crate for the Adafruit Circuit Playground Express"
keywords = ["no-std", "arm", "cortex-m", "embedded-hal"]
license = "MIT OR Apache-2.0"
repository = "https://github.com/atsamd-rs/atsamd"
readme = "README.md"
documentation = "https://atsamd-rs.github.io/atsamd/atsamd21g18a/circuit_playground_express/"
@BenBergman
BenBergman / .tmux.conf
Last active November 29, 2022 20:11
.config/ranger/rc.conf
setw -g mode-keys vi
set-option -ga terminal-overrides ",xterm-256color:Tc" # enables TrueColor support
#run-shell "powerline-daemon -q"
#source '/usr/lib/python3.6/site-packages/powerline/bindings/tmux/powerline.conf'
#run-shell "python $(which powerline-daemon) -q"
#source '/Users/benjamin.bergman/Library/Python/2.7/lib/python/site-packages/powerline/bindings/tmux/powerline.conf'
@BenBergman
BenBergman / keybase.md
Last active November 4, 2017 17:09
Keybase proof

Keybase proof

I hereby claim:

  • I am benbergman on github.
  • I am benbergman (https://keybase.io/benbergman) on keybase.
  • I have a public key ASCpKgjsmW5HmFc_2aadwqxDwhUVQDkOpl3ZZPXVmxW1Jwo

To claim this, I am signing this object:

/* Row pin configuration
* row: 0 1 2 3 4 5 6 7 8 9 10 11
* pin: F0 F1 F4 F5 F6 F7 C6 C7 D5 D6 D7 E6
*/
static void unselect_rows(void)
{
// Hi-Z(DDR:0, PORT:0) to unselect
DDRF &= ~0b11110011; // PF: 7,6,5,4,1,0
PORTF &= ~0b11110011;
DDRC &= ~0b11000000; // PC: 7,6

Keybase proof

I hereby claim:

  • I am benbergman on github.
  • I am benbergman (https://keybase.io/benbergman) on keybase.
  • I have a public key whose fingerprint is 01D3 FED4 79DF 2D87 93A3 274C 760E 631A E14E F670

To claim this, I am signing this object:

/\ |\
/ \ | \
/ \ | \
^\ \ | \ __
| \\ \ | \ |__|
| \\ \ | | ___ ___ __ __
| \\ \ | | ||,*'_`, ,*'_`* ,*'_`* \ \ / / | | | '.*'```*,.*'```*,
| |\ \| | |.*' `.| ',' `.' ',' `.' \ \ / / | | | .''`. .''`. |
| | \ \\ | || || ||=====" || || \ \ / / | | | | | | | |
| | \ \\ | || || '`*.__., '`*__*'' \ \/ / | | | | | | | |
●─┐ Commit P - Merge O into N
│ ● Commit O after M
●─│─┐ Commit N - Merge M into L
│ ●─┘ Commit M after K
●─│─┐ Commit L - Merge K into J
│ ●─┘ Commit K - Merge J into E
●─│─┐ Commit J - Merge F into I
●─│─│─┐ Commit I - Merge H into C
│ │ │ ● Commit H after G
│ │ ● │ Commit F after C
* Commit P - Merge O into N
|\
| * Commit O after M
| |
* | Commit N - Merge M into L
|\|
| * Commit M after K
Option 1
# Maintainer: Will Price <willprice94+arch@gmail.com>
# Contributor: Andrew67 (.desktop file, icon, 64bit compatibility)
pkgname=energia
pkgver=10
pkgrel=3
pkgdesc="Energia is a Arduino IDE clone for use with the MSP430 launchpad"
arch=('i686' 'x86_64')
url="http://energia.nu/"
license=('GPL')
First Layer
===========
.---------------------------. .---------------------------.
|Esc|F1 |F2 |F3 |F4 |F5 |F6 | |F7 |F8 |F9 |F10|F11|F12|?? |
:===========================' '===========================:
|= |1 |2 |3 |4 |5 | |6 |7 |8 |9 |0 |- |
|----+---+---+---+---+---| |---+---+---+---+---+----|
|Tab |' |, |. |P |Y | |F |G |C |R |L |/ |
|----+---+---+---+---+---| |---+---+---+---+---+----|