Overview
Toolbar
Menus
Sketchbook
Uploading


 

Overview

We've designed a simple and usable editor for writing and running programs. The Wiring Environment (Integrated Development Environment or IDE) has a text editor and compiler for writing programs for the Wiring I/O Board. When the "run" button is clicked, the program compiles. The toolbar provides functionality for compiling programs, creating a new sketch, opening, saving, and exporting to the I/O Board. Additional commands are available through the menus. The message area gives feedback while saving and exporting and also shows the locations of errors when programs are compiled. The text area presents messages and can be written from the I/O Board using with the print() programming function.

프로그램을 편집하고 실행하기 위한 간단하며 사용하기 유용한 에디터를 설계하였습니다. Wiring 환경(통합 개발 환경 IDE) 는 문자 편집기 와 Wiring I/O 보드를 동작하기 위하여 작성된 프로그램 컴파일러를 가지고 있습니다. 툴바는 프로그램 컴파일을 위한 기능을 제공합니다. "run" 버튼을 클릭하면 프로그램이 컴파일 됩니다.툴바프로그램 컴파일, 새로운 스케치 생성, 오픈, 저장 그리고 I/O 로 실행프로그램 전송의 기능을 가지고 있습니다. 메시지 영역은 저장하거나 전송할 때 상태를 알려주며 컴파일 시 에어 내용을 알려줍니다. 문자 영역(Text Area)는 메시지 표시 영역이며 I/O 보드로부터print() 프로그램 함수에 의하여  라이팅 할 수 있습니다.  


 

 

Toolbar

The toolbar provides access to the six basic functions of Processing: Run, New, Open, Save, Export, Serial monitor.


  Run: Copiles the code 코드 컴파일
     
  Stop: Terminates any activity on the editor 편집중 모든 동작의 종료
     
  New: Creates a new sketch. In Wiring, projects are called sketches.새로운 스케치 생성. Wiring 에서는 프로젝트를 스케치(sketch)라고 부릅니다.
     
  Open: Select and load a pre-existing sketch. A menu opens and you may choose from your own sketchbook, examples, or you can open a sketch from anywhere on your computer or network. 기존에 작성된 스케치를 선택하고 엽니다. 메뉴를 오픈하고 자신의 스케치를 선택할 수 있습니다. 예를 들면 컴퓨터나 네트웍등 어느 곳이든 스케치를 오픈할 수 있습니다.
     
  Save: Saves the current sketch into the Processing sketches folder. If you want to give the sketch a name other than the current date, you can choose save As from the File menu. 프로세싱 스케치 폴더에 현재의 스케치를 저장합니다.
     
  Upload to I/O Board: Exports the current sketch into the sketchbook and uploads it to the Wiring I/O Board. The directory containing the files is opened. There is more information about uploading below.현재의 스케치를 스케치 북으로 보내고(저장) Wiring I/O 보드에 실행 프로그램을 보냅니다. 
     
  Serial monitor: Opens a serial port connection to monitor the data comming from the Wiring I/O Board, this is very useful for debugging and verification.

Wiring I/O 보드에서 오는 데이터를 관찰하기 위하여 연결된 시리얼 포트를 오픈합니다. 이것은 디버깅과 검증을 위하여 유용하게 사용됩니다.

 

 

Menus

Additional commands are found within the five menus: File, Edit, Sketch, Tools, Help. The menus are context sensitive which means only those items relevant to the work currently being carried out are available.

File, Edit, Sketch, Tools, Help 의 추가적인 5 개의 메뉴가 있습니다.  

File


New (Ctrl+N)
Creates a new sketch, named as the current date is the format "sketch_YYMMDDa".
새로운 스케치를 생성합니다. 이름과 함께 현재 날자로 구성됩니다. "sketch_YYMMDDa"


Open (Ctrl+O)
Gives the option to open a sketch from anywhere on the local computer or network, the sketchbook, or to open an example.
로컬 컴퓨터 또는 네트웍에 연결된 스케치북 또는 예제로부터 스케치를 오픈합니다.


Save (Ctrl+O)
Saves the open sketch in it's current state.

오픈한 스케치를 현재 상태로 저장합니다.



Save as... (Ctrl+Shift+O)
Saves the currently open sketch, with the option of giving it a different name. Does not replace the previous version of the sketch.
현재 오픈된 스케치를 다른 이름으로 저장합니다. 앞서 저장한 스케치 버젼을 대체하지 않습니다. 


Upload to I/O Board (Ctrl+U)
Be default, exports the program to the Wiring I/O Board. After the files are exported, the directory containing the exported files is opened. There is more information about uploading below.

프로그램을 Wiring I/O 보드로 전송합니다. 파일이 전송되면 전송된 파일을 포함한 디렉토리가 오픈됩니다. 아래에 업로딩에 관한 자세한 정보가 있습니다.

Preferences
Allows you to change some of the ways Wiring works.
Wiring 작업에 어떤 방법의 변화를 허용합니다.


Quit (Ctrl+Q)
Exits the Wiring Environment and closes all Wiring windows.
모든 Wiring 윈도우를 닫고 Wiring 개발환경을 종료합니다.

Edit

The Edit menu provides a series of commands for editing the Wiring files.
Edit 메뉴는 Wiring 파일을 편집하는 명령을 제공합니다.


Undo (Ctrl+Z)
Reverses the last command or the last entry typed. Cancel the Undo command by choosing Edit » Redo.
마지막 명령이나 마지막 입력을 반대로 합니다. Edit>>Redo 를 선택하여 Undo 커멘드를 취소합니다.


Redo (Ctrl+Y)
Reverses the action of the last Undo command. This option is only available, if there has already been an Undo action.

마지막 Undo 커멘드를 반대로 합니다. 이 옵션은 Undo동작이 이미 있었던 경우에 유효합니다.

Cut (Ctrl+X)
Removes and copies selected text to the clipboard (an off-screen text buffer)
선택한 텍스트를 클립 보드로 이동하거나 복사합니다.


Copy (Ctrl+C)
Copies selected text to the clipboard.
선택한 문자를 클립보드로 복사합니다.


Paste (Ctrl+V)
Inserts the contents of the clipboard at the location of the cursor, and replaces any selected text.

커서의 위치로 크립보드의 내용을 삽입합니다. 선택된 문자를 대치합니다.

Select All (Ctrl+A)
Selects all of the text in the file which is currently open in the text editor.
현재 오픈한 텍스트 편집창의 모든 텍스트를 선택합니다.


Find (Ctrl+F)
Finds an occurance of a text string within the file open in the text editor and gives the option to replace it with a different text.

텍스트 에디터에 오픈된 파일에서 텍스트 스트링과 일치한느곳을 찾습니다. 다른 텍스트로 대치합니다.

Find Next (Ctrl+G)
Finds the next occurance of a text string within the file open in the text editor.

텍스트 에디터에 오픈된 파일에서 다음으로 일치하는 곳을 찾습니다.

Sketch

Verify/Compile (Ctrl+R)
Verify the code (compiles the code)
코드의 검사 (코드 컴파일)


Stop
Stops current activity.
현재 동작의 정지


Add File
Opens a file navigator. Select a code files to add it to the sketches "data" directory.
파일 탐색기를 오픈 합니다. 코드 파일을 선택하여 sketch "data"디렉토리에 추가 합니다.


Show Sketch Folder
Opens the directory for the current sketch.
현재의 스케치를 위하여 디렉토리를 오픈합니다.



Tools

Auto Format
Attempts to format the code into a more human-readable layout. Auto Format was previously called Beautify.

코드를 가독성이 좋도록 합니다. 오토 포맷은 전에 뷰티라고 하였습니다.

Serial Port
Allows to select which serial port to use as default for uploading code to the Wiring I/O Board or monitor data comming from it. The data coming from the Wiring I/O Board is printed in character format in the text area region of the console.

Wiring I/O 보드로 코드 전송하거나 Wiring 으로부터 오는 데이터를 모니터링 하기 위한 기본 시리얼 포트를 선택합니다.
콘솔의 문자 영역에 문자가 표시됩니다.

Help

Reference
Opens the reference in the default Web browser. Includes reference for the language, programming environment, libraries, and a language comparison.

디폴트 웹브라우져에서 참고를 오픈합니다. 언어, 프로그램 개발환경, 라이브러리 그리고 언어비교를 위한 참조를 포함합니다.

Find in Reference (Ctrl+Shift+F)
Select a word in your program and select "Find in Reference" to open that reference HTML page.
프로그램에서 단어를 선택합니다. 그리고 참고 HTML 페이지에서 "Find in Reference"를 선택합니다.


Visit Wiring (Ctrl+5)
Opens default Web browser to the Wiring homepage.
디폴트 웹브라우져에서 Wiring 홈페이지를 오픈합니다.


About Wiring
Opens a concise information panel about the software.

소프트웨어에 대한 컨사이스 정보를 오픈합니다.

 

 

Sketchbook

All Wiring projects are called sketches. Each sketch has it's own directory (folder) and inside there is the main program file which has the same name as the sketch. For example, if the name of the sketch is "Sketch_123", the directory for the sketch will be called "Sketch_123" and the main file will be called "Sketch_123.pde".

Sketches need other directories inside to contain additional media files and code libraries. Additional code libraries must be placed within a directory entitled "code". When a sketch is exported, all files from the "code" directories are exported into into a single .hex file with the same name as the sketch. For example, if the sketch is named "Sketch_123", the exported file will be called "Sketch_123.hex"

Sketches are all kept in the Wiring directory, which will be in different places on your computer or network, depending if you use PC, Mac, or Linux and how you have your preferences set. To locate this directory, select the "Preferences" option in the "File" menu.

It is possible to have multiple program divisions in one sketch. Each of these divisions is visible as a tab in the area below the menu. When a program is compiled these divisions are made into one file and compile as a single program. Divisions can also be separate C files (the extension .c) which are compiled together with the Wiring files. To add a new division, click on the arrow to the right of the tabs. You can write functions and classes in new divisions and you can write any C code in files with the .c extension.

모든 Wiring 프로젝트를 sketch 라고 부릅니다. 각 sketch 는 자식의 디렉토리(폴더)를 가집니다. 그 안에는 메인 프로그램과 같은 이름의 sketch 가 들어 있습니다. 예를들어 sketch 이름이 "Sketch_123" 이면 디렉토리는 "Sketch_123"이 되며 메인 파일을 "Sketch_123.pde"가 됩니다. 

Sketch는 Wiring 디렉토리에 저장 됩니다. 컴퓨터의 다른 장소나 네트웍에 놓여질 수도 있습니다. 디렉토리의 위치는 "File" 메뉴 옵션에서 "Preference" 옵션을 선택합니다.

하나의 sketch에서 여러개의 프로그램 분할이 가능합니다. 나누어진 부분은 메뉴아래 탭으로 보여집니다. 나누어진 부분은 컴파일시 하나의 프로그램으로 컴파일 됩니다. 나누어진 파일은 개별적인 C 파일로 분리됩니다.  새로운 분할 프로그램을 추가 하려면 탭의 오른쪽 을 화살표 클릭합니다. 새로운 부분에서 함수와 크래스를 만들수 있으며 어떤 C 코드이든 작성할 수 있습니다.


 

 

Uploading

Uploading creates a version of the sketch that can run within the Wiring I/O Board. When code is exported from Wiring it is changed into C code and then compiled. When a project is uploaded, a series of files are written to an "applet" directory which is created within the primary sketch directory. If the sketch is called "Sketch_123", the applet directory contains for following:
업로딩은 sketch 를 Wiring I/O 보드에서 실행합니다. 코드가 Wiring I/O 로 보내지면 C 코드가 변경되었으면 컴파일합니다. 프로젝트가 업로드되면 파일의 연속이 주 sketch 디렉토리로 만들어진 "applet"디렉토리에 저장됩니다.

Sketch_123.hex
HEX file containing all necessary code for the sketch to run on the Wiring I/O Board. Includes the Wiring code as well as those custom to the sketch.
HEX 파일은 Wiring I/O 보드 실행에 필요한 모든 코드를 가지고 있습니다. 

Sketch_123.cpp
The C++ file generated by the pre-processor from the PDE file. This is the actual file which is compiled into the HEX file by gcc, the C Compiler used in Wiring.
C+ 파일은 선행 처리기에 의하여 PDF 파일에서 만들어집니다.

Sketch_123.pde
The original program file.
오리지널 프로그램 파일

Every time a sketch is exported, all of the above files are re-written.
매번 sketch 가 내보내 졌을 때 위의 모든 파일은 리 라이트 됩니다.

When a sketch is uploaded, all files (including those in the "code" directoriy) are packed into a single HEX file. Libraries not needed for the application should be deleted before exporting to keep the files size small.
sketch 가 업로드 되었을 때 단일 HEX 파일로 묶여집니다. 라이브러리는 응용 프로그램이 작은 크기의 파일을  전송하기 전에 응용 프로그램이 지워질 필요는 없습니다.