4610396 ランダム
 HOME | DIARY | PROFILE 【フォローする】 【ログイン】

おびやまロボット研究所 ~マイコン電子工作と自作ドローン~

おびやまロボット研究所 ~マイコン電子工作と自作ドローン~

App Inventorサンプル

ダウンロードできない場合はこちらのページからダウンロードしてみてください.
http://cpu4edu.web.fc2.com/



ボタンとチェックボックスのテスト: test_button_and_checkbox.zip
test_Button_and_CheckBox.JPG
test_Button_and_CheckBoxBlock.JPG

メッセージを表示: test_notifier.zip
test_Notifier.JPG
test_NotiferBlock.JPG

2値の足し算: test_calc.zip
test_Calc.JPG
test_CalcBlock.JPG

数値をランダムに変えて2値の足し算: test_calc2.zip
test_calc2.JPG
test_calc2Block.JPG

1秒ごとに文字色を切替: test_clock.zip
test_Clock.JPG
test_ClockBlock.JPG

1秒ごとのカウンタ: test_clock2.zip
test_Clock2.JPG
test_Clock2Block.JPG

クロック情報を全て表示: test_clock3.zip
test_Clock3.JPG
test_Clock3Block.JPG

画面ドラッグで描画: test_drawcanvas.zip
test_DrawCanvas.JPG
test_DrawCanvasBlock.JPG

ボールアニメーション: test_ball.zip
test_ball.JPG
test_ballBlock.JPG


音声ファイルの再生: test_sound.zip
test_Sound.JPG
test_SoundBlock.JPG

音声認識: test_speechrecognizer.zip
test_SpeechRecognizer.JPG
test_SpeechRecognizerBlock.JPG

テキスト読み上げ: textspeech.zip
textspeech.JPG
textspeechBlock.JPG

画面タッチの検出: test_touch.zip
test_touch.JPG
test_touchBlock.JPG

加速度センサと方位センサ: test_accerlermeter_orientation.zip
test_Acc_Ori.JPG
test_Acc_OriBlock.JPG

GPS座標を表示する: getgps.zip
getGPS.JPG
getGPSBlock.JPG

テキストボックスに表示されたURLにアクセスする: test_activity.zip
test_Activity.JPG
test_ActivityBlock.JPG

カメラ撮影: test_camera.zip
test_camera.JPG
test_cameraBlock.JPG

バーコードを読取る: test_barcode.zip
test_Barcode.JPG
test_BarcodeBlock.JPG

Bluetoothで接続された機器に制御文字を送る: bt_ctrlrobo.zip
BT_CtrlRobo.JPG
BT_CtrlRoboBlock.JPG

SMSを送る: test_SMS.zip
test_SMS.JPG
test_SMS_Block.JPG

App Inventor でSMSを受信する: test_SMSrcv.zip
test_SMSrcv.JPG
test_SMSrcvBlock.JPG

SMSでコマンドを送りデータを返信する: test_SMSreply.zip
(同様にコマンドて様々なデータを返信させるように追記可能)
test_SMSreply.JPG

test_SMSreplyBlock.JPG

サンプルその2へ

AppInventor でdelayを作る方法

タイマーが動いている状態で,システムクロックを読み出して,
2000ms足した値と比較しながらwhileループで待ちます.
(textbox4に表示させているのは確認用でdelayには不要)

他に良い方法があるかもしれませんが,ご参考まで.

delay2000.JPG

commandResponse.JPG


指定したURLからレスポンスをテキストに表示: test_web.zip

test_web.JPG

test_webBlock.JPG


サンプルその1へ


© Rakuten Group, Inc.