Skip to content

Commit

Permalink
Update readme instructions
Browse files Browse the repository at this point in the history
  • Loading branch information
koolsb committed Mar 21, 2018
1 parent 504e136 commit 546a511
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
16 changes: 13 additions & 3 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ from pyblackbird import get_blackbird

blackbird = get_blackbird('/dev/ttyUSB0')

# Print system power status
print('System Power is {}'.format(system_power_status))
# Print system lock status
print('System Lock is {}'.format('On' if blackbird.lock_status() else 'Off'))

# Valid zones are 1-8
zone_status = blackbird.zone_status(1)
Expand All @@ -28,5 +28,15 @@ print('IR Source = {}'.format(zone_status.ir))
blackbird.set_power(1, False)

# Set source 5 for zone #1
blackbird.set_source(1, 5)
blackbird.set_zone_source(1, 5)

# Set all zones to source 2
blackbird.set_all_zone_source(2)

# Lock system buttons
blackbird.lock_front_buttons()

# Unlock system buttons
blackbird.unlock_front_buttons()

```
2 changes: 1 addition & 1 deletion setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
import os
import sys

VERSION = '0.3'
VERSION = '0.4'

try:
from setuptools import setup
Expand Down

0 comments on commit 546a511

Please sign in to comment.