![](/media/cache/img/default_profile.jpg.50x50_q85.jpg)
for learning
Diff: main.cpp
- Revision:
- 254:725d7435dfa3
- Parent:
- 253:0246366e0dcb
- Child:
- 255:aa424a9ca332
diff -r 0246366e0dcb -r 725d7435dfa3 main.cpp --- a/main.cpp Fri Feb 19 11:23:51 2021 +0000 +++ b/main.cpp Mon Feb 22 13:25:19 2021 +0000 @@ -883,12 +883,21 @@ make_delay(); // // spi init + eeprom_cs = 1; eeprom.format(8,3); eeprom.frequency(5000000); //5M + eeprom_cs = 0; + + enc_cs = 1; enc.format(8,0); enc.frequency(5000000); //5M + enc_cs = 0; + make_delay(); +// spi_eeprom_write(RID_BNO, (int16_t) 0); +// make_delay(); + //rom ROM_CALL_DATA(); make_delay();