You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I like to develop stuff ( when I can ) on my own Linux box. Developing stuff ON the Pi can slow things down. It would be nice if I could do a git clone https://github.com/ykaw/PiCW.git
on my main linux box and run it from there instead of having to run on my PI. Some stuff could be worked on / coded that doesn't have to have the GPIO suppport if it ran on a non-Pi box.
I've started working on a InputOutputPort_dummy.py file that lets me start PiCW on my main linux box, but I don't really know Python ( I've done PHP for 20+ years ) and it's slow going.
Just a thought... wish....
The text was updated successfully, but these errors were encountered:
This was the first time I wrote a complete piece of software in Python, and I haven't coded in Python since.
Therefore, it takes courage for me to immediately start improving the program (lol).
Now, I thought about how I could run PiCW standalone for development purposes on my computer.
In InputOutputPort_*.py, make the function that operates GPIO a dummy, and modify the beep_* function so that the function that generates sidetone outputs audio from the PC instead of outputting PWM. It seems good.
It seems that a library called pyaudio can be used in Python for such purposes.
Do you have a favorite coding language. I am an old php programmer myself... been doing php for 20+ years. Just can't get into python. As a first pass... I just took one of the InputOutputPort files, copied all of the def calls and made them return dummy data... that mostly worked... had to tweak that a bit. I can get PiCW to run in my main, desktop linux ( amd processor ) box.... just wanted to see if you had thought about doing something like that and might already had... or if you lived and breathed python and could whip out a dummy file in seconds.
I like to develop stuff ( when I can ) on my own Linux box. Developing stuff ON the Pi can slow things down. It would be nice if I could do a
git clone https://github.com/ykaw/PiCW.git
on my main linux box and run it from there instead of having to run on my PI. Some stuff could be worked on / coded that doesn't have to have the GPIO suppport if it ran on a non-Pi box.
I've started working on a InputOutputPort_dummy.py file that lets me start PiCW on my main linux box, but I don't really know Python ( I've done PHP for 20+ years ) and it's slow going.
Just a thought... wish....
The text was updated successfully, but these errors were encountered: