發表文章

目前顯示的是 2013的文章

Arduino入門套件中文字幕系列影­片(4)

圖片
關於 Arduino 適合初學者觀看的影片 檔案來源:YouTube 由RS為您呈現十個讓您學會使用Arduino入門套件中文字幕系列影片。您將利用一­個光敏電阻及一個壓力壓電元件,設計一個光學特雷門 (Theremin)。特雷門是一種樂器,它會根據演奏者的手距離樂器的位置而能產生­不同的聲音。

Arduino入門套件中文字幕系列影­片(3)

圖片
關於 Arduino 適合初學者觀看的影片 檔案來源:YouTuBe 由RS為您呈現十個讓您學會使用Arduino入門套件中文字幕系列影片。在本影片,­我們會做一個LOVE-O-METER,一個非常簡單的溫度計,用來測量你的體溫。

Arduino入門套件中文字幕系列影片(2)

圖片
關於 Arduino 適合初學者觀看的影片 檔案來源:YouTuBe 由RS為您呈現十個讓您學會使用Arduino入門套件中文字幕系列影片。在本影片,­我們會做一個太空船的介面,讓你瞭解Arduino的簡單輸入和輸出。

Arduino入門套件中文字幕系列影­片(1)

圖片
關於 Arduino 適合初學者觀看的影片 檔案來源:YouTuBe 由RS Components為您呈現十個讓您學會使用Arduino入門套件中文字幕系列影­片。在本影片,我們會學習使用Arduino入門套件的基本知識。第一課 — 了解您的工具。 Arduino Start Kit: RS Part Arduino 編輯程式下載: http://www.arduino.cc/en/Main/Software Sample: /*   Blink   Turns on an LED on for one second, then off for one second, repeatedly.   This example code is in the public domain.  */ // Pin 13 has an LED connected on most Arduino boards. // give it a name: int led = 13; // the setup routine runs once when you press reset: void setup() {                  // initialize the digital pin as an output.   pinMode(led, OUTPUT);     } // the loop routine runs over and over again forever: void loop() {   digitalWrite(led, HIGH);   // turn the LED on (HIGH is the voltage level)   delay(1000);               // wait for a second   digitalWrite(led, LOW);    // turn the LED off by making the voltage LOW   delay(1000);               // wait for a second }

Xcode - 參數

%i , %x , %o …..int /  %u , %x , %o …..unsigned int %c …char %hi , %hx , %ho ….short int /  %unsigned short int %li , %lx , %lo … long int

Xcode - Class(3)

@implementation 宣告的物件名稱(繼承至@interface) --> Start @end --> end

Xcode - Class(2)

@interface---start @end -- end @interface 宣告物件名稱:使用父系類別 exp: @interface Classroom:NSObject

Xcode - Class(1)

@interface --> 宣告 @implementation --> 定義 Dev C++ void --> 傳回無值 xcode -(void) --> 傳回無值

Xcode - @autoreleasepool

左右大括號之間的敘述接在所謂的自動釋放池中執行 int main() { @autoreleasepool{ <-------like this      NSLog(@"….."); } return 0; } 範例如下: #import <Foundation/Foundation.h> int main(int argc, const char * argv[]) {     @autoreleasepool {         NSlog (@"HelloWorld");     }          return 0; }