45

Dependencies:   mbed BufferedSerial LS7366LIB FastPWM

Revision:
0:c21936a3520a
diff -r 000000000000 -r c21936a3520a SPI_TO_UART.h
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/SPI_TO_UART.h	Mon Mar 23 08:38:40 2020 +0000
@@ -0,0 +1,17 @@
+DigitalOut cs(PB_4);
+
+void Read_DATA()
+{
+  cs = 1;
+  for(int i=0; i<64; i++)
+  {
+    char c = spi1.write(0);
+    if(c==255)
+    {
+    break;
+    }
+    else
+    pc.printf("%c",c);
+  }   
+  cs = 0;
+}
\ No newline at end of file