How to inform the UI of data received?

Hello,

I have created a UI that is waiting for some data to be received from my RF receiver. When it sees that it updates the UI. Currently I am using the Observer design pattern but the problem is that I wanted to keep all the UI stuff separate from the HW stuff. The observer pattern forces me to create an object of UIScreen class in my HW code. So, now the HW is too linked to the UI. Is there a better way of doing this?

Thanks.

How about posting your code - in code tags please.

What is an Observer design pattern?

What equipment are you using? Arduino board? UI screen? RF receiver? etc etc.

What is sending data to the receiver? What sort of data?

And anything else you can think of that you know and we don't.

...R