项目作者: JeremyJones

项目描述 :
An eight-light clock for Raspberry Pi using the Pimoroni Blinkt!
高级语言: Python
项目地址: git://github.com/JeremyJones/blinkt-clocky.git
创建时间: 2017-05-24T21:09:05Z
项目社区:https://github.com/JeremyJones/blinkt-clocky

开源协议:

下载


blinkt-clocky

An eight-light clock for Raspberry Pi using the Pimoroni Blinkt!

  1. Help on module clocky:
  2. NAME
  3. clocky - Blinkt-Clocky -- 8 light led clock for the Pimoroni Blinkt!
  4. FILE
  5. /home/pi/Documents/blinkt-clocky/clocky.py
  6. FUNCTIONS
  7. main()
  8. The Clocky light displays the hour range, the minute range, the
  9. second range, and a clock tick.
  10. To read the clock:
  11. The hours are represented by a blue bar with a bright end. The
  12. longer the bar, the later it is in the day. Each segment in the
  13. bar represents 3 hours.
  14. The minutes are represented by the 2nd light on the bar. A blue
  15. light is displayed when the minutes are between 0 and 15. A green
  16. light is displayed for minutes 16-30. A white light represents
  17. minutes 31-45 and a red light for minutes 46-59.
  18. The seconds are represented by the 1st light on the bar. A blue
  19. light is displayed when the seconds are between 0 and 15. A green
  20. light is displayed for seconds 16-30. A white light represents
  21. seconds 31-45 and a red light for seconds 46-59.
  22. If the last light on the bar is not already lit for another
  23. purpose, then it is used to display a pendulum of the clock,
  24. displaying a white light for the odd seconds within each minute.
  25. sleep(...)
  26. sleep(seconds)
  27. Delay execution for a given number of seconds. The argument may be
  28. a floating point number for subsecond precision.
  29. DATA
  30. NUM_PIXELS = 8