Changes between Version 4 and Version 5 of SPIMaster


Ignore:
Timestamp:
Feb 23, 2009 1:07:49 AM (11 years ago)
Author:
sgk
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • SPIMaster

    v4 v5  
    2222loop()
    2323{
     24  int value;
     25
    2426  delay(500);
    25   long value;
    2627  SPI_Master.enable(SLAVE);
    2728  value = SPI_Master.read() << 8;
     
    3233    Serial.println("Error");
    3334  else
    34     Serial.println((float)(value >> 3) / 4);
     35    Serial.println((value >> 3) * 0.25);
    3536}
    3637}}}