- Install
- Vim
sudo apt-get install vim - Git
sudo apt-get install git - Sublime
- Nodejs
- Dropbox
- Copy
- Wine
- Microcap
- Vim
- Generate SSH Key
This file contains hidden or 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
| http://www.chiefdelphi.com/forums/showpost.php?p=1366469&postcount=6 |
This file contains hidden or 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
| #include <avr/io.h> | |
| #include <avr/interrupt.h> | |
| #define F_CPU 1000000UL //processor frequency 1MHz | |
| #include <util/delay.h> | |
| #include <stdbool.h> | |
| #define output_low(port,pin) port &= ~(1<<pin) | |
| #define output_high(port,pin) port |= (1<<pin) | |
| #define set_input(portdir,pin) portdir &= ~(1<<pin) |
This file contains hidden or 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
| CC=avr-gcc | |
| CFLAGS=-g -Os -Wall -mcall-prologues -mmcu=atmega88 | |
| OBJ2HEX=avr-objcopy | |
| #UISP=/usr/local/bin/uisp | |
| TARGET=main | |
| #ADFLAGS=-p m8 -c FT232 -P /dev/tty.usbserial-A8003POq | |
| ADFLAGS=-p m88 -c avrispmkII -P usb | |
| # .PHONY means that these are not a target | |
| .PHONY: fuses prog erase |
This file contains hidden or 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
| SUBSYSTEM!="usb_device", ACTION!="add", GOTO="avrisp_end" | |
| # Atmel Corp. JTAG ICE mkII | |
| ATTR{idVendor}=="03eb", ATTR{idProduct}=="2103", MODE="660", GROUP="dialout" | |
| # Atmel Corp. AVRISP mkII | |
| ATTR{idVendor}=="03eb", ATTR{idProduct}=="2104", MODE="660", GROUP="dialout" | |
| # Atmel Corp. Dragon | |
| ATTR{idVendor}=="03eb", ATTR{idProduct}=="2107", MODE="660", GROUP="dialout" | |
| LABEL="avrisp_end" |
lines starting with a $ indicate a command to run
- Make sure you have I2C setup on your PI
$ sudo apt-get install lighttpd# install a web server$ sudo usermod -aG i2c www-data# add the cgi user to the i2c group$ mkdir -p /var/www/cgi-bin# create the cgi-bin folder
Note to the reader: Code blocks beginning with a $ are commands to be run on a RPI Rasbian shell.
- Enable I2C support
- add i2c-dev to the end of /etc/modules
- comment out (with a #) the line that says blacklist i2c-bcm2708 in /etc/modprobe.d/raspi-blacklist.conf
- Enable the current user to access I2C hardware
- install i2c-tools (includes i2cdetect and adds the i2c group) with:
$ sudo apt-get update && sudo apt-get install i2c-tools - add the current user to the i2c group with: $ sudo adduser <USER> i2c where <USER> is the username to add to the i2c group
- install i2c-tools (includes i2cdetect and adds the i2c group) with:
- Get the chip-address on the bus of a connected device
$ i2cdetect -y i2cbusWhere:
| Field Name | Value |
|---|---|
| DDNS Service | Custom |
| Do not use external ip check | No |
| DYNDNS Server | dynamicdns.park-your-domain.com |
| User Name | username (is not used) |
| Password | <alphanumeric string from Namecheaps Dynamic DNS page> |
| Host Name | <specify the subdomain. For example given test.example.com just specify test. To use DDNS on the naked domain specify @. Multiple entries can be separated by adding a -a > |
| URL | /update?domain=<example.com>&password=<same as the above password> |
| Additional DDNS Options | \ |
If you are getting an error similar to this:
Pango-WARNING **: failed to create cairo scaled font, expect ugly output. the offending font is 'Arial Bold 19.53125' at /usr/lib64/perl5/vendor_perl/dpm/canvas_module.pm line 253.
Pango-WARNING **: font_face status is: out of memory at /usr/lib64/perl5/vendor_perl/dpm/canvas_module.pm line 253.
Pango-WARNING **: scaled_font status is: out of memory at /usr/lib64/perl5/vendor_perl/dpm/canvas_module.pm line 253.
Pango-WARNING **: shaping failure, expect ugly output. shape-engine='BasicEngineFc', font='Arial Bold 19.53125', text=' 3R ' at /usr/lib64/perl5/vendor_perl/dpm/canvas_module.pm line 253.
The fix:
$ cd /usr/share
This file contains hidden or 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
| /*! | |
| * @file | |
| * | |
| * @brief Library for the TC47A* I2C temperature sensors | |
| * | |
| * @author Blake Bourque | |
| * | |
| * @date Mar 5, 2014 | |
| * | |
| * Provides readTempInC and readTempInF |