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.
main.cpp
- Committer:
- Rbinas
- Date:
- 2019-02-24
- Revision:
- 1:ba4ae56b4895
- Parent:
- 0:32af259f9f2a
File content as of revision 1:ba4ae56b4895:
// program used to read SPI 12 bit Encoder AMT203-V in steps of 16
#include "mbed.h"
#include "SPIEncoder.h"
Serial pc(USBTX, USBRX); // tx, rx
int main()
{
InitializeEncoder();
while(true)
{
EncoderA();
EncoderB();
pc.printf("Data = %03d%03d \n", Steps,Steps1);
}
}