Important changes to repositories hosted on mbed.com
Mbed hosted mercurial repositories are deprecated and are due to be permanently deleted in July 2026.
To keep a copy of this software download the repository Zip archive or clone locally using Mercurial.
It is also possible to export all your personal repositories from the account settings page.
Diff: PositionSensor/PositionSensor.cpp
- Revision:
- 57:b85d050f9ae7
- Parent:
- 56:fe5056ac6740
diff -r fe5056ac6740 -r b85d050f9ae7 PositionSensor/PositionSensor.cpp --- a/PositionSensor/PositionSensor.cpp Thu Oct 10 15:03:12 2019 +0000 +++ b/PositionSensor/PositionSensor.cpp Sat Nov 28 13:13:43 2020 +0000 @@ -12,7 +12,7 @@ ElecOffset = offset; rotations = 0; spi = new SPI(PC_12, PC_11, PC_10); - spi->format(16, 1); // mbed v>127 breaks 16-bit spi, so transaction is broken into 2 8-bit words + spi->format(16, 3); // mbed v>127 breaks 16-bit spi, so transaction is broken into 2 8-bit words spi->frequency(25000000); cs = new DigitalOut(PA_15);