Port Expander library , Single bit reading

General discussion on mikroPascal PRO for PIC.
Post Reply
Author
Message
kentar
Posts: 78
Joined: 29 Oct 2010 07:54

Port Expander library , Single bit reading

#1 Post by kentar » 04 Nov 2021 16:17

In Port_expander library I can read PortA and (or) PortB as byte

function Expander_Read_Byte(ModuleAddress, RegAddress : byte) : byte;

How can I read an individual pin , for example PortA.7 ?

User avatar
filip
mikroElektronika team
Posts: 11874
Joined: 25 Jan 2008 09:56

Re: Port Expander library , Single bit reading

#2 Post by filip » 05 Nov 2021 09:51

Hi,

You can only do a full byte read and then extract the necessary bit.

Regards,
Filip.

Post Reply

Return to “mikroPascal PRO for PIC General”