Skip to content →

Month: August 2013

Raspberry Pi Tip: Change keyboard layout

If you’re in the US like me and you start coding on your Raspberry Pi, you might quickly realize that when typing the pound key # you get the currency symbol: £

This is because the Raspberry Pi defaults to the British Keyboard layout. To change this, as sudo edit the file:

etc/default/keyboard

Change XKBLAYOUT=”gb” to XKBLAYOUT=”us”

# KEYBOARD CONFIGURATION FILE

# Consult the keyboard(5) manual page.

XKBMODEL="pc105"
XKBLAYOUT="us"
XKBVARIANT=""
XKBOPTIONS=""

BACKSPACE="guess"

Then restart your Pi.

Comments closed

Knight Rider with Arduino and AdaFruit NeoPixel

Arduino code to light a AdaFruit NeoPixel with the Kight Rider light sequence. This code was based off the Arduino Knight Rider Tutorial.

Source: https://github.com/dougdiego/KnightRiderNeoPixel

Requirements

  1. An Arduino Board. I’m using an Uno.
  2. AdaFruit NeoPixel
  3. Adafruit NeoPixel library

Instructions

  1. Install Adafruit NeoPixel library
  2. Connect the NeoPixel to ground and power. Power requirements here: AdaFruit NeoPixel
  3. Connect NeoPixel to PIN 6 of the Arduino. Connect NeoPixel ground to the ground of the Arduino.
  4. Upload KnightRiderNeoPixel to the board and run it.

Credit

This code was based off the Arduino Knight Rider Tutorial.

Knight Rider Light sequence on a Arduino with AdaFruit NeoPixel led lights from doug on Vimeo.

Comments closed