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/15 14:30] – [OLed] tungntdevelopment:python:micropython [2024/08/15 14:47] (current) – [OLed] tungnt
Line 32: 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]]
-  * [[https://www.instructables.com/ESP32-Getting-Started-MicroPython-on-Board-Blink-L/|ESP32 – Getting Started MicroPython -- on Board Blink LED]]+
  
-<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 |}} 
- 
-====== OLed ====== 
- 
-  * [[https://randomnerdtutorials.com/micropython-oled-display-esp32-esp8266/|MicroPython: OLED Display with ESP32 and ESP8266]] 
-  * [[https://blog.martinfitzpatrick.com/displaying-images-oled-displays/|Displaying images on OLED screens]] 
-  * [[https://www.donskytech.com/micropython-interfacing-with-ssd1306-oled-display/|MicroPython: Interfacing with SSD1306 OLED display]] 
- 
-{{ :development:python:esp32_oled.webp |}} 
development/python/micropython.1723732256.txt.gz · Last modified: 2024/08/15 14:30 by tungnt

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki