Changed int (truncate) to round to correct gpio_default error. (#83)

This commit is contained in:
Mitch Bailey 2022-04-22 09:53:21 +09:00 committed by GitHub
parent 562405a302
commit da3f77d680
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -189,8 +189,8 @@ if __name__ == '__main__':
one_string = []
for i in range(0, 13):
llx_zero = int(via_pos[i][0] * 200)
lly_zero = int(via_pos[i][1] * 200)
llx_zero = round(via_pos[i][0] * 200)
lly_zero = round(via_pos[i][1] * 200)
urx_zero = llx_zero + 34
ury_zero = lly_zero + 34