coding? Module? Tutorials? (Newbie)
-
-I haven't recieved my Lopy yet but I want try the codes on the doc section.
Is that possible?
-I tried to import the network module but can't access it online. where can I get that? (Even to simply read and not make it work)
-Are there any tutorials you'd recommend to help getting started with pycom
-
@seb https://docs.pycom.io/tutorials/introduction should be the link (without final / ) causing Newbie panic :)
-
Hi,
You can find a series of code tutorials for pycom modules on our documentation website (https://docs.pycom.io/chapter/tutorials), we also provide code examples on our github (https://github.com/pycom/pycom-libraries). While micropython is very similar to regular python, there are libraries that are specific to our devices. I have noticed you have asked in several place on the forum where the "network" module comes from. This is not a regular python module that you can install on your desktop, but rather a module implemented in c by our firmware (https://github.com/pycom/pycom-micropython-sigfox/blob/master/esp32/mods/modnetwork.c). Due to the fact that some modules are only present on our firmware, there will be a lot of examples you cannot run on your desktop. On the other hand, most python you write on your desktop will run on pycom modules, micropython only has a few limitations compared to full python (https://github.com/micropython/micropython/wiki/Differences).
-
@hajermet said in coding? Module? Tutorials? (Newbie):
@livius
Thanks for your reply but then I only did python before (so this may seem dumb) but can't I like download a .py file to read? (I want to understand what it basically is)I don't think that reading examples will help for the basic understanding.
You will find the examples on gitubThe *Pys are basicly ESP32 microcontrolers which have WiFi and Bluetooth on board. Depending on the * they have additional radio systems. They run a port of micropython. The additional radio systems are the trick of the *Py. With them you can communicate with sensors and actors outside of your WiFi range. The * radio system will transport only small messages but with a much larger range than unpimped WiFi. Some of them use gateways to the internet too increase the range.
It seems that pycom builds an ecosytem on top of these basic functionality, so you can buy expansion boards and sensors from them, which have easy to use libraries for micropython.
-
but can't I like download a .py file to read?
What you tried download but you cannot? Please describe this more clearly.
-
@livius
Thanks for your reply but then I only did python before (so this may seem dumb) but can't I like download a .py file to read? (I want to understand what it basically is)
-
I tried to import the network module but can't access it online
import where if you have not module yet?
but examples you can find in official docs
https://docs.pycom.io/chapter/firmwareapi/pycom/network/or
https://github.com/pycom/pycom-libraries/tree/master/examplesand some with modification should work from normal python but some not.
This ismicropython
not fullpython
.and you have many examples of user code on the forum.