Update PAXTON_NET.py

Signed-off-by: Jarek Barwinski <116510448+jareckib@users.noreply.github.com>
This commit is contained in:
Jarek Barwinski 2025-01-31 14:50:44 +00:00 committed by GitHub
parent 989b595119
commit e8c1ecf1ba
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,5 +1,21 @@
# Author - Jareckib
# Based on Equipter's tutorial - Downgrade Paxton Net to EM410x
# paxton_net.py - Convert Paxton Net2 to EM4102
# Author jareckib <jareckib@hotmail.com>
# Based on Equipter's tutorial - Downgrade Paxton Net to EM410x
#
# This code is copyright (c) jareckib, 2025, All rights reserved.
# For non-commercial use only, the following terms apply - for all other
# uses, please contact the author.
#
# This code is free software; you can redistribute it and/or modify
# it under the terms of the GNU General Public License as published by
# the Free Software Foundation; either version 3 of the License, or
# (at your option) any later version.
#
# This code is distributed in the hope that it will be useful,
# but WITHOUT ANY WARRANTY; without even the implied warranty of
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
# GNU General Public License for more details.
import sys
def hex_to_bin(hex_string):
return ''.join(format(byte, '08b') for byte in bytearray.fromhex(hex_string))