さすがに"Lチカ"だけでは残念、というか何が出来て何がよいかが分からないWindows For IoT。
WindowsというからにはUIは重要だ。
手始めにこちらでやった資産を流用して、まずはキャラクター液晶を付けてみた。
回路図はArduinoと全く同じでいけた。
あとはコード、こちらもほとんどいっしょだ。
https://github.com/arduino/Arduino/tree/master/libraries/LiquidCrystalから" LiquidCrystal.h"と" LiquidCrystal.cpp"をダウンロードして、プロジェクトのソースが入っているフォルダに一緒に放り込めば動作する。
ただ、setCursorなど挙動が一部変だ、後で確認しよう。
#include "stdafx.h"
#include "arduino.h"
#include "LiquidCrystal.h"
int _tmain(int argc, _TCHAR* argv[])
{
return RunArduinoSketch();
}LiquidCrystal lcd(12, 11, 5, 4, 3, 2);
void setup()
{
// TODO: Add your code here
lcd.setCursor(0, 0);
lcd.print("Hello Aho");}
// the loop routine runs over and over again forever:
void loop()
{
// TODO: Add your code here}
intel Intel Galileo2 Board(開発向けボード)
- 出版社/メーカー: Intel
- メディア: Personal Computers
- この商品を含むブログを見る