Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
spiffchorder:chord_creation [2008/01/05 18:57]
priestdo
spiffchorder:chord_creation [2008/01/16 09:03]
priestdo
Line 5: Line 5:
   * [[#The Format of the .h file]]   * [[#The Format of the .h file]]
   * [[#Building the Cross Compiler]]   * [[#Building the Cross Compiler]]
-  * [[#​Programming the pic the First Time]] +  * [[#​Programming the AVR the First Time]] 
-  * [[#​Programming the pic over USB]]+  * [[#​Programming the AVR over USB]]
  
  
 ===== Layout or How Many Thumbs?​===== ===== Layout or How Many Thumbs?​=====
 +
  
  
Line 15: Line 16:
 ===== Code Considerations ===== ===== Code Considerations =====
  
- * [[#3 modes available]] +  ​* [[#3 modes available]] 
- * [[#​keycodes.h]] +  * [[#​keycodes.h]] 
- * [[#​Planning]]+  * [[#​Planning]]
  
 ==== 3 modes available ==== ==== 3 modes available ====
 +
  
  
Line 25: Line 27:
 ==== keycodes.h ==== ==== keycodes.h ====
  
-The keycodes.h file contains the names you will assign to your chords.+The {{spiffchorder:​keycodes.h|keycodes.h}} ​file contains the names you will assign to your chords.
 Unless you want to rewright some of the code (which you are more than welcome to do) you are restrictied to these key codes. ​ They are the usb keyboard key codes, the codes for the spiffchorder mode manipulation and some special codes that are translated by the program into a sequence of usb key codes. ​ There are a few kinds of lines in keycodes.h, any section beginning with slash asterik ''/​*''​ is a comment section up through the ''​*/''​. ​ Anything following 2 slashes ''​%%//​%%''​ is a comment from there through the end of that line.  Other than comments, there are several types of lines you need to know about: Unless you want to rewright some of the code (which you are more than welcome to do) you are restrictied to these key codes. ​ They are the usb keyboard key codes, the codes for the spiffchorder mode manipulation and some special codes that are translated by the program into a sequence of usb key codes. ​ There are a few kinds of lines in keycodes.h, any section beginning with slash asterik ''/​*''​ is a comment section up through the ''​*/''​. ​ Anything following 2 slashes ''​%%//​%%''​ is a comment from there through the end of that line.  Other than comments, there are several types of lines you need to know about:
  
Line 66: Line 68:
   * [[#Windows Cross Compiler]]   * [[#Windows Cross Compiler]]
   * [[#Linux Cross Compiler]]   * [[#Linux Cross Compiler]]
 +
  
 ==== Windows Cross Compiler ==== ==== Windows Cross Compiler ====
 +
 +For compiling the SpiffChorder firmware under Microsoft Windows, the easiest solution is to use [[http://​winavr.sourceforge.net/​|WinAVR]]. This package contains the avr-gcc tool-chain, avr-libc and some other utilities, including the avrdude programming software and Programmers Notepad, all compiled into a single Windows installation package.
 +
 +The majority of the development on the SpiffChorder was done with WinAVR, and using the Programmers Notepad editor. It worked for me, so it should work for you as well (provided you have a Windows installation).
  
 ==== Linux Cross Compiler ==== ==== Linux Cross Compiler ====
  
 +AVR-GCC, ​
  
-===== Programming the pic the First Time =====+Under Xubuntu 7.10 (which is what I run) I installed avr-libc, binutils-avr and gcc-avr from the ubuntu repositories using apt-get (or synaptic). ​   
 + 
 + 
 +===== Programming the AVR the First Time =====
  
 [[http://​www.fischl.de/​avrusbboot/​]] [[http://​www.fischl.de/​avrusbboot/​]]
  
-===== Programming the pic over USB ===== + 
 +===== Programming the AVR over USB ===== 
  
 [[http://​www.fischl.de/​avrusbboot/​]] [[http://​www.fischl.de/​avrusbboot/​]]
  
spiffchorder/chord_creation.txt · Last modified: 2008/01/16 09:05 by priestdo
Top of the Wiki www.chimeric.de Creative Commons License Valid CSS Driven by DokuWiki Recent changes RSS feed Valid XHTML 1.0