C# 㨠.NET Micro Framework ã§ã¯ããããã¤ã³ã³ããã°ã©ãã³ã°
ãã¤ã³ã³ç¨åº¦ã®ã¹ããã¯ã§åä½ããã.NET Micro Framework ã¨ããã¨ãã£ã·ã§ã³ãããã¾ãããããå©ç¨ãããã¨ã§ããã¤ã³ã³ã®ããã°ã©ãã³ã°ã C# ã§è¡ããããã«ãªãã¾ãã
.NET Micro Framework ãåä½ãã Arduino ã¨ãã³äºæãªãã¼ã FEZ Domino ãæ¥æ¬ã§ãå
¥æã§ããããã«ãªã£ãã®ã§ãæ©é試ãã¦ã¿ã¾ããããã®ãã¼ãã¯ãmicroSD ã«ã¼ãã®èªã¿æ¸ãã USB ãã¹ãã«ã対å¿ãã¦ãã¾ãã
USBã±ã¼ãã«ãåºãã£ã¦ãã¾ãããããã¯é»æºç¨ã§ãããå¥éé»æºãç¨æããã°ã¹ã¿ã³ãã¢ãã³ã§åä½ãã¾ãããã¡ãããUSBã±ã¼ãã«ãã¤ãªãã ç¶æ ã§ããã°ããã¬ã¼ã¯ãã¤ã³ããè¨å®ããªããå®æ©ä¸ã§ãããã°ãããã¨ãå¯è½ã§ãã
ä¸è¨ã®åç»ã®ã¢ããªã®ããã«è¨è¿°ããã½ã¼ã¹ã³ã¼ãã¯ããã ãã.NET Micro Framework ã®æ¨æºã©ã¤ãã©ãªã®ã¿ã§è¨è¿°ãã¦ã¿ã¾ããã
.NET Micro Framework ã¯ãåæè¨å®ãããã¦ãã¾ãã°ãé常㮠Visual Studio ã§ã® .NETã¢ããªéçºã¨ã»ã¨ãã©å¤ãããªãæè¦ã§æ±ããã¨ãã§ãã¾ããVisual Studio ã§ã¯ããªãã¿ã®ã³ã¼ãè£å®æ©è½ IntelliSense ãªã©ãããã¡ããæå¹ã§ãã®ã§ããã¼ãæã£ãåæ°ã¯å ¨ä½ã®æåæ°ã®1/3ããããã¨æãã¾ãã
以ä¸ã«ãç°¡åã§ããå°å ¥ã¾ã§ã®æé ãã¾ã¨ãã¦ã¿ã¾ãããåä½ã¯ãWindows 7 (x64) ä¸ã§ç¢ºèªãã¦ãã¾ãã
ããã¤ã¹ã®å ¥æããéçºç°å¢ã®æ§ç¯ã¾ã§
1. ããã¤ã¹ã®å
¥æ
ä»å㯠http://tinyclr.jp/products/fez-domino.htm ããè³¼å
¥ãã¾ããã
2. Visual C# 2008 Express SP1 ã®å
¥æ
ç¾æç¹ã® .NET Micro Framework 㯠Visual Studio 2010 ã«ã¯å¯¾å¿ãã¦ããªããããªã®ã§ã
http://www.microsoft.com/express/downloads/#2008-Visual-CS
ã§ãVisual Studio 2008 Express ã¿ã -> Visual C# 2008 Express Edition ãé¸æããJapanese ãé¸æãã¦ãã¦ã³ãã¼ããã¤ã³ã¹ãã¼ã«ãã¾ãã
3. .NET Micro Framework 4.0 SDK ã®å
¥æ
http://www.microsoft.com/downloads/details.aspx?FamilyId=77dbfc46-14a1-4dcf-a809-eda7ccfe376b&displaylang=en
ãããã¦ã³ãã¼ããã¤ã³ã¹ãã¼ã«ãã¾ãã
4. FEZ Domino SDK ã®å
¥æ
http://www.tinyclr.com/dl/
ãã Software Development Kit (SDK) ãå ¥æããã¤ã³ã¹ãã¼ã«ãã¾ãã
5. ããã¤ã¹ãã©ã¤ãã®ã¤ã³ã¹ãã¼ã«
ããã¤ã¹ããã¼ã¸ã£ã¼ããæåã§ãã©ã¤ããã¤ã³ã¹ãã¼ã«ãã¾ãã
ãã©ã¤ãã®ãã¡ã¤ã«ã¯ä»¥ä¸ã«ããã¾ãã
(x86ã®å ´å)
C:\Program Files\GHI Electronics\GHI NETMF v4.0 SDK\USB Drivers\
(x64ã®å ´å)
C:\Program Files (x86)\GHI Electronics\GHI NETMF v4.0 SDK\USB Drivers\
ã¤ã³ã¹ãã¼ã«ãå®äºããã¨ãä¸å³ã®ããã«è¡¨ç¤ºããã¾ãã
6. åä½ç¢ºèª
ãã¼ãã¨éä¿¡ãã§ãã¦ãããã©ããã確èªããããã®ãã¼ã«ã¨ãã¦ãMFDeploy.exe ãç¨æããã¦ãã¾ããMFDeploy.exe ã¯ä»¥ä¸ã®å ´æã«ã¤ã³ã¹ãã¼ã«ããã¦ãã¾ãã
(x86ã®å ´å)
C:\Program Files\Microsoft .NET Micro Framework\v4.0\Tools
(x64ã®å ´å)
C:\Program Files (x86)\Microsoft .NET Micro Framework\v4.0\Tools
èµ·åããã¨ã以ä¸ã®ãããªç»é¢ã表示ããã¾ãã
Device 㧠USB ãé¸æãã Ping ãã¿ã³ãã¯ãªãã¯ããã¨ããã¼ããæ£å¸¸ã§ããã°ã
Pinging... TinyCLR
ã¨ãã£ãå¿çãè¿ãã¾ããç°å¸¸ãããå ´åã«ã¯ãError ãè¿ãã¾ãã
以ä¸ã§éçºç°å¢ã®è¨å®ã¯çµäºã§ãã
éçºæé
1. ããã¸ã§ã¯ãã®ä½æ
Visual C# 2008 Express ãèµ·åãã[ãã¡ã¤ã«(F)] -> [æ°ããããã¸ã§ã¯ã(P)] ãé¸æããã¨ã以ä¸ã®ç»é¢ã表示ããã¾ããããã§ãConsole Application ãé¸æãã¾ãã
2. ããã¸ã§ã¯ãã®è¨å®
[ããã¸ã§ã¯ã(P)] -> [.. ã®ããããã£] ãé¸æãã.NET Micro Framework ã¿ããé¸æãã¾ããããã§ãDeployment ã®é
ç®ãå³ã®ããã«è¨å®ãã¾ãã
ãã㧠F5 ãã¼ãæ¼ãã¨è¨è¿°ããããã°ã©ã ãå®æ©ä¸ã§åä½ããããã«ãªãã¾ãã
ã¾ã¨ã
ããã¯ãã便å©ãªæ代ã«ãªãã¾ãããã以ä¸ãåèãµã¤ãã§ãã
- .NET Micro Framework
- http://www.microsoft.com/netmf/default.mspx
- .NET Micro Framework ã®æ¬å®¶ãµã¤ãã§ãã
- TinyCLR.com
- http://www.tinyclr.com/
- ä»åã®ãã¼ãã®éçºå ã§ããæ¬æã¯ãã®ãµã¤ãã§é å¸ããã¦ãã Beginners E-Book ã®è¨è¿°ãåèã«ãã¾ããã
- TinyCLR.jp
- http://tinyclr.jp/
- æ¥æ¬ã§ã®ä»£çåºã®ãµã¤ãã§ããããããä»åã®ããã¤ã¹ãå ¥æãã¾ããã