Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

variant: WB: add STM32WB5MM-DK#1441

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.

Already on GitHub?Sign in to your account

Merged
fpistm merged 5 commits intostm32duino:masterfromfpistm:STM32WB5MM-DK
Jul 9, 2021

Conversation

fpistm
Copy link
Member

@fpistmfpistm commentedJul 7, 2021
edited
Loading

Board:

STM32WB5MM-DK

Test:

Examples:

Get STTS22H Temperature example
#include"STTS22HSensor.h"TwoWireWire3(PB11, PB13);// ComponentsSTTS22HSensorTemp(&Wire3);voidsetup() {// Initialize serial for output  Serial.begin(9600);// Initlialize Wire3 instance  Wire3.begin();// Initlialize components  Temp.begin();  Temp.Enable();}voidloop() {float temperature =0.0;// Read temperature  Temp.GetTemperature(&temperature);// Output data  Serial.print("Temperature:");  Serial.println(temperature);delay(1000);}
Get ISM330DHCX accelerometer and gyroscope example
#include"ISM330DHCXSensor.h"TwoWireWire3(PB11, PB13);// ComponentsISM330DHCXSensorAccGyr(&Wire3);voidsetup() {// Initialize serial for output  Serial.begin(9600);// Initlialize Wire3 instance  Wire3.begin();// Initlialize components  AccGyr.begin();  AccGyr.ACC_Enable();  AccGyr.GYRO_Enable();}voidloop() {int32_t accelerometer[3];int32_t gyroscope[3];// Read accelerometer and gyroscope.  AccGyr.ACC_GetAxes(accelerometer);  AccGyr.GYRO_GetAxes(gyroscope);// Output data  Serial.print("| Acc[mg]:");  Serial.print(accelerometer[0]);  Serial.print("");  Serial.print(accelerometer[1]);  Serial.print("");  Serial.print(accelerometer[2]);  Serial.print("");  Serial.print("| Gyro[mdps]:");  Serial.print(gyroscope[0]);  Serial.print("");  Serial.print(gyroscope[1]);  Serial.print("");  Serial.print(gyroscope[2]);  Serial.println(" |");delay(500);}
Get VL53L0CXV0DH distance example
#include<Wire.h>#include<vl53l0x_class.h>// Create components.TwoWireWire3(PB11, PB13);//SDA=PB11 & SCL=PB10VL53L0Xsensor_vl53l0x(&Wire3, PNUM_NOT_DEFINED);//XSHUT connected to 3.3Vvoidsetup() {// Initialize serial for output.  Serial.begin(9600);// Initialize I2C bus.  Wire3.begin();// Configure VL53L0X component.  sensor_vl53l0x.begin();// Switch off VL53L0X component.  sensor_vl53l0x.VL53L0X_Off();// Initialize VL53L0X component.if (sensor_vl53l0x.InitSensor(0x10))  {    Serial.println("Init sensor_vl53l0x failed...");  }}voidloop() {// Read Range.uint32_t distance;if (sensor_vl53l0x.GetDistance(&distance) == VL53L0X_ERROR_NONE)  {// Output data.char report[64];snprintf(report,sizeof(report),"| Distance [mm]: %ld |", distance);    Serial.println(report);  }delay(100);}

@fpistmfpistm added the new variantAdd support of new bard labelJul 7, 2021
@fpistmfpistm added this to the2.x.x milestoneJul 7, 2021
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistmfpistmforce-pushed theSTM32WB5MM-DK branch 2 times, most recently from7b150b9 to8105af6CompareJuly 9, 2021 15:18
Signed-off-by: Frederic Pillon <frederic.pillon@st.com>
@fpistmfpistm merged commit47097af intostm32duino:masterJul 9, 2021
@fpistmfpistm deleted the STM32WB5MM-DK branchJuly 9, 2021 19:16
Sign up for freeto join this conversation on GitHub. Already have an account?Sign in to comment
Reviewers
No reviews
Assignees
No one assigned
Labels
new variantAdd support of new bard
Projects
None yet
Milestone
2.1.0
Development

Successfully merging this pull request may close these issues.

2 participants
@fpistm@BCsabaEngine

[8]ページ先頭

©2009-2025 Movatter.jp