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.
Dependencies: mbed Watchdog stm32-sensor-base2
Diff: AS5045/AS5045.h
- Revision:
- 5:97117a837d2c
- Parent:
- 4:f6e22dd39313
- Child:
- 12:406f75196a12
--- a/AS5045/AS5045.h Sat Jul 18 14:59:04 2020 +0000 +++ b/AS5045/AS5045.h Tue Jul 21 12:18:14 2020 +0000 @@ -14,7 +14,8 @@ private: SPI _spi; // MBED SPI instance - DigitalOut _cs; // MBED digital output pin + DigitalOut _cs; + uint16_t EncoderByteData; // MBED digital output pin static const float MAX_VALUE = 1024; // Maximum possible encoder position value (ticks for full rotation) static const float RESOLUTION = 0.08789; // Encoder resolution (0.08789 degrees per tick)