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.

consts.go 659B

123456789101112131415161718192021222324252627
  1. package adafruitPCA9685 // import "go.rls.moe/misc/adafruitPCA9685"
  2. /* https://github.com/adafruit/Adafruit_Python_PCA9685/blob/master/Adafruit_PCA9685/PCA9685.py */
  3. const (
  4. c_PCA9685_ADDRESS = 0x40
  5. c_MODE1 = 0x00
  6. c_MODE2 = 0x01
  7. c_SUBADR1 = 0x02
  8. c_SUBADR2 = 0x03
  9. c_SUBADR3 = 0x04
  10. c_PRESCALE = 0xFE
  11. c_LED0_ON_L = 0x06
  12. c_LED0_ON_H = 0x07
  13. c_LED0_OFF_L = 0x08
  14. c_LED0_OFF_H = 0x09
  15. c_ALL_LED_ON_L = 0xFA
  16. c_ALL_LED_ON_H = 0xFB
  17. c_ALL_LED_OFF_L = 0xFC
  18. c_ALL_LED_OFF_H = 0xFD
  19. c_RESTART = 0x80
  20. c_SLEEP = 0x10
  21. c_ALLCALL = 0x01
  22. c_INVRT = 0x10
  23. c_OUTDRV = 0x04
  24. )