On 22/01/18 19:33, Dennis Lee Bieber wrote:
> On Mon, 22 Jan 2018 18:53:35 +0000, RobH declaimed the
> following:
>
>>>
>> I have just measured the voltage on GPIO17 and it is still as it was
>> before at 0.06 volts.
>>
>
> Measurement of the pins is meaningless without knowing that /direction
> and /value were set properly. The default state seems to be INput with the
> pin pulled down to ground (value shows 0).
>
> And /that/ requires being able to control things from the command line.
> Until you can successfully set /direction to out, and /value to 1, the pin
> voltage is expected to be near ground (except for the two pins that are
> pulled high)
>
Direction and value are set
root@raspberrypi:/sys/class/gpio/gpio17# echo out > direction
root@raspberrypi:/sys/class/gpio/gpio17# echo 1 > value
root@raspberrypi:/sys/class/gpio/gpio17#
I also tried:
>>> GPIO.setup(17, GPIO.OUT)
>>> GPIO.output(17, GPIO.HIGH)
To get it give 3.3 volts, but it didn't
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|