[Pardus-kullanicilari] Pyastra
cihan okyay
okyaycihan at gmail.com
3 Ağu 2009 Pzt 19:55:05 EEST
03 Ağustos 2009 19:24 tarihinde Gökmen Görgen <gkmngrgn at gmail.com> yazdı:
> 2009/8/3 Kaan AKŞİT <kunguz at gmail.com>
>
>> Pyastra ile PIC programlamış olan kimse var mı? Örnek bir kod
>> paylaşabilirse çok makbule geçer. Web sayfasında ki örnek kod dışında bir
>> kod arıyorum. Ayrıca web sayfasında ki örnek kodu pyastra ile derlemeye
>> başaran kimse var mı? bende şöyle bir hata veriyor:
>>
>> WARNING: This is a preview release! It may (but i hope it doesn't)
>> generate incorrect code.
>>
>>
> PyAstra'yı review ederken
> ben de böyle bir çıktı alıyordum ama bazen yapabiliyordu. Uzun lafın kısası, PyAstra daha kararlı değil demek istiyor zannedersem. Kaldı ki şuan depoda olmamasının sebebi sanırım bu. Cihan'a sormak lazım.
>
Açıkçası adamların verdiği ekran görüntüsünde bile o uyarı var =) [1] Ama
dediğin gibi uygulama kararlı değil. Şu kodu iki türlü denediğimde olmuyor.
Artık parametrelerine bakarak çözmeye çalışacağım boş bir zamanımda.
#!/usr/bin/python
# -*- coding: utf-8 -*-
def ileri():
for i in xrange(0, 7):
PORTB = PORTB * 2
def geri():
for i in xrange(0, 7):
PORTB = PORTB / 2
while(1):
TRISB = 0
PORTB = 1
ileri()
geri()
cihann at pardus ~ $ pyastra -mpic14 -p16f84 karasimsek.py
WARNING: This is a preview release! It may (but i hope it doesn't) generate
incorrect code.
If it really works, please inform me for which microcontroller did you used
Pyastra and other thigs that may be important:
estyler (at) users (dot) sourceforge (dot)
net
If you have found a bug, you are welcome to submit one:
http://sourceforge.net/tracker/?group_id=106265&atid=643744
-------
Traceback (most recent call last):
File "/usr/bin/pyastra", line 172, in <module>
p.convert(op.root)
File "/usr/lib/python2.6/site-packages/pyastra/ports/pic14/tree2asm.py",
line 107, in convert
self._convert(From('builtins', [('*', None)]))
TypeError: __init__() takes at least 4 arguments (3 given)
cihann at pardus ~ $ pyastra --icd karasimsek.py
WARNING: This is a preview release! It may (but i hope it doesn't) generate
incorrect code.
If it really works, please inform me for which microcontroller did you used
Pyastra and other thigs that may be important:
estyler (at) users (dot) sourceforge (dot) net
If you have found a bug, you are welcome to submit one:
http://sourceforge.net/tracker/?group_id=106265&atid=643744
-------
Seems like microcontroller 16c432 doesn't support ICD.
/usr/lib/python2.6/site-packages/pyastra/ports/pic14/tree2asm.py bu dosya
ile ilgili bir sıkıntımı mevcut anlayamadım açıkçası.
İyi çalışmalar...
[1] http://sourceforge.net/project/screenshots.php?group_id=106265
--
Cihan OKYAY
http://cihanokyay.wordpress.com
-------------- sonraki bölüm --------------
Bir HTML eklentisi temizlendi...
URL: <http://liste.pardus.org.tr/pardus-kullanicilari/attachments/20090803/d592a010/attachment-0001.htm>
Pardus-kullanicilari mesaj listesiyle ilgili
daha fazla bilgi