Closed justinbalexander closed 5 years ago
Trying my own suggestion didn't work either.
I made the repo public and pushed it in it's failing state. I don't understand why the library isn't being found.
To build you have to cd into this directory:
https://github.com/vegecode/Gamete/tree/master/pcb/skidl
and use command python3 gamete.py
Can someone help me understand why i am getting the above error about the file not being found?
I tried your code and found these errors:
gamete_lib.py
, you'll need to call it gamete_sklib.py
.When you access the library, you'll have to do it like this:
led_driver = Part(
'gamete',
'TPS61169',
tool=SKIDL,
manu='Texas Instruments',
part_no='TPS61169DCKR',
footprint='Package_TO_SOT_SMD:SOT-353_SC-70-5_HandSoldering',
)
or like this:
led_driver = Part(
'gamete_sklib.py',
'TPS61169',
tool=SKIDL,
manu='Texas Instruments',
part_no='TPS61169DCKR',
footprint='Package_TO_SOT_SMD:SOT-353_SC-70-5_HandSoldering',
)
gamete_sklib.py
, you'll need to change pin functions from things like Pin.PWROUT
to Pin.types.PWROUT
. (I'll need to fix SKiDL to allow the shorter version of pin functions.)gamete.py
, prepend gen.
to Diode_SMD
to access the part inside the generic_parts
file.After making these changes, I was able to get your code to compile. There were a lot of unconnected pin warnings and such, but you probably expected those.
Thank you very much.
I figured there was a naming convention I wasn't aware of.
On Wed, Aug 7, 2019, 7:25 PM xesscorp notifications@github.com wrote:
I tried your code and found these errors:
- Instead of calling your library gamete_lib.py, you'll need to call it gamete_sklib.py.
- When you access the library, you'll have to do it like this:
led_driver = Part( 'gamete', 'TPS61169', tool=SKIDL, manu='Texas Instruments', part_no='TPS61169DCKR', footprint='Package_TO_SOT_SMD:SOT-353_SC-70-5_HandSoldering', )
or like this:
led_driver = Part( 'gamete_sklib.py', 'TPS61169', tool=SKIDL, manu='Texas Instruments', part_no='TPS61169DCKR', footprint='Package_TO_SOT_SMD:SOT-353_SC-70-5_HandSoldering', )
- In gamete_sklib.py, you'll need to change pin functions from things like Pin.PWROUT to Pin.types.PWROUT. (I'll need to fix SKiDL to allow the shorter version of pin functions.)
- On line 125 of gamete.py, prepend gen. to Diode_SMD to access the part inside the generic_parts file.
After making these changes, I was able to get your code to compile. There were a lot of unconnected pin warnings and such, but you probably expected those.
— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/xesscorp/skidl/issues/64?email_source=notifications&email_token=AJOF5C2LUPBOW4BELB35K6LQDNRXHA5CNFSM4IJ3X62KYY3PNVWWK3TUL52HS4DFVREXG43VMVBW63LNMVXHJKTDN5WW2ZLOORPWSZGOD32CCCI#issuecomment-519315721, or mute the thread https://github.com/notifications/unsubscribe-auth/AJOF5CYTFLEMJVBIFLNSZALQDNRXHANCNFSM4IJ3X62A .
About the Pin.types.PWROUT
, are these files just bit-rotted?
I am not sure what I am doing wrong.
My default tool is KICAD and my search paths are like so:
in the SKIDL search path the part definition is in a file called gamete_lib.py.
The error I get is:
The error looks like it is searching for a KICAD libary file. Do I have to change the default tool every time I search for a part that is in the other supported type? Skidl found previous Kicad parts that I instantiated.