Leigh Honeywell avatar Leigh Honeywell committed 3b28eaf

now with 8 LEDs

Comments (0)

Files changed (1)

   Serial.print(" raw heading\r\n");
-  heading = (int)(heading / 90);
+  heading = (int)(heading / 45);
+  //heading = 14;
   Serial.print(" comparison\r\n");
   // ASCII '0' through '9' characters are
   // represented by the values 48 through 57.
   // so if the user types a number from 0 through 9 in ASCII, 
   // you can subtract 48 to get the actual value:
-  int bitToSet = heading + 1;
+  int bitToSet = heading;
   // write to the shift register with the correct bit set high:
   registerWrite(bitToSet, HIGH);
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.