Update oneplus_8t.ini, mkbd65/phone.py, mkbd65/pcb.py, mkbd65/lower_case.py, mkbd65/key_mat.py

This commit is contained in:
XenGi 2022-02-22 18:31:55 +00:00
commit 4b991076f6
5 changed files with 4 additions and 12 deletions

View file

@ -1,11 +1,8 @@
"""
All sizes are in millimeters.
"""
from typing import Tuple
from solid import OpenSCADObject, cube, linear_extrude, text, translate, scale, rotate, cylinder, union, color, square, offset
from util import get_label_size, FILAMENT_LAYER, LAYOUTS, forward, right, backward
from mkbd65.util import get_label_size, FILAMENT_LAYER, LAYOUTS, forward, right, backward
def key(

View file

@ -1,6 +1,6 @@
from solid import OpenSCADObject, hull, translate, sphere, cube, scale, offset, square
from util import PCB_WIDTH, PCB_HEIGHT, PCB_RADIUS, forward, backward, up, right
from mkbd65.util import PCB_WIDTH, PCB_HEIGHT, PCB_RADIUS, forward, backward, up, right
def lower_case(phone_width: float, phone_height: float, phone_radius: float) -> OpenSCADObject:
@ -100,4 +100,4 @@ def lower_case(phone_width: float, phone_height: float, phone_radius: float) ->
# }
# }
# }
# }
# }

View file

@ -1,6 +1,6 @@
from solid import OpenSCADObject, color, linear_extrude, polygon, translate, scale, offset, square, union, cylinder
from util import PCB_WIDTH, PCB_HEIGHT, PCB_RADIUS
from mkbd65.util import PCB_WIDTH, PCB_HEIGHT, PCB_RADIUS
def switch() -> OpenSCADObject:

View file

@ -1,7 +1,3 @@
"""
All sizes are in millimeters.
"""
from solid import OpenSCADObject, linear_extrude, translate, offset, square
@ -28,4 +24,3 @@ def phone(
)
)
)

18
oneplus_8t.ini Normal file
View file

@ -0,0 +1,18 @@
# oneplus_8t
[phone]
width = 160.7
height = 74.1
thickness = 8.4
corner_radius = 10
side_radius = 5
[key_mat]
margin = 1
padding = 1
thickness = 0.5
key_width = 9
key_height = 6
key_corner_radius = 1
key_thickness = 2
font = DejaVu Sans:style=Bold