Mikroelektronika MIKROE-350 Fiche De Données
SOURCE FILES
Source files containing Basic code should have the extension .mbas. The list of
source files relevant to the application is stored in project file with extension
source files relevant to the application is stored in project file with extension
.mbpav
,
along with other project information. You can compile source files only if they are
part of the project.
part of the project.
Managing Source Files
Creating new source file
To create a new source file, do the following:
1. Select File › New Unit from the drop-down menu, or press Ctrl+N, or click the
New File Icon from the File Toolbar.
2. A new tab will be opened. This is a new source file. Select File › Save from the
drop-down menu, or press Ctrl+S, or click the Save File Icon from the File
Toolbar and name it as you want.
If you use the New Project Wizard, an empty source file, named after the project with
extension
extension
.mbas
, will be created automatically. The mikroBasic PRO for AVR does
not require you to have a source file named the same as the project, it’s just a mat-
ter of convenience.
ter of convenience.
Opening an existing file
1. Select File › Open from the drop-down menu, or press Ctrl+O, or click the Open
File Icon from the File Toolbar. In Open Dialog browse to the location of the
file that you want to open, select it and click the Open button.
2. The selected file is displayed in its own tab. If the selected file is already open, its
current Editor tab will become active.
Printing an open file
1. Make sure that the window containing the file that you want to print is the
active window.
2. Select File › Print from the drop-down menu, or press Ctrl+P.
3. In the Print Preview Window, set a desired layout of the document and click the
3. In the Print Preview Window, set a desired layout of the document and click the
OK button. The file will be printed on the selected printer.
74
MIKROELEKTRONIKA
- SOFTWARE AND HARDWARE SOLUTIONS FOR EMBEDDED WORLD
Environment
mikroBasic PRO for AVR
CHAPTER 2