Preliminary mbed encoder interface IC class
Dependents: mbed_QUAD_ENCLIB_TEST Axis Axis_20181108 Axis_version2
include the mbed library with this snippet
#include "mbed.h" #include "LS7366.h" SPI spi(p5, p6, p7); LS7366 enc1(spi, p19); LS7366 enc2(spi, p20); Serial pc(USBTX, USBRX); // tx, rx for serial USB interface to pc //------------------- MAIN -------------------------------- int main() { while(1){ pc.printf("enc1 = %ld enc2 = %ld\r\n",enc1.read(), enc2.read()); wait(.02); }//while(1) }//main
History
added this-> to most local variables/methods to avoid ambiguity
2015-10-07, by jebradshaw [Wed, 07 Oct 2015 17:31:26 +0000] rev 2
added this-> to most local variables/methods to avoid ambiguity
removed secondary operator overload
2015-08-31, by jebradshaw [Mon, 31 Aug 2015 17:13:34 +0000] rev 1
removed secondary operator overload
LS7366 preliminary class for mbed
2014-12-09, by jebradshaw [Tue, 09 Dec 2014 19:08:46 +0000] rev 0
LS7366 preliminary class for mbed