raspberry-gpio-emulator icon indicating copy to clipboard operation
raspberry-gpio-emulator copied to clipboard

Collab request

Open ThomasVuNguyen opened this issue 1 year ago • 4 comments

Hi Nosix! I'm Thomas and I'm building a Raspberry Pi startup company involving an emulator.

I would love a chat about a potential collab. Would you be free for that?

Thanks, great stuff you built here!

ThomasVuNguyen avatar Aug 18 '24 03:08 ThomasVuNguyen

Hi Thomas.

Although I cannot lend you my time, please feel free to use the source code for both commercial and non-commercial purposes. Feel free to make changes. I can also answer any questions that do not require investigation.

(Translated using Google Translate.)

nosix avatar Aug 18 '24 03:08 nosix

Hi @nosix , thanks for responding! You have built an amazing library & I will use it well!

ThomasVuNguyen avatar Aug 21 '24 12:08 ThomasVuNguyen

Hi @nosix , I have a question. I am hoping to use this library to use on a Flask app instead of Desktop.

Where do you recommend me start to re-purpose the library?

I am reading into yr code and I believe ui_server.py and launcher.py

Am I correct?

ThomasVuNguyen avatar Aug 25 '24 01:08 ThomasVuNguyen

Hi Thomas.

I haven't maintained this project for a long time, so my memory is a bit unclear, but it should probably work as described below.

As stated in the README, when you execute the following, launcher.py is imported, and within the process of launcher.py, a child process is forked.

import RPi.GPIO as GPIO

In the parent process, the UI class from ui_client.py is used, while in the child process, the UI class from ui_server.py is used. When a method of the UI class in ui_client.py is called, it writes data to a Pipe, and the __update method of the UI class in ui_server.py reads the data from the Pipe.

I'm sorry if my answer does not match the intent of your question.

nosix avatar Aug 25 '24 02:08 nosix