Advertisement
Guest User

Untitled

a guest
Oct 31st, 2014
161
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. int FSR_Pin = A0; //analog pin 0
  2.  
  3. void setup(){
  4. Serial.begin(9600);
  5. }
  6.  
  7. void loop(){
  8. int FSRReading = analogRead(FSR_Pin);
  9.  
  10. Serial.println(FSRReading);
  11. delay(250); //just here to slow down the output for easier reading
  12. }
  13.  
  14. int GPIO.IN=GPIO.BPM;
  15. void setup(){
  16. Serial.begin(9600);
  17. }
  18. void loop(){
  19. int GPIOReading = analogRead(GPIO.IN);
  20. Serial.println(GPIOReading);
  21. delay(650);
  22. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement