Skip to content

Commit

Permalink
fix font paths, adjust contrast slightly.
Browse files Browse the repository at this point in the history
  • Loading branch information
arthurv committed Aug 20, 2015
1 parent edaa7da commit 42b2d68
Show file tree
Hide file tree
Showing 6 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions barometer.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
#disp = LCD.PCD8544(DC, RST, SCLK, DIN, CS)

# Initialize library.
disp.begin(contrast=65)
disp.begin(contrast=50)

# Clear display.
disp.clear()
Expand All @@ -41,7 +41,7 @@
# Load default font.
# Alternatively load a TTF font.
# Some nice fonts to try: http://www.dafont.com/bitmap.php
font = ImageFont.truetype('Minecraftia-Regular.ttf', 8)
font = ImageFont.load_default()

def signal_term_handler(signum = None, frame = None):
sys.stderr.write("Terminated.\n")
Expand Down
2 changes: 1 addition & 1 deletion clock.py
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@
# Load default font.
# Alternatively load a TTF font.
# Some nice fonts to try: http://www.dafont.com/bitmap.php
font = ImageFont.truetype('Volter__28Goldfish_29.ttf', 18)
font = ImageFont.truetype('fonts/Volter__28Goldfish_29.ttf', 18)

def signal_term_handler(signum = None, frame = None):
sys.stderr.write("Terminated.\n")
Expand Down
2 changes: 1 addition & 1 deletion gpsData.py
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@
#disp = LCD.PCD8544(DC, RST, SCLK, DIN, CS)

# Initialize library.
disp.begin(contrast=85)
disp.begin(contrast=55)
disp.set_contrast(55)

# Clear display.
Expand Down
2 changes: 1 addition & 1 deletion networkstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
#disp = LCD.PCD8544(DC, RST, SCLK, DIN, CS)

# Initialize library.
disp.begin(contrast=85)
disp.begin(contrast=55)
disp.set_contrast(55)

# Clear display.
Expand Down
2 changes: 1 addition & 1 deletion serialMonitor.py
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
# Get drawing object to draw on image.
draw = ImageDraw.Draw(image)

font = ImageFont.truetype('/home/pi/retroScreen/fonts/atomicsc.TTF', 6)
font = ImageFont.truetype('fonts/atomicsc.TTF', 6)

ser = serial.Serial('/dev/ttyAMA0', 9600, timeout=None)

Expand Down
2 changes: 1 addition & 1 deletion systemstats.py
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
disp = LCD.PCD8544(DC, RST, spi=SPI.SpiDev(SPI_PORT, SPI_DEVICE, max_speed_hz=4000000))

# Initialize library.
disp.begin(contrast=85)
disp.begin(contrast=55)
disp.set_contrast(55)

# Clear display.
Expand Down

0 comments on commit 42b2d68

Please sign in to comment.