[SOLVED] pin state Hi-Z (floating)

Post here first, or if you can't find a relevant section!
Post Reply
acronis
Posts: 142
Joined: Thu Mar 02, 2017 12:32 pm

[SOLVED] pin state Hi-Z (floating)

Post by acronis » Wed Oct 11, 2017 1:46 pm

Hello.
Tell me what team in the process of the program to transfer the pin state Hi-Z (floating) ?

Using a library - https://github.com/danieleff/STM32GENERIC
Board - STM32F746G-DISCO 
Last edited by acronis on Thu Oct 12, 2017 1:01 pm, edited 1 time in total.

User avatar
Pito
Posts: 1593
Joined: Sat Mar 26, 2016 3:26 pm
Location: Rapa Nui

Re: pin state Hi-Z (floating)

Post by Pito » Wed Oct 11, 2017 2:40 pm

Set the pin to INPUT:

Code: Select all

pinMode(PC7, INPUT);
Pukao Hats Cleaning Services Ltd.

acronis
Posts: 142
Joined: Thu Mar 02, 2017 12:32 pm

Re: pin state Hi-Z (floating)

Post by acronis » Wed Oct 11, 2017 11:48 pm

hello pito!

A simple switch to give INPUT Hi-Z state ? Everything is so simple ?
I thought that there is some sort of special operator for this.

Thank you as always for your help.

Post Reply