MicroPython Cookbook
MicroPythonisanopensourceimplementationofPython3thatrunsinembeddedenvironments.WithMicroPython,youcanwritecleanandsimplePythoncodetocontrolhardwareinsteadofusingcomplexlow-levellanguageslikeCandC++.ThisbookguidesyouthroughallthemajorapplicationsoftheMicroPythonplatformtobuildandprogramprojectsthatusemicrocontrollers.TheMicroPythonbookcoversrecipesthat’llhelpyouexperimentwiththeprogrammingenvironmentandhardwareprogrammedinMicroPython.You’llfindtipsandtechniquesforbuildingavarietyofobjectsandprototypesthatcansenseandrespondtotouch,sound,position,heat,andlight.ThisbookwilltakeyouthroughtheusesofMicroPythonwithavarietyofpopularinputdevicesandsensors.You’lllearntechniquesforhandlingtimedelaysandsensorreadings,andapplyadvancedcodingtechniquestocreatecomplexprojects.Asyouadvance,you’llgettodealwithInternetofThings(IoT)devicesandintegrationwithotheronlinewebservices.Furthermore,you'llalsouseMicroPythontomakemusicwithbananasandcreateportablemultiplayervideogamesthatincorporatesoundandlightanimationsintothegameplay.Bytheendofthebook,you'llhavemasteredtipsandtrickstotroubleshootyourdevelopmentproblemsandpushyourMicroPythonprojecttothenextlevel!
·8.4萬字