Comments (6)
Hi @nit1995
Since your Arduino board library seems to already provide these typedef's you can do as it states in the comments above the typedef
/** * Comment out the following block if your platform already provides the * type definitions u8, u16, u32, u64, s8, s16, s32, s64. */
And remove the typedef for u16
.
from embedded-uart-sps.
Thank you. I did that and the program is compiling without errors. To what pins of the Arduino must we connect the UART Rx and Tx? I am using the arduino_sps3_example.ino?
from embedded-uart-sps.
That depends on what Arduino board your are using. See https://www.arduino.cc/reference/en/language/functions/communication/serial/.
from embedded-uart-sps.
@nit1995 I'm closing this since the issue is resolved.
Concerning the follow-up question with the pins to use, that's obviously hardware dependent and this driver is hardware-agnostic, so it's not a driver issue that should be raised here. There's a sample implementation for more or less one arduino but due to its generic nature it's not a ready-to use arduino driver. Assuming that this issue is related to #16 and you're running on the Feather 32u4 I'd guess the MISO/MOSI (https://www.adafruit.com/product/2771) pins would be adequate, on other Arduinos its sometimes the rx/tx pins, when they're not shared with USB..
As a closing word, our vision is to get generally better out-of-the-box Arduino support, but that's still down the road.
from embedded-uart-sps.
Hi,
I'm getting the:
conflicting declaration 'typedef uint16_t u16'
when i comment this out
// typedef uint16_t u16
I get
unknown type name 'u16'
Where am I going wrong?
from embedded-uart-sps.
@yukimach This shouldn't happen with the newer releases (>2.0.0) since we changed to using the uint16_t
types directly. Please open a new issue if you still have any troubles.
from embedded-uart-sps.
Related Issues (20)
- sps30_stop_measurement issuing the wrong command HOT 3
- Adafruit Feather 32u4 Bluefruit LE: Unable to receive data HOT 6
- Distinguish between different SENSIRION_SHDLC_ERR_MISSING_STOP errors HOT 4
- Voltage via UART? HOT 3
- Only getting NaN readings via UART on Raspberry Pi 3 HOT 4
- SPS30 communication on uart HOT 1
- help wanted for SPS30 with UART communication HOT 2
- Atmel SAM4S implementation HOT 2
- Handle SHDLC Execution Error Codes and Device Error Flag properly
- uart-sps HOT 8
- Arduino example wrong #define HOT 2
- Support for Nano 33 BLE Sense HOT 4
- 40: internal function argument out of range HOT 2
- Output format is float values only — integer format not supported HOT 2
- First measurement read in sps30_example_usage.c always fails HOT 1
- Sps30 HOT 1
- UART HAL Recieve HOT 2
- STM32 UART EXAMPLE SPS30 HOT 3
- sensor probing failed HOT 4
- SPS30 with STM32F401 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from embedded-uart-sps.