{"id":12132,"date":"2022-12-18T15:24:11","date_gmt":"2022-12-18T15:24:11","guid":{"rendered":"https:\/\/www.qec.tw\/?p=12132"},"modified":"2025-11-11T13:33:06","modified_gmt":"2025-11-11T13:33:06","slug":"mstimer2-library","status":"publish","type":"post","link":"https:\/\/www.qec.tw\/zh\/86duino-library\/mstimer2-library\/","title":{"rendered":"MsTimer2 Library"},"content":{"rendered":"<p class=\"wp-block-paragraph translation-block\">This library is available from 86Duino Coding 106 and provides the API of the&nbsp;<a href=\"http:\/\/playground.arduino.cc\/Main\/MsTimer2\" target=\"_self\">Arduino MsTimer2 library<\/a>&nbsp;to access 86Duino\u2019s second 32-bit hardware timers. One can refer to the&nbsp;<a href=\"http:\/\/playground.arduino.cc\/Main\/MsTimer2\" target=\"_self\">tutorial<\/a>&nbsp;on the Arduino website to learn the use of this library.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Limits<\/h2>\n\n\n\n<p class=\"wp-block-paragraph translation-block\">Since&nbsp;MsTimer2&nbsp;employs the same internal timer as&nbsp;analogWrite(32), the&nbsp;<a href=\"https:\/\/www.qec.tw\/zh\/86duino-reference\/tone\/\" target=\"_self\">tone()<\/a>&nbsp;function, and the&nbsp;<a href=\"http:\/\/www.86duino.com\/?p=7444\" target=\"_self\">IRremote<\/a>&nbsp;library, the one shouldn\u2019t use these functions and libraries at the same time within a sketch.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\"><a href=\"https:\/\/www.qec.tw\/zh\/86duino\/libraries\/\">\u51fd\u5f0f\u5eab\u53c3\u8003\u4e3b\u9801\u9762<\/a><\/h3>\n\n\n\n<p class=\"wp-block-paragraph translation-block\"><em>86Duino \u53c3\u8003\u7684\u6587\u672c\u662f\u6839\u64da <a href=\"https:\/\/creativecommons.org\/licenses\/by-sa\/3.0\/\" target=\"_self\">\u77e5\u8b58\u5171\u4eab\u7f72\u540d-\u76f8\u540c\u65b9\u5f0f\u5206\u4eab 3.0 \u8a31\u53ef\u8b49<\/a>\uff0c\u90e8\u5206\u6587\u672c\u662f\u5f9e <a href=\"https:\/\/arduino.cc\/en\/Reference\/HomePage\" target=\"_self\">Arduino \u53c3\u8003<\/a> \u4fee\u6539\u7684\u3002 \u53c3\u8003\u4e2d\u7684\u4ee3\u78bc\u793a\u4f8b\u5df2\u767c\u4f48\u5230\u516c\u5171\u9818\u57df\u3002<\/em><\/p>","protected":false},"excerpt":{"rendered":"<p>This library is available from 86Duino Coding 106 and provides the API of the&nbsp;Arduino MsTimer2 library&nbsp;to access 86Duino\u2019s second 32-bit hardware timers. One can refer [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":12133,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"site-sidebar-layout":"default","site-content-layout":"","ast-site-content-layout":"default","site-content-style":"default","site-sidebar-style":"default","ast-global-header-display":"","ast-banner-title-visibility":"","ast-main-header-display":"","ast-hfb-above-header-display":"","ast-hfb-below-header-display":"","ast-hfb-mobile-header-display":"","site-post-title":"","ast-breadcrumbs-content":"","ast-featured-img":"","footer-sml-layout":"","ast-disable-related-posts":"","theme-transparent-header-meta":"","adv-header-id-meta":"","stick-header-meta":"","header-above-stick-meta":"","header-main-stick-meta":"","header-below-stick-meta":"","astra-migrate-meta-layouts":"default","ast-page-background-enabled":"default","ast-page-background-meta":{"desktop":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"ast-content-background-meta":{"desktop":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"tablet":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""},"mobile":{"background-color":"var(--ast-global-color-5)","background-image":"","background-repeat":"repeat","background-position":"center center","background-size":"auto","background-attachment":"scroll","background-type":"","background-media":"","overlay-type":"","overlay-color":"","overlay-opacity":"","overlay-gradient":""}},"footnotes":""},"categories":[198,261],"tags":[162,314],"class_list":["post-12132","post","type-post","status-publish","format-standard","has-post-thumbnail","hentry","category-86duino-library","category-mstimer2","tag-86duino","tag-lib"],"_links":{"self":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/posts\/12132","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/comments?post=12132"}],"version-history":[{"count":1,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/posts\/12132\/revisions"}],"predecessor-version":[{"id":16993,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/posts\/12132\/revisions\/16993"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/media\/12133"}],"wp:attachment":[{"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/media?parent=12132"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/categories?post=12132"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.qec.tw\/zh\/wp-json\/wp\/v2\/tags?post=12132"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}