主要内容

建模

为硬件连接准备模型,添加模块以支持硬件协议

准备 Simulink® 模型以进行硬件连接,添加模块以支持硬件协议,提供各种应用情形的参考示例。

模块

全部展开

Digital Read读取数字输入引脚的逻辑状态
Digital Write设置数字输出引脚的逻辑状态
Analog InputMeasure voltage of analog input pin
PWM OutputGenerate square wave on the specified output pin
I2C Master ReadRead data from I2C Peripheral devices or I2C Peripheral devices register
I2C Master WriteWrite data to I2C peripheral devices or I2C peripheral devices register
SPI Register ReadRead data from SPI peripheral devices register
SPI Register WriteWrite data to registers of SPI peripheral devices
SPI Master TransferWrite data to and read data from SPI peripheral devices
SCI ReadRead N-by-1 array of data on UART
SCI WriteSend N-by-1 array of data to UART
MMA8652FC 3-Axis AccelerometerGet measurement of linear acceleration along the X, Y, and Z axes of the MMA8652FC 3-Axis chip
Accelerometer X-Y-ZGet measurement of linear acceleration along the X, Y, and Z axes of the Accelerometer (自 R2023b 起)
MAG3110 3-Axis MagnetometerGet measurement of magnetic field along the X, Y, and Z axes of the MAG3110 3-Axis chip
Magnetometer X-Y-ZGet measurement of magnetic field along the X, Y, and Z axes of the Magnetometer (自 R2023b 起)
5x5 LED MatrixOutput 5x5 LED image on board
LED Text ScrollCreate scrolling text for BBC micro:bit
Radio ReceiveReceive data from micro:bit devices via radio
Radio TransmitTransmit data to micro:bit devices via radio
Note GeneratorGenerate frequency corresponding to a musical note
Play NotePlay musical note on specified pin on BBC micro:bit

主题