Cov txheej txheem:
- Kauj ruam 1: Nruab OTG UI
- Kauj ruam 2: Rub tawm Main.zip
- Kauj ruam 3: Upload Main.py rau Koj MicroPython
- Kauj Ruam 4: Txuas Esp8266 rau Koj Lub Xov Tooj Hauv Los Ntawm OTG Adapter
- Kauj ruam 5: Tsim Koj Tus UI
- Kauj ruam 6: Sau npe tus as khauj
- Kauj Ruam 7: Tsim UI tshiab
- Kauj ruam 8: Kuaj UI
- Kauj ruam 9: Upload UI rau Koj Hauv
Video: UI rau MicroPython: 9 Kauj Ruam
2024 Tus sau: John Day | [email protected]. Kawg hloov kho: 2024-01-30 09:27
Tsis ntev los no, Kuv tau txais ib qho esp8266 board thiab teeb tsa MicroPython rau nws. Nws tuaj yeem tswj tau los ntawm kev hais kom ntaus lossis xa tus nab npawb nab npawb rau nws.
Txhawm rau txhim kho MicroPython ntawm esp8266, thov txheeb xyuas https://MicroPython.org/download/#esp8266 lossis
Nab hab sej code:
lub sij hawm ntshuam
los ntawm tshuab ntshuam Pin
coj = Pin (2, Pin. OUT) // Pin 2 yog nyob ntawm board LED.
coj.off ()
coj.on ()
Qhov sib txawv version MicroPython, cov cai tej zaum txawv.
Nws txias heev rau kev sau cov lus txib kom tswj hwm esp8266, tab sis nws tseem tsis tau siv tus phooj ywg. Raws li lub vev xaib programmer, Kuv nyiam tsim kev sib txuas nrog html thiab JavaScript.
Kuv pom Android App OGT UI. Nws yog qhov sib xyaw APP; koj tuaj yeem tsim cov duab nraaj nrog Html thiab JavaScript. Nws simulates lub davhlau ya nyob twg, tau txais tag nrho cov ntawv xov xwm los ntawm MicroPython thiab lim nws, tsuas yog xa cov ntaub ntawv muaj txiaj ntsig rov qab rau JavaScript. Nrog JavaScript, koj tuaj yeem ua tiav qhov txiaj ntsig tau yooj yim.
Lub OGT UI los nrog tus demo UI. Txhawm rau ntsuas nws, koj xav tau rub tus lej nab npawb nab npawb thiab muab tso rau MicroPython.
Kauj ruam 1: Nruab OTG UI
Mus rau google ua si thiab tshawb nrhiav "otg ui". Nruab nws. Nws yuav xav tau qee qhov kev tso cai.
Kauj ruam 2: Rub tawm Main.zip
Mus rau https://www.otgui.com/home?mc=download thiab rub tawm main.py.
Kauj ruam 3: Upload Main.py rau Koj MicroPython
Tshaj tawm main.py rau koj MicroPython los ntawm kev hais kom ua:
ampy --port com5 muab main.py
Koj tuaj yeem sim nws los ntawm putty thiab paub tseeb tias txoj cai ua haujlwm.
Kauj Ruam 4: Txuas Esp8266 rau Koj Lub Xov Tooj Hauv Los Ntawm OTG Adapter
Thawj thawj zaug, Nws yuav qhia qhov sib tham, khij lub npov thiab nyem OK khawm. Tom qab ntawd qhov demo UI yuav tshwm. Koj tuaj yeem nyem khawm hloov kom tswj coj On/Off.
Kauj ruam 5: Tsim Koj Tus UI
Txhawm rau tsim koj li UI, koj xav tau sau npe tus account thiab rub tawm cov cuab yeej ntsuas.
Kauj ruam 6: Sau npe tus as khauj
Mus rau www.otgui.com thiab nyem "Kuv UIs". nws yuav pom nplooj ntawv nkag mus, nyem "Sau npe". Sau tag nrho cov ntaub ntawv thiab nyem
nyem "Sau npe".
Tam sim no koj tuaj yeem nkag mus nrog koj tus lej nyiaj thiab tus lej zais tsis raug yog "123456", koj tuaj yeem hloov nws tom qab.
Kauj Ruam 7: Tsim UI tshiab
Tom qab nkag mus, nyem "Text UIs". nws yuav qhia tag nrho koj li UIs.
- Nyem Ntxiv khawm.
- Sau tag nrho cov ntaub ntawv.
- Nyem Txuag khawm
- Nws yuav tsim UI tshiab nrog qee qhov chaws hauv nws.
- Kho qhov chaws.
Kauj ruam 8: Kuaj UI
Nyem saib ua ntej kom pom qhov tshwm sim.
Kauj ruam 9: Upload UI rau Koj Hauv
Nrhiav App Code hauv koj nplooj ntawv qhia meej UI. Tom qab ntawd qhib qhov browser ntawm koj lub hauv xov tooj thiab ntaus "https:// localhost: 8889".
Nkag mus rau App Code thiab nyem tseg khawm. Rov pib dua OTG UI App.
Nws yuav rub tawm UI rau koj hauv.
Pom zoo:
Kawm Ib Qho Kev Ua Yeeb Yam Yooj Yim ntawm SOLIDWORKS: Ua Rau Rau Rau Ib Sab Ncig: 22 Kauj Ruam
Kawm Ib Qho Kev Ua Yeeb Yam Yooj Yim ntawm SOLIDWORKS: Ua Rau Rau Rau Rau Ib Sab: Cov Lus Qhia no yuav taug koj cov hauv kev uas yuav tsum tau ua kom ua qauv 3D ntawm rau rau sab ib sab. Cov duab 3D, thiab cov fab sab hauv thiab sab nrauv lossis cov qauv 3D.Thaum ua haujlwm
Txaus Siab Rau Koj Tus Kheej Tsuas Yog Siv 12V-rau-AC-kab Inverter rau LED Lub Teeb Hluav Taws Xob Tsis txhob Rov Ua Rau Lawv rau 12V.: 3 Cov Kauj Ruam
Txaus Siab Rau Koj Tus Kheej Tsuas Yog Siv 12V-rau-AC-kab Inverter rau LED Lub Teeb Hluav Taws Xob Tsis txhob Rewiring Lawv rau 12V: Kuv txoj kev npaj tau yooj yim. Kuv xav txiav cov phab ntsa uas siv hluav taws xob LED teeb ua ib daim ces rov txuas nws kom khiav tawm 12 volts. Lwm txoj hauv kev yog siv lub zog hloov pauv, tab sis peb txhua tus paub tias lawv tsis muaj txiaj ntsig zoo, puas yog? Txoj cai? Los yog lawv?
Kev Kho Yooj Yim rau Timbuktu Lub Hnab V.1, rau Kev caij tsheb kauj vab: 3 Kauj Ruam
Kev Kho Yooj Yim rau Timbuktu Lub Hnab V.1, rau Kev caij tsheb kauj vab: Raws li Timbuktu lub hnab kiv cua nyob rau hauv tus cwj pwm ntawm kev caij tsheb kauj vab nrog lub khoos phis tawj hauv kuv lub hnab xa xov, thaum lawv tawm nrog lub hnab nqa mus, kuv xav tias 'zoo meej' thiab xaj ib qho online. Kuv zoo li woo hoo qhov no yuav txias. Tab sis thaum kuv tau txais nws kuv xav tsis thoob thiab poob siab
Ntxiv Pc Sync Jack rau Nikon Sc-28 Ttl Cable (siv Auto Settings rau lub Koob Yees Duab Flash thiab Ua Rau Lub Koob Yees Duab Tawm !!): 4 Kauj Ruam
Ntxiv Pc Sync Jack rau Nikon Sc-28 Ttl Cable (siv Auto Settings rau ntawm Lub Koob Yees Duab Flash thiab Ua Rau Lub Koob Yees Duab Tawm Tsam !!): Hauv cov lus qhia no kuv yuav qhia koj yuav tshem tawm ib qho ntawm cov khoom ntiag tug 3pin TTL txuas txuas ntawm ib sab ntawm Nikon SC-28 tawm lub koob yees duab TTL cable thiab hloov nws nrog tus qauv PC txuas txuas. qhov no yuav tso cai rau koj siv lub siab nyem, s
12v rau USB Adapter 12v rau 5v Transformer (zoo rau Tsheb): 6 Cov Kauj Ruam
12v rau USB Adapter 12v rau 5v Transformer (zoo rau Tsheb): Qhov no yuav qhia koj yuav ua li cas thiaj ua tau 12v rau USB (5v) adapter. Qhov pom tseeb tshaj plaws ntawm qhov no yog rau 12v lub tsheb hloov pauv, tab sis txhua qhov chaw koj muaj 12v koj tuaj yeem siv nws! Yog tias koj xav tau 5v rau lwm yam uas tsis yog USB, tsuas yog hla cov kauj ruam hais txog kev ntxiv USB chaw nres nkoj