-
Notifications
You must be signed in to change notification settings - Fork 0
/
htb.py
28 lines (21 loc) · 790 Bytes
/
htb.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!/usr/bin/python
# Example using a character LCD plate.
import time
import Adafruit_CharLCD as LCD
# Initialize the LCD using the pins
lcd = LCD.Adafruit_CharLCDPlate()
# create some custom characters
lcd.create_char(1, [2, 3, 2, 2, 14, 30, 12, 0])
lcd.create_char(2, [0, 1, 3, 22, 28, 8, 0, 0])
lcd.create_char(3, [0, 14, 21, 23, 17, 14, 0, 0])
lcd.create_char(4, [31, 17, 10, 4, 10, 17, 31, 0])
lcd.create_char(5, [8, 12, 10, 9, 10, 12, 8, 0])
lcd.create_char(6, [2, 6, 10, 18, 10, 6, 2, 0])
lcd.create_char(7, [31, 17, 21, 21, 21, 21, 17, 31])
# Show some basic colors.
str = open('/home/pi/rank', 'r').read()
message = "HTB:fhlipZero \nHacker:Rank:{}".format(str)
lcd.set_color(0.0, 1.0, 0.0)
lcd.clear()
lcd.message(message)
#lcd.message('HTB:fhlipZero \n Rank:'str':Hacker ')