• Increase font size
  • Default font size
  • Decrease font size
  • default color
  • cyan color
  • red color

Arduino.TW樂園

Member Area
Finding out applet Directory with Arduino0018
站長Blog文章單元 - 非官方Arduino IDE開發(Eclipse, Xcode)
作者是 Administrator   
週一, 24 五月 2010 22:29

* Moving build (on upload) from the applet/ sub-folder of the sketch
to a temporary directory (fixing problems with uploading examples from
within the Mac OS X disk image or a Linux application directory).

根據官方網站是為了解決MAC & LINUX的問題所以把applet資料夾移動,看了一下ArduinoIDE-0018的JAVA CODE發現是File.createTempFile函式建立。

如果你有用AVR STUDIO寫C有時候會想要參考他編譯出來的HEX檔或是C,那麼你就會需要知道applet資料夾跑去哪裡,以下是找出任何OS系統下java tmp隱藏的位置。

把以下原始碼另存成檔案xlinx.java



class xlinx{

    public static void main(String args[]){

    for(String where_r_u:System.getProperties().toString().split(","))

            System.err.println("##########"+where_r_u);

    }   

}

丟到 .\arduino-0018\java\bin 資料夾後打開CMD視窗輸入javac xlinx.java編譯,後執行 java xlinx。

你會看見以下一長串的JAVA系統參數

########## user.dir=D:\_language\arduino-0018\java\bin
########## java.runtime.version=1.6.0_16-b01
########## java.io.tmpdir=C:\Users\xlinx\AppData\Local\Temp\
########## java.endorsed.dirs=D:\_language\arduino-0018\java\lib\endorsed

找到java.io.tmpdir=XXX資料夾之下會有一個以build開頭後面接亂數的資料夾那就是每一次啟動arduino IDE的applet輸出資料夾,你就可以找到你所需要的HEX與C檔案。

 


blog comments powered by Disqus
最近更新在 週四, 03 六月 2010 13:20
 

幫助我們推廣