for learning

Dependencies:   mbed FastPWM

Revision:
255:aa424a9ca332
Parent:
254:725d7435dfa3
Child:
256:7c8cc8b56b88
--- a/main.cpp	Mon Feb 22 13:25:19 2021 +0000
+++ b/main.cpp	Mon Feb 22 14:09:13 2021 +0000
@@ -887,11 +887,12 @@
     eeprom.format(8,3);
     eeprom.frequency(5000000); //5M
     eeprom_cs = 0;
-
-    enc_cs = 1;
+    make_delay();
+
+    enc_cs = 1;     //sw add
     enc.format(8,0);
-    enc.frequency(5000000); //5M
-    enc_cs = 0;
+    enc.frequency(10000000); //10M
+    enc_cs = 0;     //sw add
     
     make_delay();