Cov txheej txheem:

Flashing MicroPython ntawm Kano Pixel Kit: 4 Cov Kauj Ruam
Flashing MicroPython ntawm Kano Pixel Kit: 4 Cov Kauj Ruam

Video: Flashing MicroPython ntawm Kano Pixel Kit: 4 Cov Kauj Ruam

Video: Flashing MicroPython ntawm Kano Pixel Kit: 4 Cov Kauj Ruam
Video: Flashing Micropython on ESP32 with ESPTOOL 2024, Hlis ntuj nqeg
Anonim
Flashing MicroPython ntawm Kano Pixel Kit
Flashing MicroPython ntawm Kano Pixel Kit
Flashing MicroPython ntawm Kano Pixel Kit
Flashing MicroPython ntawm Kano Pixel Kit

Kano's Pixel Kit yog ib qho khoom siv zoo tshaj plaws! Nws nta 128 super ci ci RGB LEDs, tus joystick, 2 lub nyees khawm, hu xov tooj, roj teeb thiab microprocessor muaj zog raws li nws lub paj hlwb (ESP32).

Nws los ntawm lub Hoobkas nrog lub khoos phis tawj uas tham nrog Kano Code App, ib qho app uas koj muaj teeb meem kev teeb tsa, tuaj yeem tshawb pom kev tsim los ntawm zej zog, tshaj tawm cov kev tsim tsim ntawm lub block raws interface rau LEDs thiab txuag cov duab.

Nws yog txoj hauv kev zoo los muab thawj kauj ruam kawm paub yuav ua li cas lossis kom muaj kev lom zem ua yeeb yam hauv tsev. Tab sis yog tias koj xav qhib lub peev xwm tag nrho ntawm koj lub Pixel Cov Khoom muaj qhov yooj yim thiab muaj zog daws: Hloov lub Hoobkas tsim khoom nrog MicroPython!

Cov ntawv qhia no yuav qhia ntau txoj hauv kev uas koj tuaj yeem hloov kho lub Hoobkas firmware nrog MicroPython ntxiv rau rov kho qhov qub firmware.

Kauj Ruam 1: Ob Qhov Hloov Kho ntawm Pixel Khoom

Ob Qhov Hloov Kho ntawm Pixel Khoom
Ob Qhov Hloov Kho ntawm Pixel Khoom
Ob Qhov Hloov Kho ntawm Pixel Khoom
Ob Qhov Hloov Kho ntawm Pixel Khoom

Muaj 2 qhov hloov pauv ntawm Pixel Kit: Kickstarter version muaj Banana Pi lub hlwb thiab cov khw muag khoom muaj ESP32.

Yog tias koj Cov Khoom Siv Pixel muaj daim npav SD koj muaj Kickstarter Pixel Kit (KPK), txwv tsis pub koj muaj Khw Muag Khoom Pixel (RPK).

Cov ntawv qhia no tsuas yog rau Kev Muag Khoom Pixel Cov Khoom

Kauj Ruam 2: OSX High Sierra, Ubuntu 18.04 thiab Windows

Nov yog txoj hauv kev yooj yim tshaj plaws rau nyem koj lub Pixel Kit. Mus rau https://github.com/murilopolese/kano-pixel-kit-flash-tool/releases thiab rub tawm qhov tseeb version ntawm Pixel Kit Flash Tool.

Thaum rub tawm, xyuas kom tseeb tias koj lub Pixel Kit tau txuas thiab txuas nrog koj lub khoos phis tawj ntawm USB (nws los nrog ib txoj kab liab) thiab khiav daim ntawv thov.

Nyem rau ntawm "Xaiv cov chaw nres nkoj txuas …" kom xaiv koj lub Pixel Kit cov chaw nres nkoj txuas. Yog tias tsis muaj dab tsi tshwm sim ntawm no, xyuas kom tseeb tias koj cov khoom siv Pixel tau txuas thiab txuas nrog lub khoos phis tawj thiab nyem "Hloov chaw nres nkoj". Yog tias tsis ua haujlwm, sim hloov chaw nres nkoj USB ntawm koj lub computer.

Ntawm qee qhov OS (zoo li Windows 7) koj yuav xav tau tus tsav tsheb kom tuaj yeem ua rau koj lub khoos phis tawj tham nrog Pixel Kit. Txoj hauv kev yooj yim kom tau txais tus tsav tsheb yog los ntawm kev teeb tsa Kano Code App. Xwb koj tuaj yeem txhim kho tus tsav FTDI tus kheej ntawm no lossis ntawm no.

Thaum xaiv qhov chaw nres nkoj txuas, tsuas yog xaiv qhov koj xav nyem: Kano Code firmware yuav rov pib dua lub Hoobkas firmware thiab MicroPython firmware yuav teeb tsa MicroPython (Pixel32 kom muaj ntau yam tshwj xeeb).

Qhov no tuaj yeem siv ob peb feeb mus rau ib feeb kom tiav.

Kauj Ruam 3: Txhua OS Nrog Python 3

Yog tias koj muaj cov txheej txheem ua haujlwm nrog Python 3 thiab pip, koj tuaj yeem yooj yim khiav Pixel Kit Flash Tool los ntawm qhov yooj yim yooj yim.

Koj tuaj yeem tshawb xyuas yog tias koj muaj Python thiab pip tau teeb tsa los ntawm kev ntaus ntawv 'nab hab sej -V' thiab 'pip -V' ntawm koj lub davhlau ya nyob twg/kab hais kom ua. Yog tias koj tsis muaj Python lossis pip, rub tawm thiab nruab nws los ntawm

Tom qab ntawd ua raws cov theem:

  1. Rub tawm qhov tseeb qhov chaws ntawm nplooj ntawv github lossis siv qhov txuas no.
  2. Unzip qhov chaws thiab mus rau nws siv koj lub davhlau ya nyob twg
  3. Khiav "pip install -r --user requirements.txt"
  4. Khiav "python run.py"

Tom qab ntawd koj yuav tsum pom lub Pixel Kit Flash Tool window.

  1. Xyuas kom tseeb tias koj cov khoom siv Pixel tau txuas thiab txuas nrog koj lub khoos phis tawj ntawm USB.
  2. Nyem rau ntawm "Xaiv cov chaw nres nkoj txuas …" kom xaiv koj lub Pixel Kit cov chaw nres nkoj txuas.
  3. Yog tias tsis muaj dab tsi tshwm sim ntawm no, xyuas kom tseeb tias koj cov khoom siv Pixel tau txuas thiab txuas nrog lub khoos phis tawj thiab nyem "Hloov chaw nres nkoj".

Thaum xaiv qhov chaw nres nkoj txuas, tsuas yog xaiv qhov koj xav nyem: Kano Code firmware yuav rov pib dua lub Hoobkas firmware thiab MicroPython firmware yuav teeb tsa MicroPython (Pixel32 kom muaj ntau yam tshwj xeeb).

Qhov no tuaj yeem siv ob peb feeb mus rau ib feeb kom tiav.

Kauj Ruam 4: Siv MicroPython

Koj tuaj yeem pom txhua cov ntaub ntawv hais txog yam koj tuaj yeem ua nrog MicroPython firmware (Pixel32) koj nyuam qhuav teeb tsa ntawm koj li Pixel Kit ntawm no:

Kuv tau ua lwm Cov Lus Qhia rau thawj qib nrog Pixel32:

www.instructables.com/id/Pixel-Kit-Running…

Koj kuj tseem yuav pom ntau lwm yam MicroPython thiab CircuitPython qhia hauv online thiab lawv feem ntau yuav ua tau zoo dua nrog Cov Khoom Siv Pixel! Qhia rau kuv paub yog tias koj pom teeb meem lossis yog tias koj muaj kev daws teeb meem zoo dua!

Pom zoo: