Skip to content

Instantly share code, notes, and snippets.

Embedded / Electronics night featuring a functionality and design demo of the μJoypad, the world's (unofficially) smallest NES controller |+ ..|
Monday, November 5th, 2012
7:00 pm
SkullSpace Lounge, 3rd floor, 125 Adelaide St.
After the success of our last embedded / electronics night, I thought we should have another! I'm proposing we get together on November 5th at 7:00
and I will start things off with a short, informal demo of my latest project, the μJoypad, a nickel sized NES controller[1][2]. I designed the board
using the free and open source tools available as part of the gEDA project and will be showing how I used those tools to quickly put together the
schematic and PCB layout.
// String I want to match: "SWI9600M_01\\.00\\.09\\.03AP R2492 CARMD-EN-10526 2011/07/01 19:31:09\n"
int validate_string_with_regex(const char *string, const char *regex_str) {
regex_t regex;
/* Compile regular expression */
int reti = regcomp(&regex, regex_str, REG_EXTENDED);
if (reti != 0) {
fprintf(stderr, "Could not compile regex\n");
return reti;
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 |/ |
|----+---+---+---+---+---| |---+---+---+---+---+----|
# 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')
* Commit P - Merge O into N
|\
| * Commit O after M
| |
* | Commit N - Merge M into L
|\|
| * Commit M after K
Option 1
●─┐ 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
/\ |\
/ \ | \
/ \ | \
^\ \ | \ __
| \\ \ | \ |__|
| \\ \ | | ___ ___ __ __
| \\ \ | | ||,*'_`, ,*'_`* ,*'_`* \ \ / / | | | '.*'```*,.*'```*,
| |\ \| | |.*' `.| ',' `.' ',' `.' \ \ / / | | | .''`. .''`. |
| | \ \\ | || || ||=====" || || \ \ / / | | | | | | | |
| | \ \\ | || || '`*.__., '`*__*'' \ \/ / | | | | | | | |

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:

/* 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
@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: