Skip to content

Instantly share code, notes, and snippets.

@keriszafir
Created March 27, 2016 13:09
Show Gist options
  • Save keriszafir/e36bf6555817fa4319b5 to your computer and use it in GitHub Desktop.
Save keriszafir/e36bf6555817fa4319b5 to your computer and use it in GitHub Desktop.
#!/usr/bin/env python3
"""Database fix for rpi2caster 0.4:
layout was: [(char1, [style1, style2...], column1, row1, units1),
(char2, [style1, style2...], column2, row2, units2),...]
now is: [(char1, styles1, coords1, units1),
(char2, styles2, coords2, units2),...]
(simplified the styles and coordinates)
"""
from rpi2caster import database
DB = database.Database()
DB.correct_diecase_layout()
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment