<div dir="ltr">K tomu "try:" ti chybí "except:".<div class="gmail_extra"><br></div><div class="gmail_extra">PM</div><div class="gmail_extra"><br><div class="gmail_quote">2016-07-26 21:32 GMT+02:00  <span dir="ltr"><<a href="mailto:ales.hruby33@gmail.com" target="_blank">ales.hruby33@gmail.com</a>></span>:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">#!/usr/bin/env python<br>
<br>
import RPi.GPIO as GPIO<br>
import time<br>
<br>
promena=3<br>
GPIO.setmode(GPIO.BCM)<br>
GPIO.setup(4, GPIO.OUT)<br>
while True:<br>
<br>
    try:<br>
        time.sleep(1)<br>
<br>
        if i == 1:<br>
                GPIO.output(4, False)<br>
        else:<br>
                GPIO.output(4, True)<br>
<br>
<br>
hlásí to chybu<br>
./test.py<br>
  File "./test.py", line 18<br>
<br>
                          ^<br>
IndentationError: unexpected unindent<br>
<br>
vůbec nemohu najit co to je kdyz ten radek ani neexistuje :-( děkuji<br>
_______________________________________________<br>
Python mailing list<br>
<a href="mailto:python@py.cz">python@py.cz</a><br>
<a href="http://www.py.cz/mailman/listinfo/python" rel="noreferrer" target="_blank">http://www.py.cz/mailman/listinfo/python</a><br>
<br>
Visit: <a href="http://www.py.cz" rel="noreferrer" target="_blank">http://www.py.cz</a><br>
</blockquote></div><br></div></div>