Sungwoo Kim
/
HydraulicControlBoard_Rainbow_v1_2_copy
2011
Diff: main.cpp
- Revision:
- 8:5d2eebdad025
- Parent:
- 7:e9086c72bb22
- Child:
- 9:7f07aa6ff49a
diff -r e9086c72bb22 -r 5d2eebdad025 main.cpp --- a/main.cpp Tue Aug 20 12:27:19 2019 +0000 +++ b/main.cpp Fri Aug 23 00:28:47 2019 +0000 @@ -70,10 +70,10 @@ //pc.printf("The time taken was %f seconds\n",t.read()); // i2c init -// i2c.frequency(400 * 1000); // 0.4 mHz -// wait_ms(2); // Power Up wait -// look_for_hardware_i2c(); // Hardware present -// init_as5510(i2c_slave_addr1); + i2c.frequency(400 * 1000); // 0.4 mHz + wait_ms(2); // Power Up wait + look_for_hardware_i2c(); // Hardware present + init_as5510(i2c_slave_addr1); // // spi init eeprom.format(8,3); @@ -115,11 +115,11 @@ // int a=spi_eeprom_read(0x0001); //spi _ enc int a = spi_enc_read(); -// read_field(i2c_slave_addr1); + read_field(i2c_slave_addr1); check_2=0; -// pc.printf("%f\n",PWM_out); + pc.printf("%f\n",1234); // pc.printf("%d\n",a1); // wait(0.01f);