I have a list of bytes that are represented in string format, for example, when I print the list in Python3.3 I get the following output:
DATA = ['FF', 'FF', 'FF', 'FF']
I would like to convert these into bytes, for example 0xFF,0xFF,0xFF,0xFF. I have tried the bytearray() function but this returns an error.
I'm guessing that I am missing something simple here, but I have looked around SO and Google and have so far had no luck
Thanks!