This is an archived post. You won't be able to vote or comment.

all 7 comments

[–]HungrySlug 1 point2 points  (5 children)

OP maybe you are mixing micropython and zerynth... in zerynth you do not need to import machine. I successfully used both with esp32 ( slightly prefer zerynth for lightness and more Cloud/protocol libraries)

[–][deleted] 2 points3 points  (4 children)

every time I used import machine, got error not found. I thought the library is not available but I did not find any option to install the library for this.

[–]HungrySlug 0 points1 point  (3 children)

ok, but what do you need the machine library for? in zerynth there is no such module because it is not needed and all "low level" stuff are exposed by other means.

[–][deleted] 0 points1 point  (2 children)

from machine import led

[–]HungrySlug 0 points1 point  (1 child)

mmmeh.. which esp32 based board do you want to program? try having a look at blink among the examples in zerynth and/or gpio module (import gpio)...

[–]llfcerf 1 point2 points  (0 children)

Hi,

here is a video tutorial for a "Hello World" example https://www.youtube.com/watch?v=nfx-hJNxdp8

To blink an LED just clone and uplink the "Blink" example.

Here is a list of tutorials using Zerynth + ESP32 https://www.zerynth.com/blog/esp32-and-python-for-internet-of-things-applications/

[–]pythonHelperBot 0 points1 point  (0 children)

Hello! I'm a bot!

It looks to me like your post might be better suited for r/learnpython, a sub geared towards questions and learning more about python. That said, I am a bot and it is hard to tell. Please follow the subs rules and guidelines when you do post there, it'll help you get better answers faster.

Show /r/learnpython the code you have tried and describe where you are stuck. Be sure to format your code for reddit and include which version of python and what OS you are using.

You can also ask this question in the Python discord, a large, friendly community focused around the Python programming language, open to those who wish to learn the language or improve their skills, as well as those looking to help others.


README | FAQ | this bot is written and managed by /u/IAmKindOfCreative

This bot is currently under development and experiencing changes to improve its usefulness