Advertisement
Guest User

HardWire-inlib

a guest
Oct 3rd, 2012
133
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 0.32 KB | None | 0 0
  1. #include <Gyro/Gyro.h>
  2. #include <Wire/Wire.h>
  3. #include <wirish/wirish.h>
  4.  
  5. Gyro gyro;
  6.  
  7. void setup(){
  8.  
  9. }
  10.  
  11.  
  12.  
  13. void loop(){
  14.   gyro.readValues();
  15. }
  16.  
  17.  
  18.  
  19. __attribute__((constructor)) void premain() {
  20.     init();
  21. }
  22.  
  23.  
  24.  
  25.  
  26. int main(void) {
  27.     setup();
  28.  
  29.     while (true) {
  30.         loop();
  31.     }
  32.     return 0;
  33. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement