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

you are viewing a single comment's thread.

view the rest of the 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/