Skip to content
This repository has been archived by the owner on Nov 23, 2019. It is now read-only.

Commit

Permalink
Mino fix
Browse files Browse the repository at this point in the history
Fix the lcd test that doesn't work on device has no uming.ttc
Fix a typo in AbsoluteIMU class
  • Loading branch information
topikachu committed Aug 2, 2014
1 parent f705127 commit fe99b75
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion ev3/mindsensors.py
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ def acc_2g(self):
def acc_4g(self):
self.command = 0x32

def acc_5g(self):
def acc_8g(self):
self.command = 0x33

def acc_16g(self):
Expand Down
10 changes: 5 additions & 5 deletions test/test_ev3_lcd.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@ def test_lcd(self):
d.reset()
font = ImageFont.load_default()
d.draw.text((10, 10), "hello", font=font)
d.update()
time.sleep(2)
d.reset()
font = ImageFont.truetype('/usr/share/fonts/truetype/arphic/uming.ttc',15)
d.draw.text((20, 20), u'你好,世界', font=font)
try:
font = ImageFont.truetype('/usr/share/fonts/truetype/arphic/uming.ttc',15)
d.draw.text((20, 20), u'你好,世界', font=font)
except IOError:
print('No uming.ttc found. Skip the CJK test')
d.update()


Expand Down

0 comments on commit fe99b75

Please sign in to comment.