# V2 and V3 incompatibility for UART data

**URL:** <https://forum.makecode.com/t/v2-and-v3-incompatibility-for-uart-data/17476>\
**Category:** micro:bit\
**Created:** [January 17, 2023, 5:44pm UTC](https://forum.makecode.com/t/v2-and-v3-incompatibility-for-uart-data/17476 "2023-01-17T17:44:52Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![MicroGuy](https://avatars.discourse-cdn.com/v4/letter/m/977dab/32.png) [@MicroGuy](https://forum.makecode.com/u/MicroGuy)\
**Post date:** [January 17, 2023, 5:44pm UTC](https://forum.makecode.com/t/v2-and-v3-incompatibility-for-uart-data/17476/1 "2023-01-17T17:44:52Z")

</div>

I want an integer value of a byte received by the MicroBit’s UART. Thus, binary 01101101 should give me the integer value 109. This program runs fine under Microbit Python v2:

from microbit import \*  
from microbit import uart, sleep  
uart\_Rx\_buffer = [0, 0]  
while True:  
uart.init(baudrate = 9600, tx = pin0, rx = pin1)  
while not uart.any():  
pass  
uart\_Rx\_buffer = uart.read(1)  
sleep(400)

```
int_val = int.from_bytes(uart_Rx_buffer, "big")
display.scroll(int_val)

```

But it throws an error (see below) on this statement when I try to run it with Microbit Python v3:

int\_val = int.from\_bytes(uart\_Rx\_buffer, “big”)

Error message: "Argument does not match parameter type for parameter “bytes”

What the heck is going on and how can I get the decimal value? I could not find anything clear about any changes in the UART library. Thanks in advance for any assistance. --Jon
