# Python subsystem on Argon

**URL:** <https://community.particle.io/t/python-subsystem-on-argon/57339>\
**Category:** Developer Tools\
**Created:** [August 10, 2020, 1:04am UTC](https://community.particle.io/t/python-subsystem-on-argon/57339 "2020-08-10T01:04:49Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![cmatkin](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@cmatkin](https://community.particle.io/u/cmatkin)\
**Post date:** [August 10, 2020, 1:04am UTC](https://community.particle.io/t/python-subsystem-on-argon/57339/1 "2020-08-10T01:04:50Z")

</div>

Hi All,  
We have a project that are currently designing/programming.  
We would like to give our customers a facility to program some simple functions to co-inside with our code, however we do not want to reveal or hand out our code.

What i would really like is to embed MicroPython and allow our customers upload python code which interacts with our code.

Perhaps there is an alternative way, which we are happy to explore.

Anyone have any suggestions?

---

<div class="post-metadata">

**Author:** ![no1089](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/no1089/32/24051_2.png) [@no1089](https://community.particle.io/u/no1089)\
**Post date:** [August 11, 2020, 12:52pm UTC](https://community.particle.io/t/python-subsystem-on-argon/57339/2 "2020-08-11T12:52:39Z")

</div>

Micropython has been ported to the Xenon, and should function on the Argon, but I don’t believe WiFi is working. You won’t be able to access the Particle cloud with Micropython though. DeviceOS and Micropython cannot run simultaneously.

You could consider a config “file” that the users can edit, which your device then pulls from the cloud.

---

<div class="post-metadata">

**Author:** ![friedl\_1977](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/friedl_1977/32/22930_2.png) [@friedl\_1977](https://community.particle.io/u/friedl_1977)\
**Post date:** [August 11, 2020, 4:11pm UTC](https://community.particle.io/t/python-subsystem-on-argon/57339/3 "2020-08-11T16:11:26Z")

</div>

@cmatkin -

Welcome to Particle Forums!! 🥳

Just a thought, **IF** you are happy to connect via USB and **IF** you can still get hold of them, Xenons might not be a bad way to go as they are quite a bit cheaper than Argon. If you are going lose WiFi on Argons anyway as @no1089 mentioned , I do not see much need for spending the extra cash 🙂

well… my 2 cents worth anyway 🙂

Regards, Friedl!

---

<div class="post-metadata">

**Author:** ![bko](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/bko/32/20704_2.png) [@bko](https://community.particle.io/u/bko)\
**Post date:** [August 11, 2020, 10:05pm UTC](https://community.particle.io/t/python-subsystem-on-argon/57339/4 "2020-08-11T22:05:21Z")

</div>

Hi @cmatkin

The Adafruit CircuitPython flavor of MicroPython is available for Xenon **and** Argon–I have used both. The WiFi works.

Note that this path takes you away from the Particle ecosystem and cloud, so you would be giving up some things like the Particle cloud.

The Argon port works great but you do have to reprogram not just the nRF chip but also the ESP32 as well using a special boot loader, but it is pretty easy. CircuitPython is moving away from combo nRF+ESP32 where the ESP connection is over serial (as it is on Argon) since the new Adafruit boards use SPI instead.

---

<div class="post-metadata">

**Author:** ![cmatkin](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@cmatkin](https://community.particle.io/u/cmatkin)\
**Post date:** [August 12, 2020, 5:05am UTC](https://community.particle.io/t/python-subsystem-on-argon/57339/5 "2020-08-12T05:05:41Z")

</div>

Hi Guys,  
Thanks for the information.  
Whilst I could change the core firmware away from Particle and to Python, I’m wanting to keep the Particle core code and are wanting a facility to only give the end users ability to write custom program on top of our code.  
Cheers

---

<div class="post-metadata">

**Author:** ![no1089](https://sea2.discourse-cdn.com/flex026/user_avatar/community.particle.io/no1089/32/24051_2.png) [@no1089](https://community.particle.io/u/no1089)\
**Post date:** [August 12, 2020, 4:19pm UTC](https://community.particle.io/t/python-subsystem-on-argon/57339/6 "2020-08-12T16:19:39Z")

</div>

The only option then would be a config file of some sorts - I’m guessing it’s for changing timing/settings etc.

---

<div class="post-metadata">

**Author:** ![cmatkin](https://avatars.discourse-cdn.com/v4/letter/c/b5ac83/32.png) [@cmatkin](https://community.particle.io/u/cmatkin)\
**Post date:** [August 12, 2020, 9:25pm UTC](https://community.particle.io/t/python-subsystem-on-argon/57339/7 "2020-08-12T21:25:52Z")

</div>

Thanks,  
Yep. My device has approx 24 inputs/outputs of various types and I was want the ability for the customer to easily add in IF, IF NOT, AND, OR type scenarios.  
I came across this  
[embedding-python-program-in-a-c-cplusplus-code](https://www.codeproject.com/articles/820116/embedding-python-program-in-a-c-cplusplus-code)  
which may come in use.  
Otherwise I’ll have to code it into the app,  
Kind regards

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex026/uploads/particle/original/3X/3/2/3291e3c9351789fe8620ae5bcec8d3fec67ff221.png) [@system](https://community.particle.io/u/system)\
**Post date:** [February 11, 2021, 9:26am UTC](https://community.particle.io/t/python-subsystem-on-argon/57339/8 "2021-02-11T09:26:09Z")

</div>

Closed on February 11, 2021, 9:26am UTC

This topic was automatically closed 182 days after the last reply. New replies are no longer allowed.
