Tsung-Han Hsieh 謝宗翰robinhsieh.com/wp-content/uploads/2013/04/random-pages... ·...
Transcript of Tsung-Han Hsieh 謝宗翰robinhsieh.com/wp-content/uploads/2013/04/random-pages... ·...
01
20
1-18
1-4 EmailPicker
<EX1-5>Email.zip
EmailPicker TextBox
Auto Complete
EmailPicker Text Hint
Text
Text
Hint
02
40
� My Blocks 1stDevice 1stDevice.BeforePicking
� My Blocks BluetoothClient BluetoothClient1.Disconnect
� My Blocks btnConnect set btnConnect.Text to
Connect
� My Blocks 1stDevice set 1stDevice.Elements to
BluetoothClient BluetoothClient1.AddressesAndNames
� My Blocks 1stDevice 1stDevice.AfterPicking
� My Blocks My De�nitions set global DeviceMAC to
1stDevice.Selection
� My Blocks TinyDB1 TinyDB1.StoreValue tag
StoredDevice valueToStore DeviceMAC
� My Blocks 1stDevice set 1stDevice.Text to
DeviceMAC
� My Blocks btnConnect set btnConnect.Enabled to
true
2-6 1stDevice
1stDevice
1stDevice DeviceMAC
TinyDB1 StoredDevice 1stDevice
btnConnect
01
21
App Inventor
Email.SentEmail Android Gmail Client
ActivityStarter TextBox
Gmail Client
ActivityStarter C
Designer Email 1-6
1-6 EX1-5
EmailPicker Social ContactPickerTextBox Basic TextBox_subjectTextBox Basic TextBox_msgBodyButton Basic Button_SEND ActivityStarterActivityStarter Other stuff ActivityStarter1
� EmailPicker Hint Text
� TextBox_subject Hint
Text
� TextBox_msgBody Hint
Text
02
32
� HorizontalArrangement Screen1 Width
Fill parent
� Button Screen1 HorizontalArrangement
btnConnect Text Connect
� ListPicker Screen1 HorizontalArrangement
1stDevice Text Select Device
Width Fill parent
� BluetoothClient TinyDB Noti�er Screen1
2-1
2-1 EX2-1 Designer
Chapter 6 { }
6-1 MindSensors App Inventor 182
6-2 - ACCLNx 185
<EX6-1>NTXAccel.zip
6-3 NXTServo 204
<EX6-2>NXT_Servo.zip
6-4 NXTSumoEyes 222
<EX6-3>NXTSumoEyes.zip
6-5 233
6-6 233
I2C
MindSensors
BluetoothClient
Nxt
LsRead/LsWrite
10
334
getPlayerScore TinyWebDB
STEP5 TinyDB1.GotValue
GotValue add notArrangedScores
notArrangedScores
foreach
GotValue notArrangedScores
foreach notArrangedScores
10-22
� getPlayerScore
� for range end notArrangedScores
notArrangedScores
10 10
� Built in List remove list item list
notArrangedScores index i
notArrangedScores
� foreach end playerNameList
� TinyWebDB1.GetValue tag var
playerNameList TinyWebDB1
12
395
Clock.Timer NXTCam
NXTCambig
byte5 byte6
/ byte5 byte6 12-28
� My Blocks Clock1 when.Clock1.Timer
� My Blocks Brick set Brick.Text to
NXTDirectCommands.GetBrickName
� My Blocks Brick set.Firmware.Text to
NXTDirectCommands.GetFirmwareVersion
� My Blocks Brick set .Battery.Text to
NXTDirectCommands.GetBatteryLevel
NXT
� My Blocks NXTDirectCommands NxtDirectCommands.
LsWrite sensorPortLetter ListPickerPort.Selection
list 2 66 list rxDataLength 1
registry 1
� NumberOfObjects NxtDirectCommands.LsRead
ListPickerPort.Selection
� NXTCambig
B
512
NxtSoundSensor
NxtSound-Sensor NxtSoundSensor NXT
BluetoothClient
BluetoothClient Designer
SensorPort
Designer
BottomOfRange
BelowRange WithinRange AboveRange
NxtSound-Sensor
TopOfRange
BelowRange WithinRange AboveRange
BelowRangeEventEnabled
BottomOfRange BelowRange
E
580
USB NXT
MINDSTORMS NXT LEGO
MINDSTORMS NXT Bluetooth Developer Kit Appendix
2-LEGO MINDSTORMS NXT Direct commands
E-1
Byte0 Byte1 Byte2 Byte3 ByteN
E-1
◆ Byte0
� 0x00
� 0x01
� 0x02
� 0x80
� 0x81