설명 없음
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

pmw3360.h 422B

12345678910111213141516171819202122232425
  1. /*
  2. * pmw3360.h
  3. */
  4. #ifndef __PMW3360_H__
  5. #define __PMW3360_H__
  6. int pmw_init(void);
  7. /*
  8. * 0x00: 100 cpi (minimum cpi)
  9. * 0x01: 200 cpi
  10. * 0x02: 300 cpi
  11. * ...
  12. * 0x31: 5000 cpi (default cpi)
  13. * ...
  14. * 0x77: 12000 cpi (maximum cpi)
  15. */
  16. void pmw_set_sensitivity(uint8_t sens);
  17. uint8_t pmw_get_sensitivity(void);
  18. #define PMW_SENSE_TO_CPI(sense) (100 + (sense * 100))
  19. void pmw_print_status(void);
  20. #endif // __PMW3360_H__