Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revision | |
en:iot-open:scriptingprogramming:pythonfundamentals [2023/11/22 10:19] – [IDEs for Python] pczekalski | en:iot-open:scriptingprogramming:pythonfundamentals [2023/11/23 10:25] (current) – pczekalski |
---|
====== Python Fundamentals for IoT ====== | ====== Python Fundamentals for IoT ====== |
| {{:en:iot-open:czapka_b.png?50| General audience classification icon }}{{:en:iot-open:czapka_e.png?50| General audience classification icon }}\\ |
A program in Python is stored in text files on the device's file system, as Python's source code is interpreted, not compiled, opposite to C++. A typical file extension for programs in Python is ''.py''. | A program in Python is stored in text files on the device's file system, as Python's source code is interpreted, not compiled, opposite to C++. A typical file extension for programs in Python is ''.py''. |
In the context of IoT programming, both Python and Micropython share the same syntax and mostly the same libraries, so source code, in many cases, is portable. General hardware-related libraries like GPIO handling or timers are shared between those two Python worlds, and hardware-specific differences are minor compared to the Arduino framework.\\ | In the context of IoT programming, both Python and Micropython share the same syntax and mostly the same libraries, so source code, in many cases, is portable. General hardware-related libraries like GPIO handling or timers are shared between those two Python worlds, and hardware-specific differences are minor compared to the Arduino framework.\\ |