Differences

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

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
en:examples [2010/03/01 19:54] priitjen:examples [Unknown date] (current) – external edit (Unknown date) 127.0.0.1
Line 1: Line 1:
-====== Examples ======+====== AVR Practical Examples ======
  
-{{  :images:book:examples.jpg?580  |}}+{{  :kit:kodulabor3_komponendid_v.png?600  |}}
  
-Practical examples are built up in uniform style and as concrete as possible. Each example begins with a short introduction of the theory and gives necessary knowledges for completing the following practical part. Practical part contains commented example of the source code of the software. Generally the library of the HomeLab is used in the example of the code, but at some cases the registers are also configured. The first chapter is a little bit different and has a bit different goal. It describes installation and set-up of necessary software. The examples are about Windows and Linux operation systems. Chapters and practical examples after the first chapter are suitable for both OS and development software.+Practical examples are built up in uniform style and as concrete as possible. Each example begins with a short introduction of the theory and gives necessary knowledges for completing the following practical part. Practical part contains commented example of the source code of the software. Generally the library of the HomeLab is used in the example of the code, but in some cases the registers are also configured. The first chapter is a little bit different with a bit different goal. It describes installation and set-up of necessary software. The examples are about Windows and Linux operation systems. Chapters and practical examples after the first chapter are suitable for both OS and development software.
  
-~~PB~~+<pagebreak>
  
 **Buildup** **Buildup**
Line 19: Line 19:
 **Basic software of the examples** **Basic software of the examples**
  
-As mentioned before, practical code samples are composed on the basis of the library of the HomeLab. There are most used specific AVR operations and procedures connected with the HomeLab’s modules written in the library. The usage of the library means that the user does not have to write a hardware close ??capable for using registers?? program code to start the modules, although this opportunity exists always. Separating the software which communicates with hardware from the examples and exercises, allows the user to focus on creating his/hers own algorithm instead of peculiarities not connected to the hardware. +As mentioned before, practical code samples are composed on the basis of the library of the HomeLab. There are most used specific AVR operations and procedures connected with the HomeLab’s modules written in the library. The usage of the library means that in order to start the modules the user does not have to write a hardware-like program code which uses registers, although this opportunity always exists. Separating the software which communicates with hardware from the examples and exercises, allows the user to focus on creating his/hers own algorithm instead of peculiarities not connected to the hardware. 
  
 **Code style of the examples** **Code style of the examples**
  
-Näidisprogrammid on kirjutatud ühes stiiliset programmikood oleks ülevaatlikumÜhtne stiil teeb programmi loetavaks ja välistab kergemate süntaksivigade tekkimistKindlat stiili on soovitatav järgida ka harjutusülesannete tegemiselStiili peamised iseloomustajad:+The example programs are written in one styleto achieve more synoptic program codeUniform style makes the program more readable and prevents making simple syntax mistakesIt is advised to follow a certain style when making exercisesThe main characteristics of the style:
  
-  * Programmselle funktsioonid ja muutujad on ingliskeelsed ning väiketähtedegakus sõnu eraldab alakriips+  * Programall its functions and variables are in English and in small lettersthe words are separated with an under-strike
-  * Funktsioonid on kujul //objekt_tegevus_subjekt//. +  * Functions are in following form: //object_action_subject//. 
-  * Olulisemad kohad programmis on kommenteeritud eesti keeles+  * more important places in the program are commented
-  * Iga C-keele plokk (tähistatud loogeliste sulgudega ja } ) algab ja lõpeb eraldi real+  * Every block in C-language (marked with and } )starts and begins in separate row
-  * Plokid on tabuleeritud tabulaatorklahvigaReasiseselt tabulaatorit ei kasutata.+  * Blocks are tabulated with tabulator keysTabulator is not used inside rows.
en/examples.1267473298.txt.gz · Last modified: 2020/07/20 09:00 (external edit)
CC Attribution-Share Alike 4.0 International
www.chimeric.de Valid CSS Driven by DokuWiki do yourself a favour and use a real browser - get firefox!! Recent changes RSS feed Valid XHTML 1.0