NXP社㮠PCA9622DRãæè¼ãããI2C æ¥ç¶ã®16ch LEDãã©ã¤ãåºæ¿ã§ããPWMå¶å¾¡ã«ããLEDã®ææã表ç¾ã§ãã¾ãã åºæ¿ã«ã¯LEDãæè¼ãã¦ããã®ã§ãI2Cãã¹ã«ç¹ãã§ã³ãã³ããçºè¡ããã ãã§ã16åã®LEDãæ»ããã«å ãã¾ãããã®LEDã¯ãçééã«4x4ã®ãã¹ç®ç¶ã«é ç½®ããã¦ãã¾ãã 詳ããå¶å¾¡ã®æ¹æ³ã¯ãã¡ã¼ã«ãµã¤ãããã³PCA9622DRã®ãã¼ã¿ã·ã¼ããåç §ãã¦ãã ããã 製åä»æ§ï¼IC ã®ä¸»ãªæ©è½ï¼ åä½é»å§ 2.3Vï½5.5V 16chã®ç¬ç«ããLEDãã¼ã LEDãã¼ãã®ã¢ã¦ããããã¤ãã¼ãã«æ©è½ãæè¼ åãã¼ãã¯on/offããã³256段éï¼8bitï¼ã®PWMé調å¶å¾¡ãå¯è½ åãã¼ãã®ç¬ç«å¶å¾¡ï¼ã°ã«ã¼ãå¶å¾¡ãå¯è½ åºæ¿ä¸ã«ã16åã®èµ¤è²LEDãæè¼ LED ãã¼ãã¯100mAã®å¸ãè¾¼ã¿è½å åºæ¿ã«ã¯ãå¤é¨ãã©ã¤ãç¨ä¿¡å·ãã³ãæè¼ ã¤ã³ã¿ã¼ãã§ã¼ã¹ã¯I2C I
PyConã§è¡ãããéçºã¹ããªã³ãã§MicroPythonã触ã£ãã®ã§å¿ããªãããã«å°å ¥ã®ä»æ¹ãã¡ã¢ãã¦ããã¾ãã ç°å¢ã¯Ubuntuã使ã£ã¦èª¬æãããã¨æãã¾ãã ä»å使ã£ãã®ã¯STM32F4Discoveryã¨ãããã¼ãã§ãã STï¼ï¼ï¼ï¼¦ï¼ï¼¤ï¼©ï¼³ï¼£ï¼¯ï¼¶ï¼¥ï¼²ï¼¹: ãã¤ã³ã³é¢é£ ç§æé»åéå é»åé¨å ãããé販 é»æºã¨ãã½ã³ã³ã¨ã®éä¿¡ç¨ã§MicroUSBã±ã¼ãã«ã¨MiniUSBã±ã¼ãã«ãå¿ è¦ã§ãã ã¾ããSTM32F4Discoveryã®ãã¡ã¼ã ã¦ã§ã¢ãæ¸ãæããã®ã§ãgccã®ã¯ãã¹ã³ã³ãã¤ã©ãå ¥ãã¾ãã GNU ARM Embedded Toolchain : Terry Guo $ sudo add-apt-repository ppa:terry.guo/gcc-arm-embedded $ sudo apt-get update $ sudo apt-get install g
æ¢åã®çµã¿è¾¼ã¿ Python ã¨éãããã¤ã³ã³ä¸ã§ã¹ã¯ãªããã®ã³ã³ãã¤ã«ã¾ã§ãã£ã¦ãã¾ããããã¹ã°ã¬ã¢ãã æ¨ä»è©±é¡ http://www.slideshare.net/hktechno/micro-python-python ã¡ã¤ã³ãµã¤ãã¯ãã http://micropython.org/ ã½ã¼ã¹ãã®ã»ãã¯ãã https://github.com/micropython å®ä¾¡ãª Cortex-M4 è©ä¾¡åºæ¿(STM32F4 Discovery)ã§åä½ããâ https://github.com/micropython/micropython/wiki/Board-STM32F407-Discovery å¿ è¦ãªç°å¢ï¼@Windows) MinGW,msys ãã¤ã³ã¹ãã¼ã« (Unix å¼ make ã®ãããCygwin ãä»ã®äºæ make ã§ãããã¨æãããï¼ CPython ãã¤ã³
ç§æé»åã§STM32F4DISCOVERYãè²·ã£ãã®ã§ãMac OS X(Maverics)ä¸ã«éçºç°å¢ãæ§ç¯ãã¦ã¿ãã STM32F4DISCOVERYã¯CPUã¨ãã¦ARM Cortex-M4ãã³ã¢ã«æã£ãSTM42F407VGT6ããã£ãã¯ã³ãã¼ããã¤ã³ã³ã§ããã1MB Flash ROMã¨192KBã®RAMãç©ãã§\1,650ã¨ããã®ã¯å®ãè²·ãç©ã§ããã éçºç°å¢æ§ç¯ã®æµãã¯ãMacã§STM32F4-Discoveryã®éçºç°å¢ãæ§ç¯ãã¦ChibiOS/RTãåããã®ãµã¤ããåèã«ããããã®ãµã¤ãã«å¾ã£ã¦ãarm-none-eabi-gcc, arm-none-eabi-gdb, openocdãé ã«ã¤ã³ã¹ãã¼ã«ãã¦ããã arm-none-eabi-gcc GNU Tools for ARM Embedded ProcessorsãããARMã³ã³ãã¤ã©ã¨ãã¦arm-none-eab
Micro Pythonã¯ããã¤ã³ã³ã«æé©åãããPython3å®è£ ã§ããã¡ãªã¿ã«Pythonã§ãã使ãããæ¨æºã®å®è£ ã¯CPythonã§ãä»ã«Javaã§è¨è¿°ãããJythonã.NETä¸ã®å®è£ ã®IronPythonãããã¾ããããã®ä¸ç¨®ã§ãã ãã¤ã³ã³ã§åãããã°ã©ã ãæ¸ãå ´åã¯C/C++ãä¸è¬çã«ç¨ãããã¾ãããã¤ã³ã¿ããªã¿è¨èªããã¤ã³ã³ã§åããããã¸ã§ã¯ããããã¤ãããã¾ãããã¤ã³ã³ã¯ãã½ã³ã³ä¸ã§åããå ´åã¨ç°ãªã使ç¨ã§ããã¡ã¢ãªãµã¤ãºãå³ããã®ã§çã¡ã¢ãªã§åãããã«å®è£ ãããã®ããã使ãããMicroPythonã®ä»ã«Rubyã®å®è£ ã§ããmrubyãæåã§ãã ä»åãMicro Pythonãåããã¤ã³ã³ãã¼ããæã«å ¥ããå®éã«åããã¦ã¿ãã®ã§ã¬ãã¼ããã¦ããã¾ãã ãã¼ãã¦ã§ã¢ MicroPythonãæ³å®ãã¦ãããã¤ã³ã³ãã¼ãä¸è¦§ãè¦ãã¨ãæããARM Cortex M4ã®ãã¤ã³
é害
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}