Skip to content
Why GitHub?
Features
→
Code review
Project management
Integrations
Actions
Team management
Social coding
Documentation
Code hosting
Case Studies
→
Security
→
Enterprise
Explore
Explore GitHub
→
Learn & contribute
Topics
Collections
Trending
Learning Lab
Open source guides
Connect with others
Events
Community forum
GitHub Education
Marketplace
Pricing
Plans
→
Compare plans
Contact Sales
Nonprofit
→
Education
→
In this repository
All GitHub
↵
Jump to
↵
No suggested jump to results
In this repository
All GitHub
↵
Jump to
↵
In this repository
All GitHub
↵
Jump to
↵
Sign in
Sign up
Watch
1
Star
0
Fork
0
dpoulson
/
drinks_dispenser
Code
Issues
0
Pull requests
0
Projects
0
Insights
Permalink
Browse files
Some tweaks...
Loading branch information
...
dpoulson
committed
Nov 27, 2017
1 parent
53646bc
commit
2f872b203c51493bb9d85997818ab3d31cceaf02
Unified
Split
Showing
2 changed files
with
10 additions
and
34 deletions
.
+0
−34
1
+10
−0
dispense.py
Show comments
View file
34
1
Load diff
This file was deleted.
Oops, something went wrong.
Retry
Show comments
View file
10
dispense.py
@@ -55,6 +55,16 @@ def writei2c(data):
time.sleep(
INTERVAL
)
#
Set all GPA pins as outputs by setting
#
all bits of IODIRA and IODIRB register to 0
#
bus.write_byte_data(DEVICE,IODIRA,0x00)
#
bus.write_byte_data(DEVICE,IODIRB,0x00)
#
Set output all 7 output bits to 0
#
bus.write_byte_data(DEVICE,OLATA,0)
#
bus.write_byte_data(DEVICE,OLATB,0)
#
####
#
Open door
print
"
Open door
"
Toggle all file notes
0 comments on commit
2f872b2
Please
sign in
to comment.
You can’t perform that action at this time.
You signed in with another tab or window.
Reload
to refresh your session.
You signed out in another tab or window.
Reload
to refresh your session.
Press h to open a hovercard with more details.
0 comments on commit
2f872b2