TungNT (Blue)

tungnt.blue@gmail.com

User Tools

Site Tools


development:python:micropython

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
development:python:micropython [2024/08/14 15:43] – [Led] tungntdevelopment:python:micropython [2024/08/15 14:47] (current) – [OLed] tungnt
Line 4: Line 4:
   * [[https://randomnerdtutorials.com/projects-esp32|250+ ESP32 Projects, Tutorials and Guides with Arduino IDE]]   * [[https://randomnerdtutorials.com/projects-esp32|250+ ESP32 Projects, Tutorials and Guides with Arduino IDE]]
   * [[https://docs.micropython.org/en/v1.9.3/pyboard/pyboard/tutorial/script.html|MicroPython tutorial for the pyboard]]   * [[https://docs.micropython.org/en/v1.9.3/pyboard/pyboard/tutorial/script.html|MicroPython tutorial for the pyboard]]
-  * https://github.com/1sitevn/esp32 +  * [[https://www.youtube.com/watch?v=4U6PQ5cEiws&list=PLDyGjFOgHSG2zQzzT_w5sA0I9Z9I0AMMO|Video ESP32 Tutorial]] 
-  * https://github.com/1sitevn/esp32-test+  * [[https://www.youtube.com/watch?v=TKh6MxfRWlw&list=PLQHFs2NHFnsCBQ1x9lxO0lwH8STETIloX|Video ESP32 Micropython Tutorial]]
   * https://github.com/1sitevn/esp32-micropython   * https://github.com/1sitevn/esp32-micropython
  
Line 16: Line 16:
  
 ===== Thony IDE ===== ===== Thony IDE =====
 +
 +  * [[https://randomnerdtutorials.com/getting-started-thonny-micropython-python-ide-esp32-esp8266/|Getting Started with Thonny MicroPython (Python) IDE for ESP32 and ESP8266]]
  
 <file python boot.py> <file python boot.py>
Line 30: Line 32:
 {{ :development:python:screenshot_2024-08-14_at_22.21.00.png |}} {{ :development:python:screenshot_2024-08-14_at_22.21.00.png |}}
  
-====== Led ======+====== Kết nối thiết bị ======
  
-  * [[https://esp32io.com/tutorials/esp32-led-blink|ESP32 - LED - Blink]] +  * [[development:python:micropython:led|Led]] 
-  * [[https://wokwi.com/projects/359801682833812481|Wokwi LED]]+  * [[development:python:micropython:oled|OLed]]
  
-<file python boot.py> 
-import gc 
-import esp 
-from machine import Pin 
- 
-esp.osdebug(None) 
-gc.collect() 
- 
-led5 = Pin(5, Pin.OUT) 
- 
-btn26 = Pin(26, Pin.IN, Pin.PULL_UP) 
- 
-def btn26_handler(p): 
-    if btn26.value() != 1:         
-        return 
-     
-    led5.value(not led5.value()) 
- 
-btn26.irq(trigger=Pin.IRQ_RISING | Pin.IRQ_FALLING, handler=btn26_handler)  
-</file> 
  
-{{ :development:python:screenshot_2024-08-14_at_22.30.53.png |}} 
development/python/micropython.1723650191.txt.gz · Last modified: 2024/08/14 15:43 by tungnt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki