naivxnaivet

Truth Table

Dec 11th, 2022
305
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.64 KB | None | 0 0
  1. /*
  2. infraredSensor LOW = detection
  3. metalSensor HIGH = detection
  4. plasticSensor LOW = detection
  5. /------------------------------------------------------------------------/
  6. Truth Table
  7. 1 = DETECT 0 = NO_DETECT
  8. Please don't get this confused with the actual sensor input
  9.  
  10. M Pl M Pa n
  11. IR SENSOR |1| |1| |1| |1| |0|
  12. PLASTIC SENSOR |1| |1| |0| |0| |0|
  13. METAL SENSOR |1| |0| |1| |0| |0|
  14.  
  15. M = Metal - 1 1 1
  16. Pl = Plastic - 1 1 0
  17. Metal - 1 0 1
  18. Pa = Paper - 1 0 0
  19. null - 0 0 0
  20. /------------------------------------------------------------------------/
  21.  
  22. */
Add Comment
Please, Sign In to add comment