Install necessary packages
$ sudo apt-get install gcc-avr
$ sudo apt-get install avr-libc
$ sudo apt-get install avrdude
Sample code
#include
void main()
{
}
Compiling code
$ avr-gcc -Os -mmcu=$2 file_name.c -o file_name.elf
$ avr-objcopy -j .text -O ihex file_name.elf file_name.hex
Uploading code
$ sudo avrdude -p part_name -c programmer_id \
>-U flash:w:file_name.hex
+ part_name => m16, m8
...
Browse » Home » Archives for October 2012
Saturday, October 27, 2012
Sunday, October 21, 2012
Setting up Git and Gitorious.org
1. Backup any existing ssh keys
$ cd ~/.ssh/
$ mkdir key_backup
$ mv *.pub ./key_backup/
2. Generate private ssh keys
$ ssh-keygen -t rsa -C "developer.rps@gmail.com"
$ Enter file in which to save the key: filename
$ Enter passphrase : *****
3. Add private ssh key to git.gitorious.org account
$ sudo apt-get install xclip
$ xclip -sel clip < ~/.ssh/filename.pub
...
Saturday, October 6, 2012
Software design - Proposal 01
Starting with a crude idea and refine it step by step..
Requirements
+ accept a command
+ process and understand it
+ do it
Refined 01
+ accept voice command
+ convert it to text
+ understand the text --> mostly pickup an object
+ find the object by looking around
...
Subscribe to:
Posts (Atom)