ãããã£ãŠããã®ãããžã§ã¯ãã®æšé²ãæ¯æŽããããšæããŸã-ããã°ã©ããŒãããã¯ããªãã«ãšã£ãŠçŽ æŽããããšã³ã¿ãŒãã€ã¡ã³ãã§ãïŒ
ç§ã®æ¬¡ã®ã¢ãã€ã«ãããžã§ã¯ãã®ã¢ãŒã¿ãŒã¯ããã·ã¢ãã¹ãã®3ã€ã®æéã®è ¹è¶³é¡ã®éŠ¬ãå©çšããã¯ãŽã³ã§èµ°è¡ããŠããéã«ããArduino LCD InformerããšåŒã°ããå¥ã®ïŒãŠã©ãŒã ã¢ããïŒãããžã§ã¯ããå®æœããŸããã ãã®ãããžã§ã¯ãã®æ¬è³ªã¯ãArduinoãã³ã³ãã¥ãŒã¿ãŒããåä¿¡ããLCDããŒã¿ã衚瀺ããããšã§ãã ã³ã³ãã¥ãŒã¿ãŒã§ã¯ããããã¯å¥ã®ããã°ã©ã ã«ãã£ãŠåéãããŠéä¿¡ãããŸãã
æå
ãããžã§ã¯ãã«ã¯æ¬¡ã®ãã®ãå¿ èŠã§ãã
Arduino
ãã®ã¹ããŒãã§åšçšãªèµ€ã¡ããã¯ãè³ïŒATmega328ïŒã ãã§ãªããæèŠåšå®ãšãããã¥ã¬ãŒã¿ãŒãåããŠããŸã-å ¥åãšåºåã«ãããããŸããŸãªã»ã³ãµãŒããæ å ±ãåä¿¡ããã¢ãŒã¿ãŒãLEDããããŠãã¡ãã液æ¶ãå«ãããŸããŸãªããã€ã¹ã«ã³ãã³ããéä¿¡ã§ããŸãã¹ã¯ãªãŒã³ã ããã«ãã³ã³ãã¥ãŒã¿ãŒãšã®USBæ¥ç¶ã¯ãæ¢è£œã®ããã°ã©ã ãã¢ããããŒãããããã ãã§ãªããã³ã³ãã¥ãŒã¿ãŒã§å®è¡ãããŠããããã°ã©ã ãšã®åæ¹åéä¿¡ã«ã䜿çšãããŸãã
LCDããã¹ãç»é¢
æãäžè¬çãªã¢ãã«ãMT â 20S4AïŒMELTïŒãHD44780ïŒHitachiïŒãKS0066ïŒSamsungïŒãŸãã¯ãããã®ã¢ããã°ãå¿ èŠã§ãã
MELTããå§ãããŸã-æã£ãŠããŸãã èªãã«æãç¢æãå¿ãæž©ããŸã-ãMELTã ãã·ã¢è£œãã åœå ã¡ãŒã«ãŒããµããŒãããŸãïŒ ããã«ãç»é¢ã¯ãã¡ããšæŽé ãããŠããã ãã§ãªããããªã«æåã¢ã«ãã¡ãããã®ãµããŒããåããŠããŸãã
ãã³ãåãããã®ããŒã
ç§ãã¡ã®æµ·å€ã®æµããããåœåãããã¬ããããŒãããããŠç§ãã¡ã®æèŠã§ã¯-ãããã¿ã€ãã³ã°ããŒãã ãã®æ¬è³ªãç°¡åã«èª¬æããŸãã ããŒãã«æ²¿ã£ãŠãå°é»æ§ææã®å¹³è¡ç·ããããŸãã ã¯ã€ã€ãŒãç©Žã«å·®ã蟌ããšããã®äžäžã®ãã¹ãŠã®ç©ŽïŒåçã®ããã«äžå€®ã®ã¹ããªãããå³ããå·Šã«ãªãããã«ããŒããé 眮ããå ŽåïŒãæ¥ç¶ãããŸãã ããæ£ç¢ºã«ã¯ããã¹ãŠãäžå€®ã¹ããªãããŸã§ã§ã-ãã®äž¡åŽã«ã¯ãããŒãã®æ¥ç¶ãããŠããªã2ã€ã®éšåããããŸãã
ãããã£ãŠãã¯ãã ä»ãããã«ããããããã€ãºãã»ãããªãã§ãé ç·ãç°¡åã«çªãããšãã§ããããã€ã¹ã®åäœã¹ããŒã ãèšç»ããããã«ç¢ºèªã§ããŸãã ããŒã«ãžã®1ã€ã®æçš¿ã次ãžã®2çªç®ã®æçš¿ãããã³é£çµ¡å ã®æºåãã§ããŸããã
äžèŠæš¡ããã³å€§èŠæš¡ã®ããŒãã§ã¯ããããã®2ã€ã®æ¥ç¹ãæãé »ç¹ã«å¿ èŠãšãããããã2ã€ã®ã¹ããªããã®å°äœã端ã«æäŸãããŸãã
ã¯ã€ã€ãŒããŒãã«
å¿«é©ãªé»æµãæµããããã«èšèšãããŠããŸãã éåžžãäžæ¹ã®ç«¯ã¯Arduinaã®å ¥åºåã«åºå®ãããããäžæ¹ã®ç«¯ã¯ããŒããŸãã¯ã»ã³ãµãŒã«åºå®ãããŸãã ãŸããçããžã£ã³ããŒé ç·ã䜿çšãããšäŸ¿å©ã§ãã
ã©ãºããªãŒãžã£ã å ¥ãããŒãºã±ãŒã
ç©ºè ¹ã§ã®äœæ¥ã¯æ害ã§ããã ãã§ãªãã圹ã«ç«ããªãããšããããŸãã ãããŠãä»äºã®éçšã§ãèªåèªèº«ã«ã·ã«ããŒãã®ãã®ä»ã®å ±é ¬ãäžããã®ã¯æ¥œããããšã§ãã ã«ãããŒãžããŒãºã®ãã³ã±ãŒãã«ã¯ãã«ãããŒãžããŒãºïŒå圢ã§ã¯ãªããéåžžã®ç²åºŠïŒãå¿ èŠã§ã-400ã°ã©ã ã®ã«ãããŒãžããŒãºãåµ2åãç ç³50 gãïŒãã£ãŒïŒãœãŒã1æ¯ãå¡©å°ã ã ããæ··ãããããŠããæ··ããªãããå°éºŠç²ãåŸã ã«å ããŸãããããçŽ200ã°ã©ã ã§ãã ãã®åŸãçå°ãèŠã£ãŠ2æéæŸçœ®ããå°éã®æ²¹ã§ãã©ã€ãã³ãç±ããã³ãããã¯ã転ãããå¹³ãã«ããŠããçããã
ããŠããããã«å³ãå ãã-誰ã«ã©ãºããªãŒãžã£ã ã誰ã«ã³ã³ãã³ã¹ãã«ã¯ã誰ã«...
æç
çµç«
LCDãæããããæãããã»ãšãã©ã©ã³ãã®ãªã¬ã³ãžè²ã®å ã§èŠªåã«ç§ãã¡ãç §ããã«ã¯ãããã«é»åïŒããã³æ¥å°ïŒãæäŸããæ å ±ãåºåãããããArduinoåºåã«æ¥ç¶ããå¿ èŠããããŸãã
ããŒãã«åå°ãšé£ã¹ç©çšã®ã¹ããªãããããå Žåã¯ãArduinoããããããããã«æ£ç¢ºã«æåã§ããŸãã ãããã絶æããªãã§ãã ãã-圌ããããã«ããªããã°ãç§ãã¡ã¯ç®¡çããŸãã
åçãåç §-ãã³1ã3ãããã³5ã¯ã°ã©ã³ããžã®æ¥ç¶ãå¿ èŠã§ãã GNDïŒéïŒãšããŒã¯ãããArduinoã®æ¥ç¹ãããæåã®ãã³ã«å¯Ÿå¿ããããŒãäžã®ç©Žã®åãšããžã£ã³ããŒã®æåã®è¡ããåŒãåºããã3çªç®ãš5çªç®ã®è¡ïŒ3çªç®ãš5çªç®ã®æ¥ç¹ã«è¡ãïŒãŸã§ã¯ã€ã€ãŒãåŒã䌞ã°ããŸãïŒèµ€ãšé»è²ïŒã
泚æïŒ
1ïŒé»æºãArduinoããåæããããšãã«ãUSBãšé»æºã³ãã¯ã¿ã®äž¡æ¹ã§ãã¯ã€ã€ãå·®ã蟌ããã¹ãŠã®äœæ¥ãå®è¡ããŸãïŒ
ãããã£ãŠããšããã§ãArduinoã2æ¬ã®ã±ãŒãã«ïŒ1æ¬ã¯éåžžã®USBããã1æ¬ã¯å»¶é·ã³ãŒãïŒãä»ããŠUSBã«æ¥ç¶ããããšããå§ãããŸãã ãããã£ãŠãã³ã³ãã¥ãŒã¿ãŒãŸãã¯Arduinoã®USBããŒãã®ãããã¯ã解é€ãã代ããã«ã延é·ã³ãŒããšã±ãŒãã«ã®éã®æ¥ç¶ãã€ã³ããåé¢ããã ãã§æžã¿ãŸãã
2ïŒLCDã®é£çµ¡å çªå·ã¯ç°ãªãå ŽåããããŸãã ç»é¢ã®æ瀺ãèªãã§ãã ããã ããã«ãé£çµ¡å ã®çªå·ã¯å·Šããå³ã«ç§»åã§ããŸã-1ã2ã3ã..ã16-ãããŠãäŸãã°ã14ã13ã12ã..ã2ã1ã15ã16ãã¹ã¯ãªãŒã³ã
ããªããåå¿è ã®å°é家ã§ãããã¯ãã ä»ãã®æ¹æ³ãããããªãå Žåã¯ããã§ã«ã¯ãã ä»ããããèéšæ¥ç¹ãåããã¹ã¯ãªãŒã³ã泚æããŠãã ããã ãã¹ãŠã®é£çµ¡å ã«ã¯æšæºã®ã¹ããããããããã16ãã£ãŒãã®ã¹ã¯ãªãŒã³ãããŒãã«ç°¡åã«ãã£ã€ããŸãã èã«è²Œãä»ããŸã-äžå€®ã®ã¹ããªããã«å¹³è¡ã§ãããã«è¿ãèã®åã§ãã¹ããªããã®ãã¡ãåŽã®ããŒãã®æ®ãã®éšåã¯ãã¯ã€ã€ã貌ãä»ããããã«ã¢ã¯ã»ã¹å¯èœãªãŸãŸã§ãã
ãããã£ãŠã5VãšããŒã¯ãããArduinoãã³ããããŒãã«ã¯ã€ã€ãåŒã䌞ã°ãã2çªç®ïŒé»æºïŒãš15çªç®ïŒããã¯ã©ã€ãïŒã®æ¥ç¹ã«5ãã«ããäŸçµŠããŸãã å°ç-1ã3ã5ã16ã
åæã«ã3çªç®ã®æ¥è§Šã¯ã³ã³ãã©ã¹ãã§ãããé»å§ã倧ããã»ã©ç»åãæããªããŸãã å°ç= 0 =æé«ã®ã³ã³ãã©ã¹ãã
ãã®åŸãArduinoããªã³ã«ããŠïŒUSBã«æ¥ç¶ïŒãLCDãç¹ç¯ãããã©ããã確èªã§ããŸãã ãããããªããããã§ãšãããããŸãïŒ ããªãã¯ããŒãºã±ãŒãã§èªåã«å ±é ¬ãäžããããšãã§ããŸãã ãããŠãåã³Arduinoã®é»æºãåããŸãïŒ
次ã«ãã¹ã¯ãªãŒã³ã³ã³ãããŒã«ã®é£çµ¡å ãæ¥ç¶ããŸãã 4çªç®-Arduinoã®4çªç®ã®åºå£ãžã ïŒãã®ãããžã§ã¯ãã§æ±ããã¹ãŠã®åºåã¯ãArduinoã§ããžã¿ã«ã«ããŒã¯ãããŠããŸãïŒã ããã¯ã¢ãã¬ã¹ä¿¡å·ã§ãã
ç»é¢ã®6çªç®ã®é£çµ¡å -Arduinoã®5çªç®ã®é£çµ¡å ã ããã¯ã¢ã¯ã»ã¹èš±å¯ã§ãã
ãã®ä»ã®ããŒã¿ãã£ãã«ïŒ
lcd-Arduino
11-10
12-11
13-12
14ã13
ç§ã®ä»äºã®çµæã¯æåã®åçã§èŠãããšãã§ããŸãã ã¯ã€ã€ã¯çµã³ç®ã«ãã¡ããšçµã¿ç«ãŠãããŠãããå®å®æ§ã®ããã«ãã¹ã¯ãªãŒã³ã«ã¯å¿ èŠãªæ²ç·ã«æ²ããããåäŸã®éå±èšèšè ããåŸããããšã¬ã¬ã³ããªãµããŒããè£ åãããŠããŸãã ç¹å¥ã«èšããããåãä»ãç©Žã«çŽåŸ3 mmã®ãã«ãã§ã¹ã¯ãªãŒã³ã«æ¥ç¶ãããŠããŸãã
ã³ãŒãã£ã³ã°ã§ããŸãïŒ
ãœãããŠã§ã¢
Arduinoã¹ã±ãã
Arduinoçšã®ããã°ã©ã ãäœæããŠéä¿¡ããã«ã¯ãããããããŠã³ããŒãã§ããã·ã§ã«ãå¿ èŠã§ãïŒ arduino.cc/en/Main/Software
ç°¡åã«äœ¿çšã«ã€ããŠã Arduinoãæ¥ç¶ããããŒã«/ããŒãã§ãã®ã¿ã€ãïŒç§ã®å Žåã¯Arduino UnoïŒãéžæãã次ã«ããŒã«/ã·ãªã¢ã«ããŒãã®ããŒãçªå·-éåžžããã¯COM1以å€ã®ããŒãã§ãã COM9ãå ¥æããŸããã
次ã«ãããã°ã©ã ãäœæããŸãã ãã§ãã¯ããŒã¯ã®ä»ãããã¿ã³ãããã°ã©ã ããã§ãã¯ããå³åŽã®ç¢å°ãã³ã³ãã€ã«ãããŠArduinoã«ã¢ããããŒããããŸãã
Arduinoãå®è¡ããããã°ã©ã ã¯ã¹ã±ãããšåŒã°ãã3ã€ã®éšåã§æ§æãããŠããŸãã ãŸããå¿ èŠãªã©ã€ãã©ãªãæ¥ç¶ãããŸãã 次ã«ãã»ããã¢ããæ©èœã«ã³ã³ãã³ããå ¥åããã1åèªåçã«å®è¡ãããŸãã æ©åšã®åæåã¯ãã¹ãŠããã§è¡ãããŸãã
次ã«ãç¡éã«ãŒãã§èªåçã«å®è¡ãããã¡ã€ã³é¢æ°loopããããŸãã
æåã®ã¹ã±ããããã°ã©ã ãäœæããŸãããã
//ã©ã€ãã©ãªãæ¥ç¶ããŠLCDãæäœããŸã
#include <LiquidCrystal.h>
ãã€ãèšå®ïŒ ïŒ
{
//ããŒã¿ãã³ãæå®ããŠLCDãåæåããŸã
液æ¶lcd ïŒ 4ã5ã10ã11ã12ã13 ïŒ ;
//ç»é¢ã®å¯žæ³ãæå®ããŠäœæ¥ãéå§ããŸã
液æ¶ã å§ãã ïŒ 20ã4 ïŒ ;
//æåã®è¡ãæžããŸã
液æ¶ã print ïŒ "HelloãworldïŒ" ïŒ ;
//ã«ãŒãœã«ã2çªç®ã®è¡ãæåã®åïŒ0ããçªå·ä»ãïŒã«ç§»åããŸã
液æ¶ã setCursor ïŒ 0ã1 ïŒ ;
// 2è¡ç®ãæžããŸã
液æ¶ã print ïŒ "Habrã倧奜ãïŒ" ïŒ ;
}
ç¡å¹ã«ãŒãïŒ ïŒ
{
//ç¹å¥ãªããšã¯äœãããŸãã
}
次ã«ãã¿ã¹ã¯ã«æ»ããŸãã
LCDã«ããŒã¿ã衚瀺ããã¹ã±ãããå¿ èŠã§ãããŸããã³ã³ãã¥ãŒã¿ãŒã§åäœãããã®ããŒã¿ãåéããŠArduinoã«éä¿¡ããããã°ã©ã ãå¿ èŠã§ãã
ã³ã³ãã¥ãŒã¿çšã®ããã°ã©ã ãäœæã§ããèšèªã®éžæã¯ãŠãŒã¶ãŒã«å§ããããŠããŸããCOMããŒããæäœã§ããèšèªã§ããã°ã©ã®èšèªã§ãå®è¡ã§ããŸãã ãã¡ãããC ++ã§ãã®ãããªããã°ã©ã ãäœæããã®ãæåã§ãã-ã¡ã¢ãªãã»ãšãã©æ¶è²»ãããããã¯ã°ã©ãŠã³ãã§ãã³ã°ãããã³ã°ããŸãã æ®å¿µãªãããç§ã¯ãã®ãããªããã°ã©ã ãC ++ã§æžãã®ã«ååãªç¥èãæã£ãŠããªãã®ã§ãç§ãç¥ã£ãŠããããš-perlã«ã€ããŠæžããŸãã
ãããžã§ã¯ãã®äœæ¥ã¹ã±ããã¯æ¬¡ã®ããã«ãªããŸãã
#include <LiquidCrystal.h>
// RSãEãDB5ãDB6ãDB7ãDB8
液æ¶lcd ïŒ 4ã5ã10ã11ã12ã13 ïŒ ;
int inb = 0 ;
int pos = 0 ;
int line = 0 ;
ãã€ãèšå®ïŒ ïŒ
{
ã·ãªã¢ã« éå§ ïŒ 9600 ïŒ ;
液æ¶ã å§ãã ïŒ 20ã4 ïŒ ;
}
ç¡å¹ã«ãŒãïŒ ïŒ
{
液æ¶ã setCursor ïŒ posãline ïŒ ;
if ïŒ Serialãavailable ïŒ ïŒ > 0 ïŒ {
inb =ã·ãªã¢ã«ã èªã ïŒ ïŒ ;
if ïŒ char ïŒ inb ïŒ == '|' ïŒ {
pos = 0 ;
è¡++ ;
}
else if ïŒ char ïŒ inb ïŒ == 'ïŒ' ïŒ {
pos = 0 ;
line = 0 ;
}
ãã®ä» {
液æ¶ã print ïŒ char ïŒ inb ïŒ ïŒïŒ ;
pos ++ ;
}
液æ¶ã setCursor ïŒ posãline ïŒ ;
}
}
Arduinoã¯ããŒã¿ã®éå§ãåŸ æ©ããããã«ç»é¢ã«è¡šç€ºããŸãã
ã·ã³ãã«| æ¹è¡ãšããŠæ©èœããŸãïŒïŒ-çŸåšã®ããŒã¿ã»ããã®çµããã
ããŒã¿ãåéããŠããŒãã«éä¿¡ããããã®ããã°ã©ã ã
ããã°ã©ã ã§ã¯ãããŒã¿ã®åéã«å¿ èŠãªã©ã€ãã©ãªãæ¥ç¶ãããã¹ãŠãåæåããŠãããã«ãŒãã§åéãããããŒã¿ãå«ãè¡ãäœæããããŒãã«éä¿¡ããŸãã
ïŒïŒ/ usr / bin / perl
ïŒå¿ èŠãªã¢ãžã¥ãŒã«ãæ¥ç¶ããŸã
LWPã䜿çšãã :: Simple ;
ãšã³ã³ãŒãqw ïŒ from_to _utf8_off ïŒã 䜿çšããŸãã
Win32 :: SerialPortã 䜿çšã ãŸãã
Win32 :: API :: ãããã¿ã€ãã 䜿çšã ãŸãã
Win32 :: SystemInfoã 䜿çšã ãŸãã
Win32 :: DriveInfoã 䜿çšã ãŸãã
å®æ°{ IDLE => 0 ã KERNEL => 1 ã USER => 2 }ã䜿çšã ãŸãã
ïŒWin32 APIããé¢æ°ãæ¥ç¶ããŸã
InitWin32 ïŒ ïŒ ;
ïŒãã£ãã¯ã®éå§å€
@lasttime = SystemTimes ïŒ ïŒ ;
ïŒArduinoãšã®éä¿¡çšã®ããŒããèšå®
$ããŒã = InitSerial ïŒ ïŒ ;
ïŒã¡ããŠã¹ãµã€ã¯ã«
while ïŒ 1 ïŒ {
ïŒäžåã«äžŠã³ãŸã
$ data = sprintf ïŒ "CPUïŒïŒ 3d %% CïŒïŒ 03d Gb | MEMïŒïŒ 3d %% DïŒïŒ 03d Gb |" ã
ãTïŒïŒ 02d'C PïŒïŒ 03d |ïŒ 02dïŒ -8sïŒ 02dïŒïŒ 02d |ïŒã ã
CPU ïŒ ïŒ ããã£ã¹ã¯ïŒ 'C' ïŒ ã MEM ïŒ ïŒ ããã£ã¹ã¯ïŒ 'D' ïŒ ã倩æ°ïŒ 'ã¢ã¹ã¯ã¯' ïŒ ãæ¥ä»æå»ïŒ ïŒ
ïŒ ;
ïŒããŒããžã®åºå
while ïŒ $ data = ãs /ïŒãïŒ// s ïŒ {
$ port- > write ïŒ $ 1 ïŒ ;
$ port- > lookclear ;
}
ïŒåŸ ã£ãŠããŸã
ç¡ç ïŒ 10 ïŒ ;
}
ã³ãŒãã§èšäºãç ©éã«ããªãããã«ã䜿çšããæ©èœã®èª¬æãæäŸããŸããå®å šãªããã°ã©ã ã¯ãèšäºã®æåŸã«ãããªã³ã¯ããããŠã³ããŒãã§ããŸãã
InitSerial-perlïŒWin32 :: SerialPortã¢ãžã¥ãŒã«ïŒã®ããŒããæäœããããã«å¿ èŠãªèšå®ãè¡ããŸã
closePort-ããŒããæ£ããçµäºããŠã次åã®èµ·åæã«åé¡ãªãåéã§ããããã«ããŸãã ããã°ã©ã å²ã蟌ã¿ä¿¡å·ã§ãã³ã°ããŸãã
CPU-CPUè² è·ãã«ãŠã³ãããŸãã ã¹ããªãŒãããžãã¯ïŒSystemTimesé¢æ°ïŒã䜿çšããŸãã è² è·ãèšç®ããããã«ãInitWin32é¢æ°ïŒWin32 :: API :: Prototypeã¢ãžã¥ãŒã«ïŒã®ããã°ã©ã ã«åå ããkernel32ã©ã€ãã©ãªGetSystemTimesã®é¢æ°ã䜿çšããŸãã
MEM-䜿çšå¯èœãªç©çã¡ã¢ãªãšãã®ç·æ°ã®æ¯çãè¿ããŸãïŒWin32 :: SystemInfoã¢ãžã¥ãŒã«ïŒ
倩æ°-Yandex.WeatherããŒãžãã枩床ãšæ°å§ãèªã¿åããŸãã ããã¯2æéã«1åããå®è¡ãããŸããã
DateTime-çŸåšã®æãæãæéãåãè¿ããŸã
ãã£ã¹ã¯-ãã£ã¹ã¯ã®ç©ºã容éãè¿ããŸãïŒWin32 :: DriveInfoã¢ãžã¥ãŒã«ïŒã
ãã·ã¢èª
ãã§ã«è¿°ã¹ãããã«ãç§ã®ç»é¢ã¯ãã·ã¢ã§äœãããŠããŸãã ãã®ç¹ã§ã2ã€ã®ã³ãŒãããŒãžããããŸã-æåã®ïŒNo. 0ïŒã«ã¯ããªã«æåãåå¥ã«å«ãŸããŠãããã©ãã³ã¢ã«ãã¡ãããã«ã¯é¡äŒŒç©ããããŸããã 2çªç®ïŒNo. 1ïŒã«ã¯å®å šãªãã·ã¢èªã®ã¢ã«ãã¡ãããããããæåã®ã³ãŒããcp-1251ãšäžèŽãããŸãã ãããã£ãŠãå¿ èŠã«å¿ããŠãç¹å¥ãªè²»çšãªãã§ç»é¢ã«ãã·ã¢èªã®æåã衚瀺ã§ããŸãã
ç§ãééããå°ããªãã€ãã¹-ããŒãž1ã«ã¯åºŠã®ã¢ã€ã³ã³ã¯ãããŸããïŒããŒãž0ãšã¯ç°ãªããŸãïŒã ã¢ãã¹ãããã£ã«çœ®ãæããããŸãã
ç»é¢ãå¶åŸ¡ããããã«ãäžè¬çãªç»é¢ã¢ãã«çšã«èšèšãããLiquidCrystalã©ã€ãã©ãªã䜿çšãããŸãã ãããããã¡ããã2ã€ã®èšèªããµããŒããããšãããã«ãžã§ã¯ã®æ²ãã¿ã¯ç¥ããªãã®ã§ãã³ãŒãããŒãžãåãæ¿ããããšã¯èª°ãã§ããŸããã§ããã ã©ã€ãã©ãªã«ç°¡åãªå€æŽãå ããŸãããã
ïŒ arduino_install_pathïŒ \ arduino-1.0 \ libraries \ LiquidCrystalã«ãããŸã
ãã¢ãžã¥ãŒã«ã³ãã³ããã»ã¯ã·ã§ã³ã®ç»é¢ã®ããã¥ã¡ã³ãã«ãããšãã³ãŒãããŒãžã¯2çªç®ã®ãããã§é¢æ°setã³ãã³ãã«èšå®ãããŸãã
æ°ããå®æ°ãLiquidCrystal.hã«è¿œå ããŸãã
#define LCD_CODEPAGE 0x02
次ã«ãLiquidCrystal.cppã§é¢æ°void LiquidCrystal :: initïŒïŒãèŠã€ãã次ã®ããã«ãã®å®æ°ãæ®ãã®èšå®ã«è¿œå ããŸãã
if (fourbitmode)
_displayfunction = LCD_4BITMODE | LCD_1LINE | LCD_5x8DOTS | LCD_CODEPAGE;
else
_displayfunction = LCD_8BITMODE | LCD_1LINE | LCD_5x8DOTS | LCD_CODEPAGE;
ãããã£ãŠã2çªç®ã®ããããçºçããç»é¢ã¯ã³ãŒãããŒãž1ã䜿çšããcp-1251ãšã³ã³ãŒãã§ããŒã¿ããã·ã¢èªã§éä¿¡ã§ããŸãïŒç§ã®å Žåãããã¯æã®ååã§ãïŒã
ãã¡ã€ã«
Sketch for ArduinoãperlããŒã¿åéããã°ã©ã ãã³ãŒãããŒãžNo. 1ãæäœããããã®LiquidCrystalã©ã€ãã©ãªãä¿®æ£ãMELTç»é¢ã®ããã¥ã¡ã³ã
ç³èŸŒã¿
æ å ±æäŸè ãšããŠã®Arduinoã§ã®LCDã®äœ¿çšã¯ãäºå®äžç¡å¶éã§ãã
ãããããããã¯2çªç®ã®ã¢ãã¿ãŒã»ã©äŸ¿å©ã§ã¯ãããŸãããã䟿å©ãªå ŽåããããŸãã æéã倩æ°ãã·ã¹ãã æ å ±ããããã°...ãšããã§ãæè¿ç§ã«åºäŒã£ãå¥ã®äŸã¯ãWebAPIãéããŠuTorrentã®ãã¬ã³ãã远跡ããããšã§ã...
ããããäž»ãªããšã¯ãã¡ããã趣å³ã®åã³ã§ãïŒ