LEDTest() {
   fred = new SPI(Port.kOnboardCS0);
   fred.setClockRate(bitrate);
   fred.setMSBFirst();
   fred.setSampleDataOnFalling();
   fred.setClockActiveLow();
   fred.setChipSelectActiveLow();
 }
예제 #2
0
 public GyroInterface() {
   mSPI = new SPI(SPI.Port.kOnboardCS0);
   mSPI.setClockRate(4_000_000);
   mSPI.setChipSelectActiveLow();
   mSPI.setClockActiveHigh();
   mSPI.setSampleDataOnRising();
   mSPI.setMSBFirst();
 }